summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nagios/nrpe.cfg1
-rw-r--r--nagios/objects/cluster.cfg6
-rw-r--r--nagios/objects/commands.cfg5
3 files changed, 12 insertions, 0 deletions
diff --git a/nagios/nrpe.cfg b/nagios/nrpe.cfg
index 6bf15c7..5fbf9e1 100644
--- a/nagios/nrpe.cfg
+++ b/nagios/nrpe.cfg
@@ -14,6 +14,7 @@ command[check_disk]=/usr/lib64/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -p
command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs -w 5 -c 10 -s Z
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
+command[check_raid]=/usr/lib64/nagios/plugins/check_raid.pl
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 -s /run/haproxy.stats
command[check_time]=/usr/lib64/nagios/plugins/check_ntp_time -H uk.pool.ntp.org
diff --git a/nagios/objects/cluster.cfg b/nagios/objects/cluster.cfg
index 7d57b7f..bb03a64 100644
--- a/nagios/objects/cluster.cfg
+++ b/nagios/objects/cluster.cfg
@@ -218,6 +218,12 @@ define service {
check_interval 1
retry_interval 1
}
+define service {
+ use remote-service
+ hostgroup_name linux-servers
+ service_description Raid
+ check_command check_raid
+}
#
# Cluster state checks
diff --git a/nagios/objects/commands.cfg b/nagios/objects/commands.cfg
index 938b642..c057b2c 100644
--- a/nagios/objects/commands.cfg
+++ b/nagios/objects/commands.cfg
@@ -29,6 +29,11 @@ define command {
}
define command {
+ command_name check_raid
+ command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_raid
+}
+
+define command {
command_name check_load
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_load
}