Skip to content

Instantly share code, notes, and snippets.

@KristianLyng
Created December 5, 2010 01:14
Show Gist options
  • Select an option

  • Save KristianLyng/728661 to your computer and use it in GitHub Desktop.

Select an option

Save KristianLyng/728661 to your computer and use it in GitHub Desktop.
root@kit:/etc/nagios3/conf.d# cat services.cfg
# check that web services are running
define service {
hostgroup_name http-servers
service_description HTTP
check_command check_http
use generic-service
notification_interval 0 ; set > 0 if you want to be renotified
}
# check that ssh services are running
define service {
hostgroup_name ssh-servers
service_description SSH
check_command check_ssh
use generic-service
notification_interval 0 ; set > 0 if you want to be renotified
}
# check that ping-only hosts are up
define service {
hostgroup_name ping-servers
service_description PING
check_command check_ping!400.0,20%!1000.0,60%
use generic-service
notification_interval 0 ; set > 0 if you want to be renotified
}
define service {
hostgroup_name nrpe-servers
service_description Disk Space
check_command check_nrpe_1arg!check_all_disks
use generic-service
notification_interval 0
}
define service{
use generic-service ; Name of service template to use
hostgroup_name nrpe-servers
service_description Current Users
check_command check_nrpe_1arg!check_users
}
define service{
use generic-service ; Name of service template to use
hostgroup_name nrpe-servers
service_description Total Processes
check_command check_nrpe_1arg!check_total_procs
}
define service{
use generic-service ; Name of service template to use
hostgroup_name nrpe-servers
service_description Current Load
check_command check_nrpe_1arg!check_load
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment