Commit 870c8f1a authored by Emmanuel Temam's avatar Emmanuel Temam
Browse files

check plugins package

parent 32684993
......@@ -3,12 +3,13 @@
DESTDIR=/usr/local/etc/nrpe3
NRPEFILE=/usr/local/etc/nrpe.cfg
if pkg info | grep monitoring-plugins > /dev/null;then echo package="monitoring-plugins";else package="nagios-plugins";fi
if pkg info | grep monitoring-plugins > /dev/null;then package="monitoring-plugins";else package="nagios-plugins";fi
echo """********************************
***************************************
PACKAGE $package
***************************************
**************************************"""
sleep 5
echo "Stopping nrpe2"
/usr/local/etc/rc.d/nrpe2 stop
echo "Deleting nrpe"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment