Skip to content
Permalink
Browse files

Add custom_check_mem

  • Loading branch information...
NEMS Linux
NEMS Linux committed Aug 13, 2019
1 parent d83faf7 commit 2202b3439b1e942d719b7951b5ad0c1f9279b55e
Showing with 5 additions and 2 deletions.
  1. +3 −0 build/047-nrpe
  2. +2 −2 build/052-nems-nagios-plugins
@@ -35,6 +35,9 @@ systemctl stop nrpe

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

wget -O /usr/lib/nagios/plugins/custom_check_mem https://raw.githubusercontent.com/Cat5TV/nems-migrator/master/data/1.5/nagios/plugins/custom_check_mem
chmod +x /usr/lib/nagios/plugins/custom_check_mem

systemctl start nrpe
systemctl enable nrpe
systemctl status nrpe --no-pager
@@ -23,7 +23,7 @@ echo $0 > /var/www/html/userfiles/nems-build.cur
fi

# Grab the Migrator plugins
cp -f /root/nems/nems-migrator/data/1.5/nagios/plugins/* /usr/local/nagios/libexec/
cp -f /root/nems/nems-migrator/data/1.5/nagios/plugins/* /usr/lib/nagios/plugins/

# Log patch of upgrade to speedtest
if ! grep -q "PATCH-000004" /var/log/nems/patches.log; then
@@ -34,7 +34,7 @@ echo $0 > /var/www/html/userfiles/nems-build.cur
if [[ -f /usr/local/bin/telegram_nems.lua ]]; then
rm -f /usr/local/bin/telegram_nems.lua
fi
ln -s /usr/local/nagios/libexec/notify-by-telegram.lua /usr/local/bin/telegram_nems.lua
ln -s /usr/lib/nagios/plugins/notify-by-telegram.lua /usr/local/bin/telegram_nems.lua


# Add IPMI sudoers access for nagios user

0 comments on commit 2202b34

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