Skip to content

Commit

Permalink
More automation for NagiosGraph
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMS Linux committed Dec 9, 2018
1 parent 8aec6a6 commit a843387
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/050-nagios
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
make install-webconf

systemctl stop nagios
cp -f /root/nems/nems-migrator/data/1.5/nagios/nagios.cfg /usr/local/nagios/etc/
cp -f /root/nems/nems-migrator/data/1.5/nagios/etc/nagios.cfg /usr/local/nagios/etc/
systemctl start nagios

# Finished installing Nagios Core
Expand Down
6 changes: 5 additions & 1 deletion build/051-nagiosgraph
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ cd nagiosgraph-1.5.2
./install.pl --check-prereq
echo If anything is missing, CTRL-C and install, then re-run $0
sleep 5
./install.pl --layout overlay --prefix /usr/local/nagios --etc-dir /usr/local/nagios/etc/nagiosgraph --var-dir /usr/local/nagios/var --log-dir /var/log/nagios/ --doc-dir /usr/local/nagios/docs/nagiosgraph --nagios-cgi-url /nagios/cgi-bin --nagios-perfdata-file /usr/local/nagios/var/service-perfdata.log --nagios-user nagios --www-user www-data
echo ""
echo "Just push enter a bunch of times (already pre-filled)"
echo ""
sleep 5
./install.pl --layout overlay --prefix /usr/local/nagios --etc-dir /usr/local/nagios/etc/nagiosgraph --var-dir /usr/local/nagios/var --log-dir /var/log/nagios/ --doc-dir /usr/local/nagios/docs/nagiosgraph --nagios-cgi-url /nagios/cgi-bin --nagios-perfdata-file /tmp/perfdata.log --nagios-user nagios --www-user www-data

echo '# enable nagiosgraph CGI scripts
ScriptAlias /nagiosgraph/cgi-bin "/usr/local/nagiosgraph/cgi"
Expand Down

0 comments on commit a843387

Please sign in to comment.