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

nap naparuba at gmail.com
Tue Feb 28 22:09:10 UTC 2012


The following commit has been merged in the debian/master branch:
commit f43c83c9964e2653e7cf68fc6607c99735d711e7
Author: nap <naparuba at gmail.com>
Date:   Sun Dec 18 15:18:40 2011 +0100

    Add : asterisk template.

diff --git a/etc/commands.cfg b/etc/commands.cfg
index 0b0ac86..210f2ab 100644
--- a/etc/commands.cfg
+++ b/etc/commands.cfg
@@ -242,6 +242,13 @@ define command {
 }
 
 
+# Asterisk (SIP) check. available at : http://www.bashton.com/downloads/nagios-check_sip-1.2.tar.gz
+define command {
+       command_name     check_sip
+       command_line     $PLUGINSDIR$/check_sip -H $HOSTADDRESS$ -u sip:$SIPUSER$
+}
+
+
 # -----------------------------------------------------------------
 #
 #      Mysql calls. It use the check_mysql_health from
diff --git a/etc/resource.cfg b/etc/resource.cfg
index 7479cd5..71f588f 100644
--- a/etc/resource.cfg
+++ b/etc/resource.cfg
@@ -42,3 +42,5 @@ $SNMPCOMMUNITYREAD$=public
 $NMAPTARGETS$=localhost www.google.fr
 
 
+### Asterisk
+$SIPUSER$=user at mydomain.com
\ No newline at end of file
diff --git a/etc/services/printers/hp/state.cfg b/etc/services/asterisk/state.cfg
similarity index 65%
copy from etc/services/printers/hp/state.cfg
copy to etc/services/asterisk/state.cfg
index ab0cb7b..015da7d 100644
--- a/etc/services/printers/hp/state.cfg
+++ b/etc/services/asterisk/state.cfg
@@ -2,6 +2,6 @@ define service{
    service_description    State
    use            generic-service
    register       0
-   host_name	  printer-hp
-   check_command  check_hpjd
+   host_name	  asterisk
+   check_command  check_sip
 }
diff --git a/etc/templates.cfg b/etc/templates.cfg
index 97907f3..f4d73b4 100644
--- a/etc/templates.cfg
+++ b/etc/templates.cfg
@@ -201,6 +201,14 @@ define host{
 }
 
 
+###### Others apps
+define host{
+       name                            asterisk
+       use                             generic-host
+       register                        0
+}
+
+
 
 
 ###############################################################################

-- 
UNNAMED PROJECT



More information about the Pkg-nagios-changes mailing list