summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-06-18 18:51:06 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-06-18 18:51:06 +0100
commit94b10fdcf6fdd02c17943e8e1a69a6e7963bdf8a (patch)
tree717c76e722aa8690c3536196d22d6a7928b9e383
parentCheck generic cache volume, not just Apache cache (diff)
downloadconfig-94b10fdcf6fdd02c17943e8e1a69a6e7963bdf8a.tar.bz2
config-94b10fdcf6fdd02c17943e8e1a69a6e7963bdf8a.tar.xz
config-94b10fdcf6fdd02c17943e8e1a69a6e7963bdf8a.zip
Add checks for ldap, ntp and dns
-rw-r--r--nagios/objects/cluster.cfg18
-rw-r--r--nagios/objects/commands.cfg15
2 files changed, 33 insertions, 0 deletions
diff --git a/nagios/objects/cluster.cfg b/nagios/objects/cluster.cfg
index 65e4101..0767ea1 100644
--- a/nagios/objects/cluster.cfg
+++ b/nagios/objects/cluster.cfg
@@ -173,6 +173,24 @@ define service {
define service {
use local-service
hostgroup_name linux-servers
+ service_description LDAP
+ check_command check_ldap
+}
+define service {
+ use local-service
+ hostgroup_name linux-servers
+ service_description NTP time
+ check_command check_ntp
+}
+define service {
+ use local-service
+ hostgroup_name linux-servers
+ service_description DNS
+ check_command check_dns
+}
+define service {
+ use local-service
+ hostgroup_name linux-servers
service_description HA Proxy
check_command check_haproxy
max_check_attempts 1
diff --git a/nagios/objects/commands.cfg b/nagios/objects/commands.cfg
index b11cc68..94574c9 100644
--- a/nagios/objects/commands.cfg
+++ b/nagios/objects/commands.cfg
@@ -109,6 +109,21 @@ define command {
command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$ $ARG2$
}
+define command {
+ command_name check_ldap
+ command_line $USER1$/check_ldap -H $HOSTADDRESS$ -b dc=random,dc=lan -3
+}
+
+define command {
+ command_name check_ntp
+ command_line $USER1$/check_ntp_time -H $HOSTADDRESS$
+}
+
+define command {
+ command_name check_dns
+ command_line $USER1$/check_dns -H $HOSTADDRESS$ -s $HOSTADDRESS$
+}
+
#
# These are sample performance data commands that can be used to send performance
# data output to two text files (one for hosts, another for services). If you