templates/monitoring/nagios_server.j2
fc90eb35
 # Managed with Ansible
 
e08cc55e
 define host {
     use                     linux-server
     host_name               {{ item.host_name }}
     alias                   {{ item.host_name }}
     address                 {{ item.host_ip }}
 }
 
 define service {
     use                     bindir-service
     host_name               {{ item.host_name }}
     service_description     PING
     check_command           check_ping!100.0,20%!500.0,60%
 }
 
 define service {
     use                     bindir-service
     host_name               {{ item.host_name }}
     service_description     DISK_ROOT
     check_command           check_nrpe!-c check_disk
 }
 
 define service{
     use                     bindir-service
     host_name               {{ item.host_name }}
     service_description     LOAD
     check_command           check_nrpe!-c check_load
 }
 
fc90eb35
 define service{
     use                     bindir-service
     host_name               {{ item.host_name }}
     service_description     SWAP
     check_command           check_nrpe!-c check_swap
 }