summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <Lassulus@googlemail.com>2011-11-15 19:23:21 +0100
committerlassulus <Lassulus@googlemail.com>2011-11-15 19:23:21 +0100
commit57239fa65d74feecf6ac7692a728d647c022283c (patch)
treef00983d25768125738edc967fc4ad479f35dbca8
parentc77015310e7928d8330b2b5a8483f02055bb3376 (diff)
parentcda7ac879c8791d7b59f9b726136efa274a12e4b (diff)
Merge branch 'master' of github.com:krebscode/painload
-rw-r--r--Monitoring/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Monitoring/Makefile b/Monitoring/Makefile
index 794f9262..4730f30d 100644
--- a/Monitoring/Makefile
+++ b/Monitoring/Makefile
@@ -1,6 +1,7 @@
NAGDIR = /etc/nagios3/
NAGLIBDIR = /usr/lib/nagios
HTDOCS = /usr/share/nagios3/htdocs
+KREBS = /krebs
.phony: debian
debian:
@@ -21,3 +22,11 @@ debian:
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