[Nagiosplug-help] getting check_snmp to output string when using minus w

Heiko rupertt at gmail.com
Thu Apr 10 15:18:56 CEST 2008


Hello,

i am checking the config sync state of 2 loadbalancers, when i only
define a string for the OK status it shows me the message that the
snmp sends,
but when I define a range that should geive the warning and critical
state the plugin cuts of the string and I only get the Number.


./check_snmp -H 172.17.11.12 -C public -w 0 -c 0:2 -o
.1.3.6.1.4.1.3375.2.1.1.1.1.6.0
SNMP WARNING - *1* | iso.3.6.1.4.1.3375.2.1.1.1.1.6.0=1


./check_snmp -H 172.17.11.12 -C public -s '0 - Synchronized' -o
.1.3.6.1.4.1.3375.2.1.1.1.1.6.0
SNMP CRITICAL - *"1 - Local config modified, recommend configsync to
peer"* | iso.3.6.1.4.1.3375.2.1.1.1.1.6.0="1 - Local config modified,
recommend configsync to peer"


this string should be vissible inside nagios "1 - Local config
modified, recommend configsync to peer"

I did something wrong,what?
These are the possbile values

                -1 - uninitialized or disabled config state
                 0 - Synchronized
                 1 - Local config modified, recommend configsync to peer
                 2 - Peer config modified, recommend configsync from peer
                 3 - Config modified on both systems, manual
intervention required"

I would like to get an OK for 0, a warning for 1 and 2, and a critical
for 3 and if 1 or 2 are in their state for longer...


cheers

Heiko




More information about the Help mailing list