From 162e68addbd4895109cb2e71fd1c22696d93c0e4 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 14 Jul 2023 00:48:57 +0100 Subject: Update store/mp3s volume/mount checks for clustering --- nagios/objects/cluster.cfg | 40 ++++++++++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 14 deletions(-) (limited to 'nagios/objects/cluster.cfg') diff --git a/nagios/objects/cluster.cfg b/nagios/objects/cluster.cfg index 06551c9..daa5862 100644 --- a/nagios/objects/cluster.cfg +++ b/nagios/objects/cluster.cfg @@ -160,26 +160,12 @@ define service { check_command check_file_no_linger!/etc/portage/savedconfig/sys-kernel/._cfg*_gentoo-kernel process_perf_data 0 } -define service { - use remote-service - host_name defiant - service_description Store Volume - check_command check_disk!10000!5000!/var/store/ - action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=/var/store%2Cdata&geom=800x180 -} define service { use remote-service hostgroup_name linux-servers service_description Sensors check_command check_sensors } -define service { - use remote-service - host_name defiant - service_description MythTV Volume - check_command check_disk!10%!5%!/var/store/mythrecordings/ - action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=/var/store/mythrecordings%2Cdata&geom=800x180 -} define service { use remote-service hostgroup_name linux-servers @@ -341,6 +327,18 @@ define service { service_description Git mount check_command check_mount!/var/git } +define service { + use remote-service + hostgroup_name linux-servers + service_description mp3s mount + check_command check_mount!/var/mp3s +} +define service { + use remote-service + hostgroup_name linux-servers + service_description Store mount + check_command check_mount!/var/store +} define service { use remote-service hostgroup_name linux-servers @@ -415,6 +413,20 @@ define service { check_command check_disk!10%!5%!/var/www/shared/ action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=/var/www/shared%2Cdata&geom=800x180 } +define service { + use remote-service + host_name virtualip + service_description Store Volume + check_command check_disk!10000!5000!/var/store/ + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=/var/store%2Cdata&geom=800x180 +} +define service { + use remote-service + host_name virtualip + service_description mp3s Volume + check_command check_disk!500!200!/var/mp3s/ + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=/var/mp3s%2Cdata&geom=800x180 +} # # Cluster services checks -- cgit v1.2.3