Skip to content
Permalink
Browse files

Add custom_check_mem

  • Loading branch information...
NEMS Linux
NEMS Linux committed Aug 13, 2019
1 parent 9e6f1e8 commit 944ca756dde30fa7bdb5cb3e6b2b9c0d3b2a21f2
Showing with 6 additions and 0 deletions.
  1. +6 −0 fixes.sh
@@ -308,6 +308,12 @@ fi

if (( $(awk 'BEGIN {print ("'$ver'" >= "'1.5'")}') )); then

# Add custom_check_mem
if [[ ! -e /usr/lib/nagios/plugins ]]; then
cp /root/nems/nems-migrator/data/1.5/nagios/plugins/custom_check_mem /usr/lib/nagios/plugins
printf -- "\e[37mImporting:\e[97m custom_check_mem to NEMS NConf\033[0m\n" && /var/www/nconf/bin/add_items_from_nagios.pl -c checkcommand -f /root/nems/nems-migrator/data/1.5/nagios/nconf_patches/custom_check_mem.cfg 2>&1 | grep -E "ERROR"
fi

# Install TEMPer Support
if [ $(dpkg-query -W -f='${Status}' python3-serial 2>/dev/null | grep -c "ok installed") -eq 0 ]; then
/root/nems/nems-admin/build/500-temper

0 comments on commit 944ca75

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