Permalink
Browse files

More automation for NagiosGraph

  • Loading branch information...
NEMS Linux
NEMS Linux committed Dec 9, 2018
1 parent 8aec6a6 commit a843387e5640d16fda941c1184854d333013d493
Showing with 6 additions and 2 deletions.
  1. +1 −1 build/050-nagios
  2. +5 −1 build/051-nagiosgraph
@@ -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
@@ -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"

0 comments on commit a843387

Please sign in to comment.