| 1 |
############################################################################## |
| 2 |
# internet.cfg - sample config file for Fedoras Nagios |
| 3 |
# |
| 4 |
# 2008-07-03 created Robert M. Albrecht |
| 5 |
# |
| 6 |
# NOTES: This config file is a sample for monitoring some internet hosts. |
| 7 |
# |
| 8 |
############################################################################### |
| 9 |
|
| 10 |
define host{ |
| 11 |
name template-internet-host |
| 12 |
use generic-host |
| 13 |
register 0 |
| 14 |
max_check_attempts 5 |
| 15 |
contacts nagiosadmin |
| 16 |
parents localhost |
| 17 |
|
| 18 |
} |
| 19 |
|
| 20 |
define host{ |
| 21 |
use template-internet-host |
| 22 |
host_name Google |
| 23 |
address www.google.com |
| 24 |
notes Googles Website defined by sample config |
| 25 |
notes_url http://www.google.com |
| 26 |
action_url http://en.wikipedia.org/wiki/Google |
| 27 |
} |
| 28 |
|
| 29 |
define hostgroup{ |
| 30 |
hostgroup_name InternetHosts |
| 31 |
alias Internet Hosts |
| 32 |
members Google |
| 33 |
} |
| 34 |
|
| 35 |
define service{ |
| 36 |
use generic-service |
| 37 |
hostgroup_name InternetHosts |
| 38 |
service_description PING |
| 39 |
check_command check_ping!200.0,20%!600.0,60% |
| 40 |
} |
| 41 |
|
| 42 |
define service{ |
| 43 |
use generic-service |
| 44 |
hostgroup_name InternetHosts |
| 45 |
service_description HTTP |
| 46 |
check_command check_http |
| 47 |
} |
| 48 |
|
| 49 |
define servicegroup{ |
| 50 |
servicegroup_name WebSites |
| 51 |
alias Internet Hosts |
| 52 |
members Google,PING,Google,HTTP |
| 53 |
} |
| 54 |
|
| 55 |
|