Commit 32684993 authored by Emmanuel Temam's avatar Emmanuel Temam
Browse files

check plugins package

parent de5cbed3
...@@ -3,6 +3,12 @@ ...@@ -3,6 +3,12 @@
DESTDIR=/usr/local/etc/nrpe3 DESTDIR=/usr/local/etc/nrpe3
NRPEFILE=/usr/local/etc/nrpe.cfg NRPEFILE=/usr/local/etc/nrpe.cfg
if pkg info | grep monitoring-plugins > /dev/null;then echo package="monitoring-plugins";else package="nagios-plugins";fi
echo """********************************
***************************************
PACKAGE $package
***************************************
**************************************"""
echo "Stopping nrpe2" echo "Stopping nrpe2"
/usr/local/etc/rc.d/nrpe2 stop /usr/local/etc/rc.d/nrpe2 stop
echo "Deleting nrpe" 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