From 7a454abe517dace9a9e717e09df2436ec1dfa378 Mon Sep 17 00:00:00 2001 From: Felix Richter Date: Thu, 16 Jun 2011 14:53:53 +0200 Subject: migrated all necessary configuration used the Debian config for krebs to provide a generic environment without dependencies to other nagios systems --- Monitoring/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Monitoring/Makefile') diff --git a/Monitoring/Makefile b/Monitoring/Makefile index a42707e3..90c7e0c1 100644 --- a/Monitoring/Makefile +++ b/Monitoring/Makefile @@ -5,8 +5,7 @@ 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 -- cgit v1.2.3 From 498ba8daa5af889389114d9cf37b3e7927a2d083 Mon Sep 17 00:00:00 2001 From: Felix Richter Date: Thu, 16 Jun 2011 15:50:03 +0200 Subject: Monitoring: implemented TODOs --- Monitoring/Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Monitoring/Makefile') 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 -- cgit v1.2.3