Permalink
Browse files

Begin configuring upgrade with nagiosgraph

  • Loading branch information...
NEMS Linux
NEMS Linux committed Dec 9, 2018
1 parent 66699e8 commit 8aec6a6716f618e01a4c55eddb549d0a875b3da7
Showing with 4 additions and 1 deletion.
  1. +4 −1 build/051-nagiosgraph
@@ -4,6 +4,9 @@
# https://www.allcloud.io/how-to/install-nagiosgraph/
# Access at /nagiosgraph/cgi-bin/show.cgi

# Install dependencies
apt -y install libgd-graph-perl
apt -y install libnagios-object-perl

if [[ -d /usr/local/src/nagiosgraph ]]; then
rm -Rf /tmp/nagiosgraph/
@@ -16,7 +19,7 @@ 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
./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 '# enable nagiosgraph CGI scripts
ScriptAlias /nagiosgraph/cgi-bin "/usr/local/nagiosgraph/cgi"

0 comments on commit 8aec6a6

Please sign in to comment.