https://nagios-plugins.org/doc/man/check_ping.html
# A simple check_ping plugin for a router free-router.cfg
# -w 100.0,20%: warning threshold for response time to 100 ms with a
# packet loss threshold of 20%.
# If the response time exceeds 100 ms or the packet loss exceeds 20%,
# Nagios will generate a warning alert.
# -c 200.0,50%: critical threshold for response time to 200 ms with a
# packet loss threshold of 50%.
# If the response time exceeds 200 ms or the packet loss exceeds 50%,
# Nagios will generate a critical alert.
----------------------------------------------------------
define command {
command_name check_ping_command
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 100.0,20% -c 200.0,50%
}
define host {
use linux-server
host_name Free_Router
alias Free Router Device
address 192.168.1.254
}
define service {
use generic-service
host_name Free_Router
service_description Ping Check
check_command check_ping_command
}
_dnhyper
No comments:
Post a Comment