Check_SNMP 1 OK - 0 CRITICAL
Posted: Tue Mar 06, 2018 5:30 am
Hi,
I'm trying to use the check_snmp command but with 2 OIDs.
the first one is to get the VPN Name.
the seconde is to get the VPN State.
Here my command :
i try to use the -r option but with 2 oids i cant make it work.
any suggestion ? the 1 state = OK and the 0 state = CRITICAL.
thanks for help
I'm trying to use the check_snmp command but with 2 OIDs.
the first one is to get the VPN Name.
the seconde is to get the VPN State.
Here my command :
Code: Select all
./check_snmp -H x.x.x.x -C public -P 2c -o SNMPv2-SMI::enterprises.890.1.6.22.2.4.1.2.1 -l "VPN Name:" -o SNMPv2-SMI::enterprises.890.1.6.22.2.4.1.6.1 -l "STATE:" -r "1"
Code: Select all
SNMP CRITICAL - VPN Name: *"VPN-XXX"* STATE: 1 | ETAT:=1
any suggestion ? the 1 state = OK and the 0 state = CRITICAL.
thanks for help