diff options
123 files changed, 4338 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..0d20b648 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.pyc diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..4e8a8e65 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +DIST = debian + +.PHONY: infest all +all: select-target + +infest: + make -C modules/infest + +install-core: + core/$(DIST) + +noise: + make -C modules/noise infest +streams: + make -C modules/streams +monitoring: + make -C modules/Monitoring debian +zoneminder: + make -C modules/zoneminder fix it so hard diff --git a/doc/Error.txt b/doc/Error.txt new file mode 100644 index 00000000..b49ee9ff --- /dev/null +++ b/doc/Error.txt @@ -0,0 +1,4 @@ +# Error 1: You are made of stupid! + +This gets issued whenever the probability of General Failure riding the +user's thinking process approaches 1. diff --git a/modules/Monitoring/Makefile b/modules/Monitoring/Makefile new file mode 100644 index 00000000..cc1d8903 --- /dev/null +++ b/modules/Monitoring/Makefile @@ -0,0 +1,8 @@ +.phony: debian +debian: + [ `which nagios3` ] || apt-get install nagios3 + rm /etc/nagios3/conf.d/localhost_nagios2.cfg || true + cp -r conf/* /etc/nagios3/conf.d/ + cp -R htdocs/* /usr/share/nagios3/htdocs/ + cp -r plugins /usr/lib/nagios + /etc/init.d/nagios3 reload diff --git a/modules/Monitoring/TODO b/modules/Monitoring/TODO new file mode 100644 index 00000000..6d74fdcd --- /dev/null +++ b/modules/Monitoring/TODO @@ -0,0 +1,5 @@ +add guest user +add guest user to +> * authorized_for_all_services=usernagios,guest +> * authorized_for_all_hosts=usernagios,guest +in /etc/nagios3/somewhere diff --git a/modules/Monitoring/conf/hostgroups_nagios2.cfg b/modules/Monitoring/conf/hostgroups_nagios2.cfg new file mode 100644 index 00000000..63acbf50 --- /dev/null +++ b/modules/Monitoring/conf/hostgroups_nagios2.cfg @@ -0,0 +1,31 @@ +# Some generic hostgroup definitions + +# A simple wildcard hostgroup +define hostgroup { + hostgroup_name all + alias All Servers + members * + } + +# A list of your Debian GNU/Linux servers +define hostgroup { + hostgroup_name debian-servers |