Page 1 of 1

Check_linux_interface

Posted: Mon Jan 02, 2017 9:00 am
by bashar.abed
Hi,

we used this command to check the status of linux interfaces but always request to put the value of index ,i tried many values but the command not recognized any of them

/usr/local/nagios/libexec/check_ifoperstatus -H 10.x.x.x -C jawwal-snmp -k 5 -v 2
[root@nms libexec]# /usr/local/nagios/libexec/check_ifoperstatus -H 10.x.x.x -C jawwal-snmp -k 5 -v 2
Use of uninitialized value in sprintf at /usr/local/nagios/libexec/check_ifoperstatus line 160.
Argument "noSuchObject" isn't numeric in numeric eq (==) at /usr/local/nagios/libexec/check_ifoperstatus line 186.
WARNING: Interface noSuchObject (index 5) is administratively down.

thanks

Re: Check_linux_interface

Posted: Tue Jan 03, 2017 10:57 am
by rkennedy
Could you show us the full output of a snmpwalk against the machine? For example on my end - snmpwalk -v 2c -c nagiosprivate 192.168.5.41

The command works fine over here -

Code: Select all

[root@localhost libexec]# ./check_ifoperstatus -H 192.168.5.41 -C nagiosprivate -k 5 -v 2
OK: Interface Port: 5 Gigabit - Level (index 5) is up.