System information
56 System Analysis and Tuning Guide
max_check_attempts 10
contact_groups admins
notification_interval 60
notification_options d,u,r
}
5 Insert a service object in services.cfg:
define service {
use generic-service
host_name host.name.com
service_description HTTP
contact_groups router-admins
check_command check_http
}
6 Insert a contact and contactgroup object in contacts.cfg:
define contact {
contact_name max-mustermann
use generic-contact
alias Webserver Administrator
e-mail mmustermann@localhost
}
define contactgroup {
contactgroup_name admins
alias Administrators
members max-mustermann
}
7 Execute rcnagios restart to (re)start Nagios.
8 Execute cat /var/log/nagios/nagios.log and verify whether the fol-
lowing content appears:
[1242115343] Nagios 3.0.6 starting... (PID=10915)
[1242115343] Local time is Tue May 12 10:02:23 CEST 2009
[1242115343] LOG VERSION: 2.0
[1242115343] Finished daemonizing... (New PID=10916)
If you need to monitor a different remote service, it is possible to adjust
check_command in step Step 5 (page56). A full list of all available check
programs can be obtained by executing ls /usr/lib/nagios/plug-
ins/check_*
See Section3.5, “Troubleshooting” (page58) if an error occurred.