[Nagiosplug-help] nagios/plugins/check_snmp syntax
Smirnoff Alexander
asmirnoff at office.beeline.ru
Mon Sep 8 14:14:03 CEST 2008
Hello!
I read nagios/plugins/check_snmp manual and make this request:
/usr/lib/nagios/plugins/check_snmp -H testhost -C spbmenro -o
1.3.6.1.4.1.2272.1.42.5.1.2.2 -P 2c -c 12 -w 01
e.g. 1.3.6.1.4.1.2272.1.42.5.1.2.2 OID have 3 states:
0 - critical
1 - normal
2 - warning
But I recive wrong state from check_snmp:
[root at spbmon asmirnov]# /usr/lib/nagios/plugins/check_snmp -H testhost
-C spbmenro -o 1.3.6.1.4.1.2272.1.42.5.1.2.1 -P 2c -c 1,2 -w 0,1
SNMP WARNING - *1* | iso.3.6.1.4.1.2272.1.42.5.1.2.1=1
May be I must use another syntax?
--
Regards,
Alexandr Smirnov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20080908/997d18b2/attachment.html>
More information about the Help
mailing list