Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMS Linux committed May 26, 2018
1 parent fd707bf commit c7f4a3c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions nems-push-db.sh
Expand Up @@ -3,6 +3,12 @@
# Built for creating new sample hosts and services, and pushing to all other NEMS servers
# NEMS 1.4+ only

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

systemctl stop nagios
systemctl stop mysql

cd /root/nems/nems-migrator/data/1.4/
if [[ -d mysql ]]; then
rm -rf mysql
Expand All @@ -19,6 +25,9 @@ fi
cp -R /etc/nems/conf/Default_collector .
cp -R /etc/nems/conf/global .

systemctl start mysql
systemctl start nagios

git add *
git commit -m "Push new default config"
git push origin master
3 changes: 2 additions & 1 deletion nems-push.sh
Expand Up @@ -25,4 +25,5 @@ git push origin master
cd /var/www/nconf/
git add *
git commit -am "$comment"
git push origin master
git push origin develop

0 comments on commit c7f4a3c

Please sign in to comment.