Skip to content
Permalink
Browse files

Install plugins if not nems-admin

  • Loading branch information...
NEMS Linux
NEMS Linux committed Aug 12, 2019
1 parent 512cee1 commit 7ed5108112eebac3cfaa830a74ccc361b4dcaf75
Showing with 7 additions and 0 deletions.
  1. +7 −0 build/047-nrpe
@@ -30,6 +30,13 @@ systemctl stop nrpe

wget -O /usr/local/nagios/etc/nrpe.cfg https://raw.githubusercontent.com/Cat5TV/nems-migrator/master/data/1.5/nagios/nrpe.cfg

if [[ ! -e $(pwd)/051-monitoring-plugins ]]; then
# Not running from nems-admin. Install plugins
apt -y install --reinstall monitoring-plugins-common
apt -y install --reinstall monitoring-plugins-basic
apt -y install --reinstall monitoring-plugins-standard
fi

systemctl start nrpe
systemctl enable nrpe
systemctl status nrpe --no-pager

0 comments on commit 7ed5108

Please sign in to comment.
You can’t perform that action at this time.