summaryrefslogtreecommitdiffstats
path: root/Monitoring/nagios/Makefile
diff options
context:
space:
mode:
authoreuer <root@euer.krebsco.de>2012-12-23 00:21:25 +0100
committereuer <root@euer.krebsco.de>2012-12-23 00:21:25 +0100
commit9456cfffea015812acf5dcdd2d074e98ca54e720 (patch)
treee57111b7d1499bb6f1ef49937f5f62de158ae5db /Monitoring/nagios/Makefile
parent3649aff46c8bace238c3cf22abcfbfe8be9dce8a (diff)
//Monitoring -> //god/Monitoring
Diffstat (limited to 'Monitoring/nagios/Makefile')
-rw-r--r--Monitoring/nagios/Makefile32
1 files changed, 0 insertions, 32 deletions
diff --git a/Monitoring/nagios/Makefile b/Monitoring/nagios/Makefile
deleted file mode 100644
index 4730f30d..00000000
--- a/Monitoring/nagios/Makefile
+++ /dev/null
@@ -1,32 +0,0 @@
-NAGDIR = /etc/nagios3/
-NAGLIBDIR = /usr/lib/nagios
-HTDOCS = /usr/share/nagios3/htdocs
-KREBS = /krebs
-
-.phony: debian
-debian:
- git pull origin master
- [ `which python` ] || apt-get install python python-simplejson
- [ `which nagios3` ] || apt-get install nagios3
- 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 ugo=rwx /var/lib/nagios3/rw/nagios.cmd || true
-
-debian-shinken:
- curl https://raw.github.com/nicolargo/shinkenautoinstall/master/shinkenautoinstall-debian.sh | sh
-
-shinken-discover-hosts: /etc/shinken/resources.cfg
- sed -i '/.*NMAPTARGETS.*/d' /etc/shinken/resource.cfg
- $(KREBS)/retiolum/bin/hosts | awk '{print $2}'| tr '\n' ' ' | xargs echo '$$NMAPTARGETS$$=' | magic create krebs-discovery /etc/shinken/resource.cfg
- shinken-discovery -o /etc/shinken/objects/discovery