summaryrefslogtreecommitdiff
path: root/nagios
diff options
context:
space:
mode:
Diffstat (limited to 'nagios')
-rw-r--r--nagios/nrpe.cfg1
-rw-r--r--nagios/objects/cluster.cfg10
-rw-r--r--nagios/objects/commands.cfg5
3 files changed, 15 insertions, 1 deletions
diff --git a/nagios/nrpe.cfg b/nagios/nrpe.cfg
index 3ff4fa3..fcfd13b 100644
--- a/nagios/nrpe.cfg
+++ b/nagios/nrpe.cfg
@@ -302,6 +302,7 @@ command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs -w 5 -c 10 -s
command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w 150 -c 200 -k
command[check_drbd]=/usr/lib64/nagios/plugins/check_drbd -d all -r Primary -e Connected
command[check_file_age]=/usr/lib64/nagios/plugins/check_file_age -f $ARG1$ -w 1800 -c 2700
+command[check_haproxy]=/usr/lib64/nagios/plugins/check_haproxy_stats.pl -s /run/haproxy.stats
# The following examples allow user-supplied arguments and can
diff --git a/nagios/objects/cluster.cfg b/nagios/objects/cluster.cfg
index 804580d..e792277 100644
--- a/nagios/objects/cluster.cfg
+++ b/nagios/objects/cluster.cfg
@@ -170,7 +170,15 @@ define service {
service_description GB API
check_command check_ice!9001!portage!users!maintenance
}
-
+define service {
+ use local-service
+ hostgroup_name linux-servers
+ service_description HA Proxy
+ check_command check_haproxy
+ max_check_attempts 1
+ check_interval 1
+ retry_interval 1
+}
#
# Cluster state checks
diff --git a/nagios/objects/commands.cfg b/nagios/objects/commands.cfg
index 0b22568..b11cc68 100644
--- a/nagios/objects/commands.cfg
+++ b/nagios/objects/commands.cfg
@@ -48,6 +48,11 @@ define command {
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_swap -a $ARG1$
}
+define command {
+ command_name check_haproxy
+ command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_haproxy
+}
+
################################################################################
# NOTE: The following 'check_...' commands are used to monitor services on