I added successfully a SonicWall SMA virtual appliance using several SNMP checks, and that was working fine until yesterday at around 10:45.
Note that I copied related MIBs to /usr/share/snmp/mib folder.
My linux history shows that at that time I executed the command CPAN. I had to use CPAN to install Nagios::Plugin but it failed, then I tried Monitoring::Plugin and it failed as well. Lastly, I did yum install perl-Nagios-Plugin (removed today to try to solve my problem).
This was needed to check a Cisco ASR router.
Today I checked Nagios and turns out that all the checks returns
CRITICAL - Plugin timed out while executing system call
My snmp_check command:
Code: Select all
define command{
command_name check_snmp
command_line $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
}
Code: Select all
define service{
use generic-service
host_name <redacted>
service_description Uptime
check_command check_snmp!-C ReAD_oNly -o sysUpTime.0
}
Code: Select all
[root@server ~]# /usr/local/nagios/libexec/check_snmp -H 10.1.1.235 -C ReAD_oNly -o sysUpTime.0 -v
/usr/bin/snmpget -Le -t 3 -r 5 -m ALL -v 1 [context] [authpriv] 10.1.1.235:161 sysUpTime.0
CRITICAL - Plugin timed out while executing system call
Code: Select all
[root@server ~]# /usr/local/nagios/libexec/check_snmp -H 10.1.1.235 -C ReAD_oNly -o .1.3.6.1.4.1.8741.6.2.1.7.0 -v
/usr/bin/snmpget -Le -t 3 -r 5 -m '' -v 1 [context] [authpriv] 10.1.1.235:161 .1.3.6.1.4.1.8741.6.2.1.7.0
iso.3.6.1.4.1.8741.6.2.1.7.0 = STRING: "62 Days 04:03:50"
SNMP OK - "62 Days 04:03:50" |