diff options
author | root <root@krebs> | 2011-06-29 21:06:26 +0200 |
---|---|---|
committer | root <root@krebs> | 2011-06-29 21:06:26 +0200 |
commit | 68f240ac326dc551ceb17f3349911310cdfae1f2 (patch) | |
tree | 85e71f935f2e2b04f81c937364dac2ec39fc5d51 /Monitoring/Makefile | |
parent | 2a58f1af8074963ccbeec13a10811fefe2ceb113 (diff) | |
parent | 3cf2e3aeef1f62429281399b2e7e3ae98408260d (diff) |
Merge branch 'master' of github.com:/krebscode/painload
Diffstat (limited to 'Monitoring/Makefile')
-rw-r--r-- | Monitoring/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Monitoring/Makefile b/Monitoring/Makefile index a42707e3..72269101 100644 --- a/Monitoring/Makefile +++ b/Monitoring/Makefile @@ -5,13 +5,17 @@ HTDOCS = /usr/share/nagios3/htdocs .phony: debian debian: [ `which nagios3` ] || apt-get install nagios3 - rm $(NAGDIR)/conf.d/localhost_nagios2.cfg || true - rm $(NAGDIR)/conf.d/host-gateway_nagios3.cfg || true + rm $(NAGDIR)/conf.d/* || true cp -r conf/* $(NAGDIR)/conf.d/ 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 |