PDA

View Full Version : [REGLE] check_snmp et option -c


wistof
8th June 2005, 15:01
lorsque je spécifie un niveau critique, le plugin me renvoit 0

[root@machine libexec]# ./check_snmp 192.168.0.2 -o .1.3.6.1.4.1.334.72.1.1.4.21.0 -C public -d :
SNMP OK - :lnMailHold.0 13
[root@machine libexec]# ./check_snmp 192.168.0.2 -c 5 -o .1.3.6.1.4.1.334.72.1.1.4.21.0 -C public -d :
SNMP OK - 0
[root@machine libexec]#

DonKiShoot
9th June 2005, 09:41
Tu utilise pi être mal l'argument -c :D

Ce ne serait pas 'min:max' :lol:

wistof
9th June 2005, 22:52
[root@machine libexec]# ./check_snmp 192.168.0.2 -o .1.3.6.1.4.1.334.72.1.1.4.21.0 -C public -d : -w 5:15 -c 16: -v
/usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 -c public 192.168.0.2:161 .1.3.6.1.4.1.334.72.1.1.4.21.0
NOTES-MIB::lnMailHold.0 11

SNMP CRITICAL - *0*
[root@machine libexec]#
:?:

DonKiShoot
10th June 2005, 10:50
[root@machine libexec]# ./check_snmp 192.168.0.2 -o .1.3.6.1.4.1.334.72.1.1.4.21.0 -C public -d : -w 5:15 -c 16:9999 -v
/usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 -c public 192.168.0.2:161 .1.3.6.1.4.1.334.72.1.1.4.21.0
NOTES-MIB::lnMailHold.0 11
:idea:

wistof
10th June 2005, 11:41
nop...

[root@machine libexec]# ./check_snmp 192.168.0.2 -o .1.3.6.1.4.1.334.72.1.1.4.21.0 -C public -d : -w 5:15 -c 16:9999 -v
/usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 -c public 192.168.0.2:161 .1.3.6.1.4.1.334.72.1.1.4.21.0
NOTES-MIB::lnMailHold.0 13

SNMP CRITICAL - *0*
[root@machine libexec]#

:(

DonKiShoot
10th June 2005, 15:24
Tu sais quoi ?
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
T dans la merde !!! :D

wistof
10th June 2005, 15:47
arrrgggghhhhh.....

wistof
4th July 2005, 20:10
weeeee !!!!

j'ai trouvé !!
en fait, c'était mon délimiteur qui n'était pas bon :(
C'est un espace au lieu de ':'
[root@machine libexec]# ./check_snmp -H 192.168.0.2 -o .1.3.6.1.2.1.25.1.6.0 -C public -d " " -w 5 -c 90
SNMP WARNING - *84*