I have come across this problem a number of times.
This is with regards to check_snmp
I am monitoring my APC UPS system using an OID which requires that result should be returned ok if greater than 85%. But nagios gives alerts when the threshold crosses a certain value. In my case if it falls below 85% then it should give an alert. Here is the service.cgi part,
use generic-nix ; Name of service template to use
host_name UPS 1 service_description upsBatteryCapacity is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 1 retry_check_interval 1 contact_groups Admins notification_interval 0 notification_period 24x7 notification_options c,r check_command check_snmp!184.108.40.206.4.1.3220.127.116.11.18.104.22.168!98!100!communitystring }
This service montiors if the UPS battery is 100%. Now the problem is that when i specify thresholds it will obviously give me warning or down alert as nagios only monitors the thresholds. How can i make nagios montior something like, give an alert when battery status falls below < 85% , warning between 85%<W<90% and green when 100%