Using check_snmp


#1

When I try to use check_snmp from NAGIOS it shows

sh: /usr/local/nagios/libexec/check_snmp: Nie ma takiego pliku ani katalogu Warning: Return code of 127 for check of service 'Port 1 Link Status' on host 'pentagram' was out of bounds. Make sure the plugin you're trying to run actually exists.
But in this directory

-rwxrwxrwx 1 nagios nagios 90888 kwi 30 19:29 check_smtp
I was able to use command from console and it worked.

So what’s wrong?


#2

check_smtp is NOT check_snmp

what does “Nie ma takiego pliku ani katalogu” mean?


#3

“Nie ma takiego pliku ani katalogu” = No such file or directory (thanks Google!)

The plugin you are trying to execute isn’t where Nagios thinks it is.

The “libexec” directory may not be configured in you command definition. That and SNMP and SMTP are two very different services.

List your command definition for check_snmp if you need more help

GR