Page 1 of 1

check_snmp timeout

Posted: Wed May 27, 2020 4:39 pm
by spyder133371
i am using a check_snmp to check freeswitch calls i run the script manually and it connect fine no issue but when i run it from nagios itself

Plugin timed out while executing system call error


i an running Nagios 4.4.5 and naigios plusi 2.2.1

service.cfg


define service{
use generic-service
service_description active calls
check_command freeswitch_calls!-C XXXXXXXXXX -w 700 -c 900
max_check_attempts 3
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 60
notification_period 24x7
servicegroups FS Call Count
contacts nagiosadmin
host_name LCR80
}

command.cfg

# 'check_snmp' command definition
define command{
command_name freeswitch_calls
command_line $USER1$/check_snmp -o .1.3.6.1.4.1.2021.8.1.101.2 -H $HOSTADDRESS$ $ARG1$
}

from what i can tell it configure correctly but it timing out when i run it manually this is what i get

/usr/local/nagios/etc/objects# /usr/local/nagios/libexec/check_snmp -P 2c -C XXXXXXXXXXX -H XXXXXXXXX -o .1.3.6.1.4.1.2021.8.1.101.2 -w 1 -c 2
output : SNMP CRITICAL - *6* | iso.3.6.1.4.1.2021.8.1.101.2=6;1;2

Re: check_snmp timeout

Posted: Thu May 28, 2020 1:00 pm
by spyder133371
in case any is is wondering what the issue was i did not specific wht protocol to use so it time out i had to add -P 2c ti servce.cfg

Re: check_snmp timeout

Posted: Thu May 28, 2020 1:12 pm
by scottwilkerson
Is it working as expected now?