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