lausser / check_nwc_health

nwc = network component. This plugin checks lots of aspects of routers, switches, wlan controllers, firewalls,.....
http://labs.consol.de/nagios/check_nwc_health
GNU General Public License v2.0
150 stars 87 forks source link

--warningx and --criticalx not working #50

Closed milleroff closed 8 years ago

milleroff commented 8 years ago

Hello.

I have a monitoring host running icinga2. The service is defined with variables:

# icinga2 object list --type Service --name "if-5" | egrep "(check_command|nwc)"

* check_command = "nwc_health"
    * nwc_health_community = "xxxxxxxx"
    * nwc_health_criticalx = "GigaEthernet0/5_discards_in=100"
    * nwc_health_mode = "interface-health"
    * nwc_health_name = "GigaEthernet0/5"
    * nwc_health_regexp = false
    * nwc_health_units = "MBi"
    * nwc_health_warningx = "GigaEthernet0/5_discards_in=50"

In the Icinga2 web interface i see the critical and warning value set correctly:

github

The problem is i still receive Warning Notifications:

telegram

lausser commented 8 years ago

I tried to reproduce it. Here it works as intended. Did you update to a recent version? 5.3.2?