SVN: nagios-config/trunk: checkcommands.cfg commands/check_dns.cfg commands/check_http.cfg commands/...

glen glen at pld-linux.org
Sun Oct 5 02:38:11 CEST 2008


Author: glen
Date: Sun Oct  5 02:38:10 2008
New Revision: 9893

Added:
   nagios-config/trunk/commands/check_dns.cfg
   nagios-config/trunk/commands/check_ircd.cfg
   nagios-config/trunk/commands/check_mysql.cfg
   nagios-config/trunk/commands/check_nntp.cfg
   nagios-config/trunk/commands/check_spamd.cfg
   nagios-config/trunk/commands/check_telnet.cfg
Removed:
   nagios-config/trunk/checkcommands.cfg
Modified:
   nagios-config/trunk/commands/check_http.cfg
   nagios-config/trunk/commands/check_imap.cfg
   nagios-config/trunk/commands/check_load.cfg
   nagios-config/trunk/commands/check_ping.cfg
   nagios-config/trunk/commands/check_procs.cfg
   nagios-config/trunk/commands/check_snmp.cfg
   nagios-config/trunk/commands/check_users.cfg
   nagios-config/trunk/package.sh
   nagios-config/trunk/resource.cfg
Log:
- split checkcommands.cfg to individual configs

Added: nagios-config/trunk/commands/check_dns.cfg
==============================================================================
--- (empty file)
+++ nagios-config/trunk/commands/check_dns.cfg	Sun Oct  5 02:38:10 2008
@@ -0,0 +1,16 @@
+# 'check_dns' command definition
+define command {
+	command_name	check_dns
+	command_line	$USER1$/check_dns -s $HOSTADDRESS$ -H www.yahoo.com
+}
+
+define command {
+	command_name	check_dns_custom
+	command_line	$USER1$/check_dns -s $HOSTADDRESS$ -H $ARG1$
+}
+
+# check if DNSBL is returning success on test record 127.0.0.2
+define command {
+	command_name	check_dnsbl
+	command_line	$USER1$/check_dns -s $HOSTADDRESS$ -H 2.0.0.127.$ARG1$ -a 127.0.0.2
+}

Modified: nagios-config/trunk/commands/check_http.cfg
==============================================================================
--- nagios-config/trunk/commands/check_http.cfg	(original)
+++ nagios-config/trunk/commands/check_http.cfg	Sun Oct  5 02:38:10 2008
@@ -3,3 +3,36 @@
 	command_name	check_http
 	command_line	$USER1$/check_http -I $HOSTADDRESS$ $ARG1$
 }
+
+# 'check_http' with port support
+define command {
+	command_name	check_http_port
+	command_line	$USER1$/check_http -H $HOSTADDRESS$ -p $ARG1$
+}
+
+# check http service with URI
+define command {
+	command_name	check_http_uri
+	command_line	$USER1$/check_http -I $HOSTADDRESS$ -H $ARG1$ -u $ARG2$
+}
+
+define command {
+	command_name	check_http_uri_string
+	command_line	$USER1$/check_http -I $HOSTADDRESS$ -H $ARG1$ -p $ARG2$ -u $ARG3$ -s '$ARG4$'
+}
+
+# check http service with URI and expect regex
+define command {
+	command_name	check_http_regex
+	command_line	$USER1$/check_http -I $HOSTADDRESS$ -H $ARG1$ -u $ARG2$ -r $ARG3$
+}
+
+define command {
+	command_name	check_https
+	command_line	$USER1$/check_http -I $HOSTADDRESS$ -H $ARG1$ -S
+}
+
+define command {
+	command_name	check_https_string
+	command_line	$USER1$/check_http -I $HOSTADDRESS$ -H $ARG1$ -S -s '$ARG2$'
+}

Modified: nagios-config/trunk/commands/check_imap.cfg
==============================================================================
--- nagios-config/trunk/commands/check_imap.cfg	(original)
+++ nagios-config/trunk/commands/check_imap.cfg	Sun Oct  5 02:38:10 2008
@@ -3,3 +3,9 @@
 	command_name	check_imap
 	command_line	$USER1$/check_imap -H $HOSTADDRESS$ $ARG1$
 }
+
+# check secure imap
+define command {
+	command_name	check_imaps
+	command_line	$USER1$/check_simap -H $HOSTADDRESS$
+}

Added: nagios-config/trunk/commands/check_ircd.cfg
==============================================================================
--- (empty file)
+++ nagios-config/trunk/commands/check_ircd.cfg	Sun Oct  5 02:38:10 2008
@@ -0,0 +1,5 @@
+# check for ircd
+define command {
+	command_name	check_ircd
+	command_line	$USER1$/check_ircd -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$
+}

Modified: nagios-config/trunk/commands/check_load.cfg
==============================================================================
--- nagios-config/trunk/commands/check_load.cfg	(original)
+++ nagios-config/trunk/commands/check_load.cfg	Sun Oct  5 02:38:10 2008
@@ -1,3 +1,4 @@
+# Command to check the load on the local machine
 # 'check_local_load' command definition
 define command {
 	command_name	check_local_load

Added: nagios-config/trunk/commands/check_mysql.cfg
==============================================================================
--- (empty file)
+++ nagios-config/trunk/commands/check_mysql.cfg	Sun Oct  5 02:38:10 2008
@@ -0,0 +1,11 @@
+# 'check_mysql' command definition
+# uses $USER3$ and $USER4$ from resources.cfg for authentication
+define command {
+	command_name	check_mysql
+	command_line	$USER1$/check_mysql -H $ARG1$ -u $USER3$ -p $USER4$ -P$ARG2$
+}
+
+define command {
+	command_name	check_mysql-slave
+	command_line	$USER1$/check_mysql -H $ARG1$ -u $USER3$ -p $USER4$ -P$ARG2$ -S
+}

Added: nagios-config/trunk/commands/check_nntp.cfg
==============================================================================
--- (empty file)
+++ nagios-config/trunk/commands/check_nntp.cfg	Sun Oct  5 02:38:10 2008
@@ -0,0 +1,6 @@
+# 'check_nntp' command definition
+define command {
+	command_name	check_nntp
+	command_line	$USER1$/check_nntp -H $HOSTADDRESS$
+}
+

Modified: nagios-config/trunk/commands/check_ping.cfg
==============================================================================
--- nagios-config/trunk/commands/check_ping.cfg	(original)
+++ nagios-config/trunk/commands/check_ping.cfg	Sun Oct  5 02:38:10 2008
@@ -3,3 +3,14 @@
 	command_name	check_ping
 	command_line	$USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
 }
+
+# This command checks to see if a host is "alive" by pinging it
+# The check must result in a 100% packet loss or 5 second (5000ms) round trip
+# average time to produce a critical error.
+# Note: Only one ICMP echo packet is sent (determined by the '-p 1' argument)
+
+# Command to check to see if a host is "alive" (up) by pinging it
+define command {
+	command_name	check-host-alive
+	command_line	$USER1$/check_ping -H $HOSTADDRESS$ -w 100,99% -c 5000,100% -p 1
+}

Modified: nagios-config/trunk/commands/check_procs.cfg
==============================================================================
--- nagios-config/trunk/commands/check_procs.cfg	(original)
+++ nagios-config/trunk/commands/check_procs.cfg	Sun Oct  5 02:38:10 2008
@@ -1,6 +1,6 @@
+# Command to check the number of running processing on the local machine
 # 'check_local_procs' command definition
 define command {
 	command_name	check_local_procs
 	command_line	$USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
 }
-

Modified: nagios-config/trunk/commands/check_snmp.cfg
==============================================================================
--- nagios-config/trunk/commands/check_snmp.cfg	(original)
+++ nagios-config/trunk/commands/check_snmp.cfg	Sun Oct  5 02:38:10 2008
@@ -1,5 +1,5 @@
-# 'check_snmp' command definition
+# check for SNMPd
 define command {
-	command_name	check_snmp
-	command_line	$USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
+	command_name	check_snmpd
+	command_line	$USER1$/check_snmp -H $HOSTADDRESS$ -o system.sysName.0 -P 1 $ARG1$
 }

Added: nagios-config/trunk/commands/check_spamd.cfg
==============================================================================
--- (empty file)
+++ nagios-config/trunk/commands/check_spamd.cfg	Sun Oct  5 02:38:10 2008
@@ -0,0 +1,6 @@
+# check for spamassassin spamd
+
+define command {
+	command_name	check_spamd
+	command_line	$USER1$/check_tcp -H $HOSTNAME$ -p 783 -s 'PING SPAMC/1.0' -e 'PONG'
+}

Added: nagios-config/trunk/commands/check_telnet.cfg
==============================================================================
--- (empty file)
+++ nagios-config/trunk/commands/check_telnet.cfg	Sun Oct  5 02:38:10 2008
@@ -0,0 +1,5 @@
+# 'check_telnet' command definition
+define command {
+	command_name	check_telnet
+	command_line	$USER1$/check_tcp -H $HOSTADDRESS$ -p 23
+}

Modified: nagios-config/trunk/commands/check_users.cfg
==============================================================================
--- nagios-config/trunk/commands/check_users.cfg	(original)
+++ nagios-config/trunk/commands/check_users.cfg	Sun Oct  5 02:38:10 2008
@@ -1,4 +1,5 @@
-# 'check_local_users' command definition
+# Command used to check the number of currently logged in users on the
+# local machine
 define command {
 	command_name	check_local_users
 	command_line	$USER1$/check_users -w $ARG1$ -c $ARG2$

Modified: nagios-config/trunk/package.sh
==============================================================================
--- nagios-config/trunk/package.sh	(original)
+++ nagios-config/trunk/package.sh	Sun Oct  5 02:38:10 2008
@@ -4,7 +4,7 @@
 PV=$(date +%Y%m%d)
 
 files="
-checkcommands.cfg contactgroups.cfg contacts.cfg dependencies.cfg
+contactgroups.cfg contacts.cfg dependencies.cfg
 escalations.cfg hostextinfo.cfg hostgroups.cfg hosts.cfg misccommands.cfg
 serviceextinfo.cfg services.cfg timeperiods.cfg
 

Modified: nagios-config/trunk/resource.cfg
==============================================================================
--- nagios-config/trunk/resource.cfg	(original)
+++ nagios-config/trunk/resource.cfg	Sun Oct  5 02:38:10 2008
@@ -31,6 +31,3 @@
 # Store MySQL usernames/password (hidden from the CGIs)
 $USER3$=mysql
 #$USER4$=
-
-# This is used for SNMP v1 community string in checkcommands.cfg
-$USER5$=public


More information about the pld-cvs-commit mailing list