Package: nagios-plugins-basic
Version: 1.4.12-5
Severity: wishlist

Hi,

A number of Nagios plugins include useful functionality when connecting over
SSL: they check if the certificate is still valid and report a warning or
error when it (soon) expires.

I end up enabling this functionality in my configurations each time because
it's not enabled by default. I haven't yet found a reason why it shouldn't
be enabled.

Attached is a patch that in the shipped configuration enables this useful
extra check.


cheers,
Thijs

-- System Information:
Debian Release: 5.0.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=nl_NL.UTF-8, LC_CTYPE=nl_NL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
diff -Nur nagios-plugins-1.4.13+git200906171200.orig/debian/pluginconfig/http.cfg nagios-plugins-1.4.13+git200906171200/debian/pluginconfig/http.cfg
--- nagios-plugins-1.4.13+git200906171200.orig/debian/pluginconfig/http.cfg	2009-09-07 15:24:02.000000000 +0200
+++ nagios-plugins-1.4.13+git200906171200/debian/pluginconfig/http.cfg	2009-09-07 15:20:08.618293303 +0200
@@ -25,25 +25,25 @@
 # 'check_https' command definition
 define command{
 	command_name    check_https
-	command_line	/usr/lib/nagios/plugins/check_http --ssl -H '$HOSTADDRESS$' -I '$HOSTADDRESS$'
+	command_line	/usr/lib/nagios/plugins/check_http --ssl -C 21 -H '$HOSTADDRESS$' -I '$HOSTADDRESS$'
 	}
 
 # 'check_https_hostname' command definition
 define command{
 	command_name	check_https_hostname
-	command_line	/usr/lib/nagios/plugins/check_http --ssl -H '$HOSTNAME$' -I '$HOSTADDRESS$'
+	command_line	/usr/lib/nagios/plugins/check_http --ssl -C 21 -H '$HOSTNAME$' -I '$HOSTADDRESS$'
 	}
 
 # 'check_https_auth' command definition
 define command{
 	command_name	check_https_auth
-	command_line	/usr/lib/nagios/plugins/check_http --ssl -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' -a '$ARG1$'
+	command_line	/usr/lib/nagios/plugins/check_http --ssl -C 21 -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' -a '$ARG1$'
 	}
 
 # 'check_https_auth_hostname' command definition
 define command{
 	command_name	check_https_auth_hostname
-	command_line	/usr/lib/nagios/plugins/check_http --ssl -H '$HOSTNAME$' -I '$HOSTADDRESS$' -a '$ARG1$'
+	command_line	/usr/lib/nagios/plugins/check_http --ssl -C 21 -H '$HOSTNAME$' -I '$HOSTADDRESS$' -a '$ARG1$'
 	}
 
 # 'check_cups' command definition
@@ -83,25 +83,25 @@
 # 'check_https_4' command definition
 define command{
         command_name    check_https_4
-        command_line    /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' -4
+        command_line    /usr/lib/nagios/plugins/check_http --ssl -C 21 -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' -4
 	}
 
 # 'check_https_hostname_4' command definition
 define command{
 	command_name	check_https_hostname_4
-	command_line	/usr/lib/nagios/plugins/check_http --ssl -H '$HOSTNAME$' -I '$HOSTADDRESS$' -4
+	command_line	/usr/lib/nagios/plugins/check_http --ssl -C 21 -H '$HOSTNAME$' -I '$HOSTADDRESS$' -4
 	}
 
 # 'check_https_auth_4' command definition
 define command{
         command_name    check_https_auth_4
-        command_line    /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' -a '$ARG1$' -4
+        command_line    /usr/lib/nagios/plugins/check_http --ssl -C 21 -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' -a '$ARG1$' -4
         }
 
 # 'check_https_auth_hostname_4' command definition
 define command{
 	command_name	check_https_auth_hostname_4
-	command_line	/usr/lib/nagios/plugins/check_http --ssl -H '$HOSTNAME' -I '$HOSTADDRESS$' -a '$ARG1$' -4
+	command_line	/usr/lib/nagios/plugins/check_http --ssl -C 21 -H '$HOSTNAME' -I '$HOSTADDRESS$' -a '$ARG1$' -4
 	}
 
 # 'check_cups_4' command definition
diff -Nur nagios-plugins-1.4.13+git200906171200.orig/debian/pluginconfig/mail.cfg nagios-plugins-1.4.13+git200906171200/debian/pluginconfig/mail.cfg
--- nagios-plugins-1.4.13+git200906171200.orig/debian/pluginconfig/mail.cfg	2009-09-07 15:24:02.000000000 +0200
+++ nagios-plugins-1.4.13+git200906171200/debian/pluginconfig/mail.cfg	2009-09-07 15:21:41.965231973 +0200
@@ -14,7 +14,7 @@
 # 'check_ssmtp' command definition
 define command {
 	command_name	check_ssmtp
-	command_line	/usr/lib/nagios/plugins/check_ssmtp -H '$HOSTADDRESS$'
+	command_line	/usr/lib/nagios/plugins/check_ssmtp -D 21 -H '$HOSTADDRESS$'
 }
 
 # 'check_imap' command definition
@@ -26,14 +26,14 @@
 # 'check_spop' command definition
 define command {
 	command_name	check_spop
-	command_line	/usr/lib/nagios/plugins/check_pop -p 995 -H '$HOSTADDRESS$' -S
+	command_line	/usr/lib/nagios/plugins/check_pop -p 995 -D 21 -H '$HOSTADDRESS$' -S
 }
 
 
 # 'check_simap' command definition
 define command {
 	command_name	check_simap
-	command_line	/usr/lib/nagios/plugins/check_imap -p 993 -H '$HOSTADDRESS$' -S
+	command_line	/usr/lib/nagios/plugins/check_imap -p 993 -D 21 -H '$HOSTADDRESS$' -S
 }
 
 # 'check-mailq' for sendmail
@@ -79,7 +79,7 @@
 # 'check_ssmtp_4' command definition
 define command {
         command_name    check_ssmtp_4
-        command_line    /usr/lib/nagios/plugins/check_ssmtp -H '$HOSTADDRESS$' -4
+        command_line    /usr/lib/nagios/plugins/check_ssmtp -D 21 -H '$HOSTADDRESS$' -4
 }
 
 # 'check_imap_4' command definition
@@ -91,11 +91,11 @@
 # 'check_spop_4' command definition
 define command {
         command_name    check_spop_4
-        command_line    /usr/lib/nagios/plugins/check_pop -p 995 -H '$HOSTADDRESS$' -S -4
+        command_line    /usr/lib/nagios/plugins/check_pop -p 995 -D 21 -H '$HOSTADDRESS$' -S -4
 }
 
 # 'check_simap_4' command definition
 define command {
         command_name    check_simap_4
-        command_line    /usr/lib/nagios/plugins/check_imap -p 993 -H '$HOSTADDRESS$' -S -4
+        command_line    /usr/lib/nagios/plugins/check_imap -p 993 -D 21 -H '$HOSTADDRESS$' -S -4
 }

Reply via email to