Host check timed out check_snmp_synology

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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Host check timed out check_snmp_synology

Post by scottwilkerson »

lroslundh wrote:Is this what you're asking for?

Code: Select all

define command{
       command_name    check_snmp_synology
       command_line    $USER1$/check_snmp_synology -h $HOSTADDRESS$ -u $USER3$ -p $USER4$ $ARG1$
}
yes. Does NAS02 use the same username/password set in $USER3$ & $USER4$ that NAS01 does?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
lroslundh
Posts: 10
Joined: Mon Jan 14, 2019 10:02 am

Re: Host check timed out check_snmp_synology

Post by lroslundh »

scottwilkerson wrote:
lroslundh wrote:Is this what you're asking for?

Code: Select all

define command{
       command_name    check_snmp_synology
       command_line    $USER1$/check_snmp_synology -h $HOSTADDRESS$ -u $USER3$ -p $USER4$ $ARG1$
}
yes. Does NAS02 use the same username/password set in $USER3$ & $USER4$ that NAS01 does?

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

Re: Host check timed out check_snmp_synology

Post by scottwilkerson »

So if you run this command from the CLI for both NAS01 and NAS02 do you get valid results for both

Code: Select all

/usr/local/nagios/libexec/check_snmp_synology -u USERNAME -p PASSWORD -h HOSTIP
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
lroslundh
Posts: 10
Joined: Mon Jan 14, 2019 10:02 am

Re: Host check timed out check_snmp_synology

Post by lroslundh »

scottwilkerson wrote:So if you run this command from the CLI for both NAS01 and NAS02 do you get valid results for both

Code: Select all

/usr/local/nagios/libexec/check_snmp_synology -u USERNAME -p PASSWORD -h HOSTIP
I can only get a valid response from NAS01.
With NAS02 i get the request timed out response.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Host check timed out check_snmp_synology

Post by scottwilkerson »

Ok, are you sure NAS02 has SNMP v3 enabled with the same username and password, because it appears that it isn't able to connect
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
lroslundh
Posts: 10
Joined: Mon Jan 14, 2019 10:02 am

Re: Host check timed out check_snmp_synology

Post by lroslundh »

Hi Scott,

Yes im certain that username and password are the same on both NAS boxes.

NAS02 is located in another office, and im wondering if the ISP could be blocking the requests?
I have of course access to the core router, and both are configured in a similar way.

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

Re: Host check timed out check_snmp_synology

Post by scottwilkerson »

lroslundh wrote:NAS02 is located in another office, and im wondering if the ISP could be blocking the requests?
That is a very real possibility as these are UDP packets it becomes difficult to see where they are falling off.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
lroslundh
Posts: 10
Joined: Mon Jan 14, 2019 10:02 am

Re: Host check timed out check_snmp_synology

Post by lroslundh »

Do you know which port i need to enable on the core router in order to allow incoming UDP traffic with this plugin?

UDP port 161?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Host check timed out check_snmp_synology

Post by scottwilkerson »

Yes, these go outbound from the Nagios server to UDP port 161
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked