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 | dbad0afe8d4da3577c0fa5842ebcd6e4dac91525 (patch) | |
| tree | 197369698f1ab0d2c428df0288d6995a1d40e9dd /Monitoring/Makefile | |
| parent | 2a58f1af8074963ccbeec13a10811fefe2ceb113 (diff) | |
| parent | 8f900fff02ac22ba87c35e6745af11c0b8d98855 (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 |
