How to create module with reversed scale? I want to monitor UPS time left variable so that when it drops under 30 minutes, I get warning and when it drops under 15 minutes I get critical alarm. I tried this module_begin module_name UPS TimeLeft module_type generic_data module_exec apcaccess | grep TIMELEFT | awk '{ print $3 }' module_warning_inverse 1 module_critical_inverse 1 module_min_warning 16 module_max_warning 30 module_min_critical 0 module_max_critical 15 module_end but state is critical since current time left is about 44 minutes. I didn't find any examples how to use ..._inverse variables. How to fix this? Thank you for your support.
How to create module with reversed scale?
j-k · 23 ago 2018, 15:45 · 3 mensajes · 65 visitas
- Inicio del debate
How to create module with reversed scale? I want to monitor UPS time left variable so that when it drops under 30 minutes, I get warning and when it drops under 15 minutes I get critical alarm. I tried this module_begin module_name UPS TimeLeft module_type generic_data module_exec apcaccess | grep TIMELEFT | awk '{ print $3 }' module_warning_inverse 1 module_critical_inverse 1 module_min_warning 16 module_max_warning 30 module_min_critical 0 module_max_critical 15 module_end but state is critical since current time left is about 44 minutes. I didn't find any examples how to use ..._inverse variables. How to fix this? Thank you for your support.
Goo morning j-k, Using the inverse interval it puts critic when the value is out of this interval. So if you put just as you did without using the inverse it should work module_begin module_name UPS TimeLeft module_type generic_data module_exec apcaccess | grep TIMELEFT | awk '{ print $3 }' module_min_warning 16 module_max_warning 30 module_min_critical 0 module_max_critical 15 module_end Hopes this helps you If you have more questions please let us know. Alberto
Hopes this helps you If you have more questions please let us know. Alberto
Yes thanks, I got it right!
Entra en tu cuenta para publicar.
