diff options
author | krebs <krebs@UTART> | 2011-05-18 18:12:15 +0200 |
---|---|---|
committer | krebs <krebs@UTART> | 2011-05-18 18:12:15 +0200 |
commit | 7f7d831d23d433c9c85ce2ac7a49763a64f01730 (patch) | |
tree | 06cd4fbeb949dd382d7066c28f32cceda5c6ecf8 /modules/Monitoring/conf/localhost.cfg | |
parent | 480369116a4d1c561152e0a183573d7ff80219ae (diff) |
added initial tinc monitoring
Makefile: makefile now handles changed folder structure
conf - all nagios config files
htdocs - all additional static content (logos for krebs and tinc)
plugins - all new nagios plugins
conf/*
addition of tinc hots as well as tinc-hosts group and krebsnet
now has sharepoint and supernode in the queue
htdocs/*
added logos for tinc, as well as gd2 for the tree
Diffstat (limited to 'modules/Monitoring/conf/localhost.cfg')
-rw-r--r-- | modules/Monitoring/conf/localhost.cfg | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/modules/Monitoring/conf/localhost.cfg b/modules/Monitoring/conf/localhost.cfg new file mode 100644 index 00000000..3b098195 --- /dev/null +++ b/modules/Monitoring/conf/localhost.cfg @@ -0,0 +1,60 @@ +# 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 + hostgroups krebs-machines + } + +# 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 + } |