Page 2 of 2
Re: Host check timed out check_snmp_synology
Posted: Thu Jan 17, 2019 8:18 am
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?
Re: Host check timed out check_snmp_synology
Posted: Thu Jan 17, 2019 9:38 am
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.
Re: Host check timed out check_snmp_synology
Posted: Thu Jan 17, 2019 10:17 am
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
Re: Host check timed out check_snmp_synology
Posted: Thu Jan 17, 2019 10:21 am
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.
Re: Host check timed out check_snmp_synology
Posted: Thu Jan 17, 2019 11:04 am
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
Re: Host check timed out check_snmp_synology
Posted: Fri Jan 18, 2019 3:20 am
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.
Re: Host check timed out check_snmp_synology
Posted: Fri Jan 18, 2019 7:52 am
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.
Re: Host check timed out check_snmp_synology
Posted: Fri Jan 18, 2019 7:59 am
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?
Re: Host check timed out check_snmp_synology
Posted: Fri Jan 18, 2019 10:29 am
by scottwilkerson
Yes, these go outbound from the Nagios server to UDP port 161