Skip to content
Permalink
Browse files

Activate custom_check_mem in nconf

  • Loading branch information...
NEMS Linux
NEMS Linux committed Aug 13, 2019
1 parent 944ca75 commit a56352a350e9a152d3ca497681d909dba64d3d98
Showing with 3 additions and 2 deletions.
  1. +3 −2 fixes.sh
@@ -309,9 +309,10 @@ fi
if (( $(awk 'BEGIN {print ("'$ver'" >= "'1.5'")}') )); then

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

# Install TEMPer Support

0 comments on commit a56352a

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