khrpcek / check_ceph

Icinga ceph plugin
6 stars 7 forks source link

Which variable for host? #1

Closed RomanBogachev closed 6 years ago

RomanBogachev commented 6 years ago

Hi, I use your plugin for the check Ceph Cluster.

How I can set warning and critical values for inactive OSD?

vars.osd_warning = 1
vars.osd_critical = 2

And variables for PGs and df. Maybe I did something wrong?

khrpcek commented 6 years ago

The check is designed so that based on the initial option the warning and critical thresholds apply differently. The PG check doesn't use any warning or critical since any pg not being active/healthy is bad. When running interactively the OSD down can be checked like check_ceph.py --osd -w 1 -c 2` For df you need to specify -b as well then -w and -c in the value defined by -b. --pool can be used as well to check only a single pool, without --pool it checks all pools against the same thresholds.

khrpcek commented 6 years ago

Closing due to inactivity