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
Check_linux_interface
-
bashar.abed
- Posts: 153
- Joined: Tue Oct 11, 2016 1:34 am
- Location: Ramallah West Bank Palestine
- Contact:
Re: Check_linux_interface
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 -
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