From: Alex Dehnert Date: Fri, 9 Mar 2012 17:44:42 +0000 (-0500) Subject: Monitor linerva (especially disk) X-Git-Url: https://dehnerts.com/gitweb/?a=commitdiff_plain;h=2de1853d33645aba81d5f85678273045f073dd29;p=sysconfig%2Fnagios3.git Monitor linerva (especially disk) --- diff --git a/conf.d/nrpe-commands.cfg b/conf.d/nrpe-commands.cfg index 2b9098a..c9cab85 100644 --- a/conf.d/nrpe-commands.cfg +++ b/conf.d/nrpe-commands.cfg @@ -18,6 +18,11 @@ define command { command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_disk } +define command { + command_name check_remote_disk_root + command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_disk_root +} + define command { command_name check_remote_zombie_procs command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_zombie_procs diff --git a/local.d/linerva.cfg b/local.d/linerva.cfg new file mode 100644 index 0000000..4d2c55e --- /dev/null +++ b/local.d/linerva.cfg @@ -0,0 +1,122 @@ +define host { + name linerva-host + use generic-host + register 0 +} + +define hostgroup { + hostgroup_name linerva-hosts + members linerva-dev,linerva-test,linerva +} + +define host{ + use linerva-host ; Name of host template to use + host_name linerva-dev + address 18.181.0.112 +} + +define host{ + use linerva-host ; Name of host template to use + host_name linerva-test + address 18.181.3.112 +} + +define host{ + use linerva-host ; Name of host template to use + host_name linerva + address 18.181.0.232 +} + +define contactgroup { + contactgroup_name linerva-pub + alias linerva-pub + members linerva-pub-zephyr +} + +define contact { + contact_name linerva-pub-zephyr + alias linerva-pub-zephyr + service_notification_period 24x7 + host_notification_period 24x7 + service_notification_options w,u,c,r + host_notification_options d,u,r + service_notification_commands notify-by-zephyr + host_notification_commands host-notify-by-zephyr + email linerva +} + + +define service { + name linerva-service + use generic-service + check_interval 2 + retry_interval 1 + max_check_attempts 5 + contact_groups linerva-pub + #notification_interval 10 + notification_period 24x7 + notification_options w,u,c,r + register 0 +} + +define service { + use linerva-service + hostgroup_name linerva-hosts + service_description PING + check_command check_ping!500.0,30%!3000.0,80% +} +define service { + use linerva-service + hostgroup_name linerva-hosts + service_description SSH + check_command check_ssh +} + +define service { + use linerva-service + hostgroup_name linerva-hosts + service_description NRPE + check_command check_nrpe_alive +} + +define service { + use linerva-service + hostgroup_name linerva-hosts + service_description USERS + check_command check_remote_users +} + +define service { + use linerva-service + hostgroup_name linerva-hosts + service_description LOAD + check_command check_remote_load +} + +define service { + use linerva-service + hostgroup_name linerva-hosts + service_description DISK + check_command check_remote_disk +} + +define service { + use linerva-service + hostgroup_name linerva-hosts + service_description DISK-ROOT + check_command check_remote_disk_root +} + +define service { + use linerva-service + hostgroup_name linerva-hosts + service_description ZOMBIE-PROC + check_command check_remote_zombie_procs +} + +define service { + use linerva-service + hostgroup_name linerva-hosts + service_description TOTAL-PROC + check_command check_remote_total_procs +}