Permalink
Browse files

New thermal thresholds for XU4

  • Loading branch information...
NEMS Linux
NEMS Linux committed Jan 9, 2019
1 parent 5580285 commit 5a901c5c54f7416d5e3edb81a8c86938bac153f4
Showing with 28 additions and 18 deletions.
  1. +4 −0 nems-cleanup.sh
  2. +24 −18 nems-push-db.sh
@@ -11,6 +11,10 @@ else

if [[ $1 != "halt" ]]; then echo "Pass the halt option to halt after execution or the reboot option to reboot."; echo ""; fi;

echo "Did you set thermal thresholds in sbc-temperature for this board?"
echo "Press CTRL-C if not."
sleep 5

if [[ -f /tmp/qf.sh ]]; then
qfrunning=`ps aux | grep -i "myscript.sh" | grep -v "grep" | wc -l`
if [ $qfrunning -ge 1 ]
@@ -3,24 +3,9 @@
# Built for creating new sample hosts and services, and pushing to all other NEMS servers
# Requires NEMS 1.4+

# Remove nconf history, should it exist
mysql -u nconf -pnagiosadmin nconf -e "TRUNCATE History"

systemctl stop nagios

echo Starting Nagios.
systemctl start nagios
echo If you see an error, press CTRL-C immediately!!
systemctl stop nagios
sleep 5

# Convert the database to new default config files (for reconciliation)
/root/nems/nems-admin/helpers/nems-db-to-cfg.sh

# Copy the active config for use as default at init
systemctl start nagios
/root/nems/nems-admin/helpers/nems-conf-to-cfg.sh
systemctl stop nagios
echo ""
echo "You must have UI access in order to proceed."
echo ""

echo Starting Nagios.
systemctl start nagios
@@ -64,6 +49,27 @@ mysql -t -u nconf -pnagiosadmin nconf -e "UPDATE ConfigValues SET attr_value='na
echo "After:"
mysql -t -u nconf -pnagiosadmin nconf -e "SELECT * FROM ConfigValues WHERE fk_id_attr=55;"


# Remove nconf history, should it exist
mysql -u nconf -pnagiosadmin nconf -e "TRUNCATE History"

systemctl stop nagios

echo Starting Nagios.
systemctl start nagios
echo If you see an error, press CTRL-C immediately!!
systemctl stop nagios
sleep 5

# Convert the database to new default config files (for reconciliation)
/root/nems/nems-admin/helpers/nems-db-to-cfg.sh

# Copy the active config for use as default at init
systemctl start nagios
/root/nems/nems-admin/helpers/nems-conf-to-cfg.sh
systemctl stop nagios


systemctl stop mysql

if [[ ! -d /root/nems/nems-migrator/data/1.5/mysql ]]; then

0 comments on commit 5a901c5

Please sign in to comment.