[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a

nap naparuba at gmail.com
Tue Feb 28 22:13:40 UTC 2012


The following commit has been merged in the debian/master branch:
commit d3cfc1a9a517db662066bdae45abf11a3d1718cc
Author: nap <naparuba at gmail.com>
Date:   Sat Jan 14 14:12:58 2012 +0100

    Add : imap(s) service pack.

diff --git a/etc/packs/network/services/imap/commands.cfg b/etc/packs/network/services/imap/commands.cfg
new file mode 100644
index 0000000..b7905ae
--- /dev/null
+++ b/etc/packs/network/services/imap/commands.cfg
@@ -0,0 +1,17 @@
+# Look for good imap connection
+define command {
+       command_name	check_imap
+       command_line	$PLUGINSDIR$/check_imap -H $HOSTADDRESS$
+}
+
+
+# And IMAPS too
+define command {
+       command_name	check_imaps
+       command_line	$PLUGINSDIR$/check_imap -H $HOSTADDRESS$ -S
+}
+
+define command {
+       command_name     check_imaps_certificate
+       command_line     $PLUGINSDIR$/check_imap -H $HOSTADDRESS$ -S -D 30
+}
diff --git a/etc/packs/network/services/imap/discovery.cfg b/etc/packs/network/services/imap/discovery.cfg
new file mode 100644
index 0000000..8b1bf4d
--- /dev/null
+++ b/etc/packs/network/services/imap/discovery.cfg
@@ -0,0 +1,14 @@
+define discoveryrule {
+       discoveryrule_name       Imap
+       creation_type            host
+       openports                ^143$
+       +use                     imap
+}
+
+
+define discoveryrule {
+       discoveryrule_name       Imaps
+       creation_type            host
+       openports                ^993$
+       +use                     imaps
+}
diff --git a/etc/packs/network/services/imap/services/imap.cfg b/etc/packs/network/services/imap/services/imap.cfg
new file mode 100644
index 0000000..3b88584
--- /dev/null
+++ b/etc/packs/network/services/imap/services/imap.cfg
@@ -0,0 +1,7 @@
+define service{
+   service_description		Imap
+   use            		generic-service
+   register       		0
+   host_name	  		imap
+   check_command  		check_imap
+}
diff --git a/etc/packs/network/services/imap/services/imaps.cfg b/etc/packs/network/services/imap/services/imaps.cfg
new file mode 100644
index 0000000..1394a0e
--- /dev/null
+++ b/etc/packs/network/services/imap/services/imaps.cfg
@@ -0,0 +1,7 @@
+define service{
+   service_description           imaps
+   use            		 generic-service
+   register       		 0
+   host_name	  		 imaps
+   check_command  		 check_imaps
+}
diff --git a/etc/packs/network/services/imap/services/imaps_certificate.cfg b/etc/packs/network/services/imap/services/imaps_certificate.cfg
new file mode 100644
index 0000000..5809bd3
--- /dev/null
+++ b/etc/packs/network/services/imap/services/imaps_certificate.cfg
@@ -0,0 +1,7 @@
+define service{
+   service_description           ImapsCertificate
+   use            		 generic-service
+   register       		 0
+   host_name	  		 imaps
+   check_command  		 check_imaps_certificate
+}
diff --git a/etc/packs/network/services/smtp/templates.cfg b/etc/packs/network/services/imap/templates.cfg
similarity index 74%
copy from etc/packs/network/services/smtp/templates.cfg
copy to etc/packs/network/services/imap/templates.cfg
index 05af4df..3cb4930 100644
--- a/etc/packs/network/services/smtp/templates.cfg
+++ b/etc/packs/network/services/imap/templates.cfg
@@ -1,12 +1,12 @@
 define host{
-   name           smtp
+   name           imap
    use            generic-host
    register       0
 }
 
 
 define host{
-   name           smtps
+   name           imaps
    use            generic-host
    register       0
 }

-- 
UNNAMED PROJECT



More information about the Pkg-nagios-changes mailing list