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 | 01d6ff215f8a142960551cabaa084667ef482133 (patch) | |
tree | 817b8b090da2b3d3f8b127499347dd455885e887 /Monitoring/Makefile | |
parent | e0b0b90df26b9190bb24ecee0a3ddb26f4156438 (diff) | |
parent | fc1e4fcabd1e888089d2ea970ee6906735b84598 (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 |