Use cached result for dsa-check-hpssacli if it exists
[mirror/dsa-nagios.git] / 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
   ###