Skip to content

Commit

Permalink
Add custom_check_mem
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMS Linux committed Aug 13, 2019
1 parent 9e6f1e8 commit 944ca75
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fixes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 944ca75

Please sign in to comment.