diff options
author | makefu <github@syntax-fehler.de> | 2011-11-16 19:31:56 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2011-11-16 19:31:56 +0100 |
commit | c4c248f95a5d796e11984b6b6bc02bf774f5c495 (patch) | |
tree | 0a6caf914f06611dc01db116c10cf4ee22a5ab6c /Monitoring/Makefile | |
parent | f5c086a61ed2cf493d2e6edb0edf0f32230bb615 (diff) | |
parent | fd04c6512e502e7518fce110901a04a909b345ef (diff) |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'Monitoring/Makefile')
-rw-r--r-- | Monitoring/Makefile | 9 |
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 |