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
check_snmp timeout
-
- Posts: 2
- Joined: Tue Jun 18, 2019 3:57 pm
Re: check_snmp timeout
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
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: check_snmp timeout
Is it working as expected now?