summaryrefslogtreecommitdiffstats
path: root/Monitoring/Makefile
diff options
context:
space:
mode:
authorFelix Richter <Felix.Richter@syntax-fehler.de>2011-06-16 15:50:03 +0200
committerFelix Richter <Felix.Richter@syntax-fehler.de>2011-06-16 16:01:07 +0200
commit498ba8daa5af889389114d9cf37b3e7927a2d083 (patch)
tree571300bbd179ec6af4371a5f17316c48fc0c5bb5 /Monitoring/Makefile
parentfc7eb1ebb3f922beff6fa164a9a427754362e555 (diff)
Monitoring: implemented TODOs
Diffstat (limited to 'Monitoring/Makefile')
-rw-r--r--Monitoring/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Monitoring/Makefile b/Monitoring/Makefile
index 90c7e0c1..72269101 100644
--- a/Monitoring/Makefile
+++ b/Monitoring/Makefile
@@ -10,7 +10,12 @@ debian:
htpasswd -bc htpasswd.users nagiosadmin krebs
htpasswd -b htpasswd.users shack shackit
sed -i 's/\(authorized_for_all_hosts=nagiosadmin\)$$/\1,shack/' $(NAGDIR)/cgi.cfg
+ sed -i 's/\(check_external_commands=\)0$$/\11/' $(NAGDIR)/nagios.cfg
sed -i 's/\(authorized_for_all_services=nagiosadmin\)$$/\1,shack/' $(NAGDIR)/cgi.cfg
cp -R htdocs/* $(HTDOCS)
cp -r plugins $(NAGLIBDIR)
/etc/init.d/nagios3 reload
+ chown nagios:www-data /var/lib/nagios3 || true
+ chown nagios:www-data /var/lib/nagios3/rw || true
+ chmod g+x /var/lib/nagios3 || true
+ chmod ug=rwx /var/lib/nagios3/rw/nagios.cmd || true