Skip to content

Commit

Permalink
Fix input parsing of TEMPer data in check_temper
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMS Linux committed Jun 2, 2020
1 parent 9a00a8b commit d6ac0e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fixes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ if (( $(awk 'BEGIN {print ("'$ver'" >= "'1.5'")}') )); then
printf -- "\e[37mImporting:\e[97m check_temper 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/check_temper.cfg 2>&1 | grep -E "ERROR"
fi
# Upgrade check_temper from to current version
temperver=1.4 # Current version of Temper script
temperver=1.6 # Current version of Temper script
if ! grep -q "Version $temperver" /usr/local/nagios/libexec/check_temper; then
cp -f /root/nems/nems-migrator/data/1.6/nagios/plugins/check_temper /usr/lib/nagios/plugins/check_temper
fi
Expand Down

0 comments on commit d6ac0e6

Please sign in to comment.