diff options
author | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2009-12-01 13:33:36 -0500 |
---|---|---|
committer | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2009-12-01 13:33:36 -0500 |
commit | 1e7b51004868a762f577831e686d1b851e2b08c2 (patch) | |
tree | a9234a247aa0697635d04e1befbbe5db318ea7cb /files/configs/Debian/defaults/localhost.cfg | |
parent | c04458174e23b7b21f687cefdf11ac9a8aabf679 (diff) |
Add support for Debian; split up package defaults and create new nagios::default resource; add support for lighttpd and headless httpd configurations; move common commands definitions into nagios::commands
Diffstat (limited to 'files/configs/Debian/defaults/localhost.cfg')
-rw-r--r-- | files/configs/Debian/defaults/localhost.cfg | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/files/configs/Debian/defaults/localhost.cfg b/files/configs/Debian/defaults/localhost.cfg new file mode 100644 index 0000000..27dbb4b --- /dev/null +++ b/files/configs/Debian/defaults/localhost.cfg @@ -0,0 +1,59 @@ +# A simple configuration file for monitoring the local host +# This can serve as an example for configuring other servers; +# Custom services specific to this host are added here, but services +# defined in nagios2-common_services.cfg may also apply. +# + +define host{ + use generic-host ; Name of host template to use + host_name localhost + alias localhost + address 127.0.0.1 + } + +# Define a service to check the disk space of the root partition +# on the local machine. Warning if < 20% free, critical if +# < 10% free space on partition. + +define service{ + use generic-service ; Name of service template to use + host_name localhost + service_description Disk Space + check_command check_all_disks!20%!10% + } + + + +# Define a service to check the number of currently logged in +# users on the local machine. Warning if > 20 users, critical +# if > 50 users. + +define service{ + use generic-service ; Name of service template to use + host_name localhost + service_description Current Users + check_command check_users!20!50 + } + + +# Define a service to check the number of currently running procs +# on the local machine. Warning if > 250 processes, critical if +# > 400 processes. + +define service{ + use generic-service ; Name of service template to use + host_name localhost + service_description Total Processes + check_command check_procs!250!400 + } + + + +# Define a service to check the load on the local machine. + +define service{ + use generic-service ; Name of service template to use + host_name localhost + service_description Current Load + check_command check_load!5.0!4.0!3.0!10.0!6.0!4.0 + } |