[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a
nap
naparuba at gmail.com
Tue Feb 28 22:09:11 UTC 2012
The following commit has been merged in the debian/master branch:
commit 9b56bea6aa7e1df22178be4746e6dd59146131e7
Author: nap <naparuba at gmail.com>
Date: Sun Dec 18 15:23:40 2011 +0100
Add : dhcp template.
diff --git a/etc/commands.cfg b/etc/commands.cfg
index 210f2ab..1d6e11e 100644
--- a/etc/commands.cfg
+++ b/etc/commands.cfg
@@ -225,6 +225,12 @@ define command {
command_line $PLUGINSDIR$/check_oracle --tns $HOSTADDRESS$
}
+# Look at a Dhcp server
+# Beware : the check_dhcp should be SETUID (chmod u+s /usr/lib/nagios/plugins/check_dhcp)
+define command {
+ command_name check_dhcp
+ command_line $PLUGINSDIR$/check_dhcp -s $HOSTADDRESS$
+}
# Ldap query
diff --git a/etc/services/asterisk/state.cfg b/etc/services/asterisk/state.cfg
index 015da7d..86a8105 100644
--- a/etc/services/asterisk/state.cfg
+++ b/etc/services/asterisk/state.cfg
@@ -1,5 +1,5 @@
define service{
- service_description State
+ service_description Asterisk
use generic-service
register 0
host_name asterisk
diff --git a/etc/services/dhcp/dhcp.cfg b/etc/services/dhcp/dhcp.cfg
new file mode 100644
index 0000000..75c21af
--- /dev/null
+++ b/etc/services/dhcp/dhcp.cfg
@@ -0,0 +1,7 @@
+define service{
+ service_description Dhcp
+ use generic-service
+ register 0
+ host_name dhcp
+ check_command check_dhcp
+}
diff --git a/etc/templates.cfg b/etc/templates.cfg
index f4d73b4..b66b125 100644
--- a/etc/templates.cfg
+++ b/etc/templates.cfg
@@ -170,6 +170,10 @@ define host{
}
+define host{
+ name dhcp
+ register 0
+}
--
UNNAMED PROJECT
More information about the Pkg-nagios-changes
mailing list