Check_linux_interface

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bashar.abed
Posts: 153
Joined: Tue Oct 11, 2016 1:34 am
Location: Ramallah West Bank Palestine
Contact:

Check_linux_interface

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Check_linux_interface

Post 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.
Former Nagios Employee
Locked