No SNMP response received before timeout

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

No SNMP response received before timeout

Post by kwhogster »

Nagios Core 4.3.4
Cisco 3750 switch

Using this check.
https://exchange.nagios.org/directory/P ... wn/details

From console works great

root@tgcs017:/usr/local/nagios/etc/objects# /usr/local/nagios/libexec/nm_check_admin_up_oper_down -H 10.2.8.4 -P 2c -C public -c
18 interfaces down
StackPort1
GigabitEthernet1/1/1
GigabitEthernet1/0/18
GigabitEthernet1/1/3
GigabitEthernet1/0/20
GigabitEthernet1/0/35
GigabitEthernet1/0/26
StackSub-St1-2
GigabitEthernet1/1/4
GigabitEthernet1/0/34
GigabitEthernet1/1/2
TenGigabitEthernet1/1/1
TenGigabitEthernet1/1/2
GigabitEthernet1/0/39
StackSub-St1-1
GigabitEthernet1/0/38
GigabitEthernet1/0/42
GigabitEthernet1/0/43


When I create the command and service I get the " No SNMP response received before timeout"

My command

Code: Select all

# check_admin_up_oper_down using SNMPv2
define command{
  command_name  check_switch
  command_line  $USER1$/nm_check_admin_up_oper_down -H $HOSTADDRESS$ -P 2c -C $ARG1$ $ARG2$
}

My service

Code: Select all

# cisco.proto:

define service{
        host_name               hostname
        use                     generic-service
        service_description     Interfaces Down
        check_command           check_switch!cisco3750!-c
        check_interval          5
        retry_interval          1
}
The command does not allow me to set a timeout value.

Any ideas?
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: No SNMP response received before timeout

Post by kwhogster »

Please lock this as resolved.

I got it working but this is not the check I want having difficulty with any snmp checks.

Thanks.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: No SNMP response received before timeout

Post by scottwilkerson »

kwhogster wrote:Please lock this as resolved.

I got it working but this is not the check I want having difficulty with any snmp checks.

Thanks.
Marking resolved
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked