From e838d37537f6ecb083d6e2f4772b9652d6c17b56 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 28 Aug 2017 13:54:21 +0200 Subject: [PATCH] Unified HP raid check --- config/nagios-master.cfg | 35 ++++++++++++----------------------- 1 file changed, 12 insertions(+), 23 deletions(-) diff --git a/config/nagios-master.cfg b/config/nagios-master.cfg index ec86a04..36fd2ab 100644 --- a/config/nagios-master.cfg +++ b/config/nagios-master.cfg @@ -271,7 +271,7 @@ servers: fasolo: address: 138.16.160.17 parents: gw-brown - hostgroups: computers, service, apache2-hosts, apache-https, dl380, hpnewraid, rsyncd-systemd-hosts, jessie, hassrvfs, postgres94-hosts + hostgroups: computers, service, apache2-hosts, apache-https, dl380, rsyncd-systemd-hosts, jessie, hassrvfs, postgres94-hosts # }}} # {{{ gw-bytemark bm-bl1: @@ -503,7 +503,7 @@ servers: casulana: address: 5.153.231.41 parents: gw-bytemark - hostgroups: computers, service, stretch, hpnewraid, hassrvfs, dl380 + hostgroups: computers, service, stretch, hassrvfs, dl380 # }}} # {{{ gw-c3sl santoro: @@ -516,7 +516,7 @@ servers: mirror-anu: address: 150.203.164.39 parents: gw-cecsit - hostgroups: computers, service, apache2-hosts, dl360, hpnewraid, hassrvfs, stretch, apache-https + hostgroups: computers, service, apache2-hosts, dl360, hassrvfs, stretch, apache-https mirror-anu2: address: 150.203.164.60 parents: mirror-anu @@ -666,7 +666,7 @@ servers: mirror-isc: address: 149.20.4.13 parents: gw-isc - hostgroups: computers, service, apache2-hosts, apache-https, dl360, hpnewraid, hassrvfs, xinetd-hosts, jessie, security_mirror + hostgroups: computers, service, apache2-hosts, apache-https, dl360, hassrvfs, xinetd-hosts, jessie, security_mirror mirror-isc2: address: 149.20.4.14 parents: mirror-isc @@ -873,7 +873,7 @@ servers: sallinen: address: 193.62.202.26 parents: gw-sanger - hostgroups: computers, service, stretch, dl380, hpnewraid, nfs-client, autofs + hostgroups: computers, service, stretch, dl380, nfs-client, autofs sibelius: address: 193.62.202.28 parents: gw-sanger @@ -979,19 +979,19 @@ servers: ubc-enc2bl01: address: 209.87.16.1 parents: ubc-gateway - hostgroups: computers, bl460g8, service, jessie, multipath-hosts, hpnewraid + hostgroups: computers, bl460g8, service, jessie, multipath-hosts ubc-enc2bl02: address: 209.87.16.2 parents: ubc-gateway - hostgroups: computers, bl460g8, service, jessie, multipath-hosts, hpnewraid + hostgroups: computers, bl460g8, service, jessie, multipath-hosts ubc-enc2bl09: address: 209.87.16.9 parents: ubc-gateway - hostgroups: computers, bl460g8, service, jessie, multipath-hosts, hpnewraid + hostgroups: computers, bl460g8, service, jessie, multipath-hosts ubc-enc2bl10: address: 209.87.16.10 parents: ubc-gateway - hostgroups: computers, bl460g8, service, jessie, multipath-hosts, hpnewraid + hostgroups: computers, bl460g8, service, jessie, multipath-hosts rachmaninoff: address: 209.87.16.20 @@ -1093,7 +1093,7 @@ servers: mirror-umn: address: 128.101.240.212 parents: gw-umn - hostgroups: computers, service, apache2-hosts, apache-https, dl360, hpnewraid, hassrvfs, jessie, security_mirror + hostgroups: computers, service, apache2-hosts, apache-https, dl360, hassrvfs, jessie, security_mirror mirror-umn2: address: 128.101.240.215 parents: mirror-umn @@ -1225,9 +1225,6 @@ hostgroups: general: alias: general purpose developer accessible machines - hpnewraid: - alias: new (2015+) machines where we need hpssacli instead of hpacucli - private: 1 dl380: alias: HP DL380 hosts private: 1 @@ -2121,13 +2118,11 @@ services: excludehostgroups: sw-raid ### - - name: HW - hpacucli status + name: HW - HP raid status servicegroups: raid - nrpe: "/usr/lib/nagios/plugins/dsa-check-hpacucli" + nrpe: "if [ -e /var/cache/dsa/nagios/dsa-check-hpssacli ] ; then /usr/lib/nagios/plugins/dsa-check-statusfile /var/cache/dsa/nagios/dsa-check-hpssacli ; else /usr/lib/nagios/plugins/dsa-check-hpacucli; fi" check_interval: 120 hostgroups: dl380, dl360, bl460, bl460g8, dl180 - excludehosts: busoni - excludehostgroups: hpnewraid - name: HW - hpacucli status servicegroups: raid @@ -2140,12 +2135,6 @@ services: nrpe: "/usr/lib/nagios/plugins/dsa-check-hpacucli --no-battery" check_interval: 120 hosts: busoni - - - name: HW - hpssacli status - servicegroups: raid - nrpe: "if [ -e /var/cache/dsa/nagios/dsa-check-hpssacli ] ; then /usr/lib/nagios/plugins/dsa-check-statusfile /var/cache/dsa/nagios/dsa-check-hpssacli ; else /usr/lib/nagios/plugins/dsa-check-hpssacli; fi" - check_interval: 120 - hostgroups: hpnewraid ### # - # name: HW - edac status -- 2.20.1