From: Peter Palfrader Date: Mon, 28 Aug 2017 11:32:33 +0000 (+0200) Subject: Use cached result for dsa-check-hpssacli if it exists X-Git-Url: https://wiki.adam-barratt.org.uk/gitweb/?a=commitdiff_plain;h=e1647ab13121d18392f045c7677c9697ed709937;p=mirror%2Fdsa-nagios.git Use cached result for dsa-check-hpssacli if it exists --- diff --git a/config/nagios-master.cfg b/config/nagios-master.cfg index 6b3862f..d14dcae 100644 --- a/config/nagios-master.cfg +++ b/config/nagios-master.cfg @@ -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 ###