check_UDP
Posted: Tue Jul 07, 2020 9:18 am
Hi
Please help to Configure Device Availability monitoring via UDP port. (ping is not enabled ,only snmp enabled)
Device type switch ,router ,firewall , linux servers etc
Ex:- we install snmp in nagios server via net-snmp and snmp is working,So what is string and expected string here ,how to find these string names.
and also help to know same for other network devices(switch,router,firewall).
we checked with check_udp_port its working fine but no parameter found for graph generation,Device response time value for graph etc .
https://exchange.nagios.org/directory/P ... rt/details
from check_udp or check_udp_port which is good for Host availability monitoring.
Thanks
Please help to Configure Device Availability monitoring via UDP port. (ping is not enabled ,only snmp enabled)
Device type switch ,router ,firewall , linux servers etc
Code: Select all
[root@monitoring-nagiosxi ~]# /usr/local/nagios/libexec/check_udp -H 10.100.1.16 -p 161 -s "string" -e "expected string"
CRITICAL - Socket timeout
[root@monitoring-nagiosxi ~]# /usr/local/nagios/libexec/check_udp -H 10.100.1.16 -p 161 -s "snmp" -e "snmp"
CRITICAL - Socket timeout
and also help to know same for other network devices(switch,router,firewall).
Code: Select all
'
-s, --send=STRING
String to send to the server // ?? from where or how to find this
-e, --expect=STRING
String to expect in server response (may be repeated) // ?? from where or how to find this
https://exchange.nagios.org/directory/P ... rt/details
Code: Select all
[root@monitoring-nagiosxi ~]# ./check_udp_port -H 10.100.1.16 -p 161 -s snmp
OK: snmp listening on port 161: 161/udp open snmp
[root@monitoring-nagiosxi ~]# echo $?
0
[root@monitoring-nagiosxi ~]# ./check_udp_port -H 10.100.1.26 -p 161 -s snmp
CRITICAL:
[root@monitoring-nagiosxi ~]# echo $?
2
[root@monitoring-nagiosxi ~]# ./check_udp_port -H 10.100.1.16 -p 161 -s snmp1
WARNING: Incorrect service snmp listening on port 161: 161/udp open snmp
[root@monitoring-nagiosxi ~]# echo $?
1
Thanks