Blame nagios.internet.cfg
|
Robert M. Albrecht |
260c45b |
##############################################################################
|
|
Robert M. Albrecht |
260c45b |
# internet.cfg - sample config file for Fedoras Nagios
|
|
Robert M. Albrecht |
260c45b |
#
|
|
Robert M. Albrecht |
260c45b |
# 2008-07-03 created Robert M. Albrecht
|
|
Robert M. Albrecht |
260c45b |
#
|
|
Robert M. Albrecht |
260c45b |
# NOTES: This config file is a sample for monitoring some internet hosts.
|
|
Robert M. Albrecht |
260c45b |
#
|
|
Robert M. Albrecht |
260c45b |
###############################################################################
|
|
Robert M. Albrecht |
260c45b |
|
|
Robert M. Albrecht |
260c45b |
define host{
|
|
Robert M. Albrecht |
260c45b |
name template-internet-host
|
|
Robert M. Albrecht |
260c45b |
use generic-host
|
|
Robert M. Albrecht |
260c45b |
register 0
|
|
Robert M. Albrecht |
260c45b |
max_check_attempts 5
|
|
Robert M. Albrecht |
260c45b |
contacts nagiosadmin
|
|
Robert M. Albrecht |
260c45b |
parents localhost
|
|
Robert M. Albrecht |
260c45b |
|
|
Robert M. Albrecht |
260c45b |
}
|
|
Robert M. Albrecht |
260c45b |
|
|
Robert M. Albrecht |
260c45b |
define host{
|
|
Robert M. Albrecht |
260c45b |
use template-internet-host
|
|
Robert M. Albrecht |
260c45b |
host_name Google
|
|
Robert M. Albrecht |
260c45b |
address www.google.com
|
|
Robert M. Albrecht |
260c45b |
notes Googles Website defined by sample config
|
|
Robert M. Albrecht |
260c45b |
notes_url http://www.google.com
|
|
Robert M. Albrecht |
260c45b |
action_url http://en.wikipedia.org/wiki/Google
|
|
Robert M. Albrecht |
260c45b |
}
|
|
Robert M. Albrecht |
260c45b |
|
|
Robert M. Albrecht |
260c45b |
define hostgroup{
|
|
Robert M. Albrecht |
260c45b |
hostgroup_name InternetHosts
|
|
Robert M. Albrecht |
260c45b |
alias Internet Hosts
|
|
Robert M. Albrecht |
260c45b |
members Google
|
|
Robert M. Albrecht |
260c45b |
}
|
|
Robert M. Albrecht |
260c45b |
|
|
Robert M. Albrecht |
260c45b |
define service{
|
|
Robert M. Albrecht |
260c45b |
use generic-service
|
|
Robert M. Albrecht |
260c45b |
hostgroup_name InternetHosts
|
|
Robert M. Albrecht |
260c45b |
service_description PING
|
|
Robert M. Albrecht |
260c45b |
check_command check_ping!200.0,20%!600.0,60%
|
|
Robert M. Albrecht |
260c45b |
}
|
|
Robert M. Albrecht |
260c45b |
|
|
Robert M. Albrecht |
260c45b |
define service{
|
|
Robert M. Albrecht |
260c45b |
use generic-service
|
|
Robert M. Albrecht |
260c45b |
hostgroup_name InternetHosts
|
|
Robert M. Albrecht |
260c45b |
service_description HTTP
|
|
Robert M. Albrecht |
260c45b |
check_command check_http
|
|
Robert M. Albrecht |
260c45b |
}
|
|
Robert M. Albrecht |
260c45b |
|
|
Robert M. Albrecht |
260c45b |
define servicegroup{
|
|
Robert M. Albrecht |
260c45b |
servicegroup_name WebSites
|
|
Robert M. Albrecht |
260c45b |
alias Internet Hosts
|
|
Robert M. Albrecht |
260c45b |
members Google,PING,Google,HTTP
|
|
Robert M. Albrecht |
260c45b |
}
|
|
Robert M. Albrecht |
260c45b |
|
|
Robert M. Albrecht |
260c45b |
|