Use cached result for dsa-check-hpssacli if it exists
authorPeter Palfrader <peter@palfrader.org>
Mon, 28 Aug 2017 11:32:33 +0000 (13:32 +0200)
committerPeter Palfrader <peter@palfrader.org>
Mon, 28 Aug 2017 11:32:33 +0000 (13:32 +0200)
config/nagios-master.cfg

index 6b3862f..d14dcae 100644 (file)
@@ -2143,7 +2143,7 @@ services:
   -
     name: HW - hpssacli status
     servicegroups: raid
-    nrpe: "/usr/lib/nagios/plugins/dsa-check-hpssacli"
+    nrpe: "if [ -e /var/cache/dsa/nagios/hpssacli ] ; then /usr/lib/nagios/plugins/dsa-check-statusfile /var/cache/dsa/nagios/hpssacli ; else /usr/lib/nagios/plugins/dsa-check-hpssacli; fi"
     check_interval: 120
     hostgroups: hpnewraid
   ###