aboutsummaryrefslogtreecommitdiffstats
path: root/nagios-templates.cfg
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2010-01-07 19:55:23 +0000
committerPetter Reinholdtsen <pere@hungry.com>2010-01-07 19:55:23 +0000
commit950c22b38bef72f68e9cf7ddb8927c1a3f82fe61 (patch)
treee21a184a3e07f75696d076df0c668438a876bc9f /nagios-templates.cfg
parentfed33f63a27a2982554335dfa78261cae3867c30 (diff)
downloadsitesummary-950c22b38bef72f68e9cf7ddb8927c1a3f82fe61.tar.gz
sitesummary-950c22b38bef72f68e9cf7ddb8927c1a3f82fe61.tar.bz2
sitesummary-950c22b38bef72f68e9cf7ddb8927c1a3f82fe61.tar.xz
* Collect software raid status from /proc/mdstat if it exist.
* Generate Nagios checks for software raid, zombie processes, swap, dns, imaps, nfs and squid too. Rename Nagios services to use lower case characters.
Diffstat (limited to 'nagios-templates.cfg')
-rw-r--r--nagios-templates.cfg35
1 files changed, 35 insertions, 0 deletions
diff --git a/nagios-templates.cfg b/nagios-templates.cfg
index eafcd74..9732e8e 100644
--- a/nagios-templates.cfg
+++ b/nagios-templates.cfg
@@ -118,6 +118,41 @@ define command{
}
define command{
+ command_name check_dns
+ command_line /usr/lib/nagios/plugins/check_dns -H $HOSTADDRESS$ -s $HOSTADDRESS$
+}
+
+define command{
+ command_name check_imaps
+ command_line /usr/lib/nagios/plugins/check_imap -p 993 -H $HOSTADDRESS$ -S
+}
+
+define command{
+ command_name check_nfs
+ command_line /usr/lib/nagios/plugins/check_rpc -H $HOSTADDRESS$ -C nfs -c2,3
+}
+
+define command{
+ command_name check_squid
+ command_line /usr/lib/nagios/plugins/check_http -H $HOSTADDRESS$ -p $ARG1$ -u $ARG2$ -e 'HTTP/1.0 200 OK'
+}
+
+define command{
+ command_name check_swap
+ command_line /usr/lib/nagios/plugins/check_swap -w $ARG1 -c $ARG2$
+}
+
+define command{
+ command_name check_procs_zombie
+ command_line /usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -s Z
+}
+
+define command{
+ command_name check_linux_raid
+ command_line /usr/lib/nagios/plugins/check_linux_raid
+}
+
+define command{
command_name check-host-alive
command_line /usr/lib/nagios/plugins/check_ping -H $HOSTADDRESS$ -w 5000,100% -c 5000,100% -p 1
}