From 9456cfffea015812acf5dcdd2d074e98ca54e720 Mon Sep 17 00:00:00 2001 From: euer Date: Sun, 23 Dec 2012 00:21:25 +0100 Subject: //Monitoring -> //god/Monitoring --- god/Monitoring/collectd/collectd.conf | 37 ++ god/Monitoring/collectd/supervisor.d/collectd.conf | 3 + god/Monitoring/nagios/Makefile | 32 ++ god/Monitoring/nagios/TODO | 0 god/Monitoring/nagios/conf/extinfo.cfg | 9 + god/Monitoring/nagios/conf/hostgroups_generic.cfg | 28 + god/Monitoring/nagios/conf/krebs_hosts.cfg | 78 +++ god/Monitoring/nagios/conf/krebsnet.cfg | 20 + god/Monitoring/nagios/conf/localhost.cfg | 60 ++ god/Monitoring/nagios/conf/other_hosts.cfg | 22 + god/Monitoring/nagios/conf/services.cfg | 26 + god/Monitoring/nagios/conf/shack_contacts.cfg | 22 + god/Monitoring/nagios/conf/shack_guests.cfg | 105 ++++ .../nagios/conf/shack_infrastructure.cfg | 241 ++++++++ god/Monitoring/nagios/conf/shacknet.cfg | 47 ++ god/Monitoring/nagios/conf/templates.cfg | 45 ++ god/Monitoring/nagios/conf/timeperiods.cfg | 50 ++ god/Monitoring/nagios/conf/tinc_hosts.cfg | 33 ++ god/Monitoring/nagios/conf/tincnet.cfg | 31 ++ .../htdocs/images/logos/krebs/bitcoin_miner.gd2 | Bin 0 -> 1047 bytes .../htdocs/images/logos/krebs/bitcoin_miner.png | Bin 0 -> 3681 bytes .../nagios/htdocs/images/logos/krebs/favicon.ico | Bin 0 -> 822 bytes .../nagios/htdocs/images/logos/krebs/krebs.gd2 | Bin 0 -> 1047 bytes .../nagios/htdocs/images/logos/krebs/krebs.png | Bin 0 -> 238 bytes .../nagios/htdocs/images/logos/krebs/shack.gd2 | Bin 0 -> 1047 bytes .../nagios/htdocs/images/logos/krebs/shack.png | Bin 0 -> 316 bytes .../nagios/htdocs/images/logos/krebs/tinc.gd2 | Bin 0 -> 1305 bytes .../nagios/htdocs/images/logos/krebs/tinc.png | Bin 0 -> 361 bytes .../images/logos/krebs/wireless_access_point.gd2 | Bin 0 -> 1047 bytes .../images/logos/krebs/wireless_access_point.png | Bin 0 -> 883 bytes .../logos/krebs/wireless_access_point_64.png | Bin 0 -> 5364 bytes god/Monitoring/nagios/htpasswd.users | 2 + god/Monitoring/nagios/plugins/check.bat | 0 god/Monitoring/nagios/plugins/check.sh | 5 + god/Monitoring/nagios/plugins/check_apt | Bin 0 -> 106120 bytes god/Monitoring/nagios/plugins/check_bgpstate | 215 ++++++++ god/Monitoring/nagios/plugins/check_breeze | 87 +++ god/Monitoring/nagios/plugins/check_btcguild_miner | 36 ++ god/Monitoring/nagios/plugins/check_by_ssh | Bin 0 -> 46192 bytes god/Monitoring/nagios/plugins/check_clamd | 1 + god/Monitoring/nagios/plugins/check_cluster | Bin 0 -> 32072 bytes god/Monitoring/nagios/plugins/check_cpu | 165 ++++++ god/Monitoring/nagios/plugins/check_dhcp | Bin 0 -> 44816 bytes god/Monitoring/nagios/plugins/check_dig | Bin 0 -> 41392 bytes god/Monitoring/nagios/plugins/check_disk | Bin 0 -> 119216 bytes god/Monitoring/nagios/plugins/check_disk_smb | 307 +++++++++++ god/Monitoring/nagios/plugins/check_dns | Bin 0 -> 45488 bytes god/Monitoring/nagios/plugins/check_dummy | Bin 0 -> 28968 bytes god/Monitoring/nagios/plugins/check_dummy.sh | 5 + god/Monitoring/nagios/plugins/check_file_age | 112 ++++ god/Monitoring/nagios/plugins/check_flexlm | 244 +++++++++ god/Monitoring/nagios/plugins/check_fping | Bin 0 -> 44656 bytes god/Monitoring/nagios/plugins/check_ftp | 1 + god/Monitoring/nagios/plugins/check_game | Bin 0 -> 36584 bytes god/Monitoring/nagios/plugins/check_host | 1 + god/Monitoring/nagios/plugins/check_hpjd | Bin 0 -> 41136 bytes god/Monitoring/nagios/plugins/check_http | Bin 0 -> 164624 bytes god/Monitoring/nagios/plugins/check_icmp | Bin 0 -> 49264 bytes god/Monitoring/nagios/plugins/check_ide_smart | Bin 0 -> 34536 bytes god/Monitoring/nagios/plugins/check_ifoperstatus | 472 ++++++++++++++++ god/Monitoring/nagios/plugins/check_ifstatus | 425 ++++++++++++++ god/Monitoring/nagios/plugins/check_imap | 1 + god/Monitoring/nagios/plugins/check_ircd | 239 ++++++++ god/Monitoring/nagios/plugins/check_jabber | 1 + god/Monitoring/nagios/plugins/check_ldap | Bin 0 -> 40816 bytes god/Monitoring/nagios/plugins/check_ldaps | 1 + god/Monitoring/nagios/plugins/check_linux_raid | 115 ++++ god/Monitoring/nagios/plugins/check_load | Bin 0 -> 36168 bytes god/Monitoring/nagios/plugins/check_log | 219 ++++++++ god/Monitoring/nagios/plugins/check_mailq | 608 +++++++++++++++++++++ god/Monitoring/nagios/plugins/check_mem.pl | 263 +++++++++ god/Monitoring/nagios/plugins/check_mrtg | Bin 0 -> 36264 bytes god/Monitoring/nagios/plugins/check_mrtgtraf | Bin 0 -> 34440 bytes god/Monitoring/nagios/plugins/check_mysql | Bin 0 -> 45936 bytes god/Monitoring/nagios/plugins/check_mysql_query | Bin 0 -> 44688 bytes god/Monitoring/nagios/plugins/check_nagios | Bin 0 -> 36616 bytes god/Monitoring/nagios/plugins/check_nntp | 1 + god/Monitoring/nagios/plugins/check_nntps | 1 + god/Monitoring/nagios/plugins/check_nt | Bin 0 -> 48720 bytes god/Monitoring/nagios/plugins/check_ntp | Bin 0 -> 46288 bytes god/Monitoring/nagios/plugins/check_ntp_peer | Bin 0 -> 44880 bytes god/Monitoring/nagios/plugins/check_ntp_time | Bin 0 -> 42224 bytes god/Monitoring/nagios/plugins/check_nwstat | Bin 0 -> 60912 bytes god/Monitoring/nagios/plugins/check_oracle | 287 ++++++++++ god/Monitoring/nagios/plugins/check_overcr | Bin 0 -> 40400 bytes god/Monitoring/nagios/plugins/check_pgsql | Bin 0 -> 40656 bytes god/Monitoring/nagios/plugins/check_ping | Bin 0 -> 48848 bytes god/Monitoring/nagios/plugins/check_pop | 1 + god/Monitoring/nagios/plugins/check_procs | Bin 0 -> 114640 bytes god/Monitoring/nagios/plugins/check_radius | Bin 0 -> 40624 bytes god/Monitoring/nagios/plugins/check_real | Bin 0 -> 40464 bytes god/Monitoring/nagios/plugins/check_rpc | 375 +++++++++++++ god/Monitoring/nagios/plugins/check_rta_multi | 1 + god/Monitoring/nagios/plugins/check_sensors | 65 +++ god/Monitoring/nagios/plugins/check_shinken.py | 157 ++++++ god/Monitoring/nagios/plugins/check_simap | 1 + god/Monitoring/nagios/plugins/check_sip | 252 +++++++++ god/Monitoring/nagios/plugins/check_smtp | Bin 0 -> 127216 bytes god/Monitoring/nagios/plugins/check_snmp | Bin 0 -> 152008 bytes god/Monitoring/nagios/plugins/check_speed | 34 ++ god/Monitoring/nagios/plugins/check_spop | 1 + god/Monitoring/nagios/plugins/check_ssh | Bin 0 -> 36688 bytes god/Monitoring/nagios/plugins/check_ssmtp | 1 + god/Monitoring/nagios/plugins/check_swap | Bin 0 -> 37832 bytes god/Monitoring/nagios/plugins/check_tcp | Bin 0 -> 49328 bytes god/Monitoring/nagios/plugins/check_temper | 31 ++ god/Monitoring/nagios/plugins/check_time | Bin 0 -> 38128 bytes god/Monitoring/nagios/plugins/check_udp | 1 + god/Monitoring/nagios/plugins/check_ups | Bin 0 -> 44560 bytes god/Monitoring/nagios/plugins/check_users | Bin 0 -> 36168 bytes god/Monitoring/nagios/plugins/check_wave | 122 +++++ god/Monitoring/nagios/plugins/getwmic.sh | 7 + .../nagios/plugins/link_vmware_host_vm.py | 184 +++++++ god/Monitoring/nagios/plugins/negate | Bin 0 -> 38152 bytes .../nagios/plugins/nmap_discovery_runner.py | 419 ++++++++++++++ god/Monitoring/nagios/plugins/notify.sh | 6 + god/Monitoring/nagios/plugins/notify_irc | 87 +++ god/Monitoring/nagios/plugins/nsca_client.py | 184 +++++++ god/Monitoring/nagios/plugins/sendmailhost.pl | 96 ++++ god/Monitoring/nagios/plugins/sendmailservices.pl | 105 ++++ god/Monitoring/nagios/plugins/urlize | Bin 0 -> 36104 bytes god/Monitoring/nagios/plugins/utils.pm | 67 +++ god/Monitoring/nagios/plugins/utils.sh | 23 + .../nagios/plugins/vmware_discovery_runner.py | 225 ++++++++ god/Monitoring/nagios/shinken/brokerd-windows.ini | 26 + god/Monitoring/nagios/shinken/brokerd.ini | 37 ++ god/Monitoring/nagios/shinken/certs/ca.pem | 64 +++ god/Monitoring/nagios/shinken/certs/client.pem | 86 +++ god/Monitoring/nagios/shinken/certs/server.pem | 86 +++ god/Monitoring/nagios/shinken/commands.cfg | 285 ++++++++++ god/Monitoring/nagios/shinken/contactgroups.cfg | 8 + god/Monitoring/nagios/shinken/contacts.cfg | 10 + god/Monitoring/nagios/shinken/dependencies.cfg | 25 + god/Monitoring/nagios/shinken/discovery.cfg | 25 + god/Monitoring/nagios/shinken/discovery_rules.cfg | 203 +++++++ god/Monitoring/nagios/shinken/discovery_runs.cfg | 10 + god/Monitoring/nagios/shinken/escalations.cfg | 18 + god/Monitoring/nagios/shinken/hostgroups.cfg | 17 + god/Monitoring/nagios/shinken/hosts/localhost.cfg | 7 + god/Monitoring/nagios/shinken/nagios-windows.cfg | 136 +++++ god/Monitoring/nagios/shinken/nagios.cfg | 157 ++++++ .../nagios/shinken/objects/groups/root_contact.cfg | 16 + .../objects/internet/euer.krebsco.de/Http.cfg | 6 + .../objects/internet/euer.krebsco.de/Ssh.cfg | 6 + .../internet/euer.krebsco.de/euer.krebsco.de.cfg | 4 + .../shinken/objects/internet/google.de/Http.cfg | 6 + .../internet/google.de/Https-Certificate.cfg | 6 + .../shinken/objects/internet/google.de/Https.cfg | 6 + .../objects/internet/google.de/google.de.cfg | 4 + .../84-23-80-172.blue.kundencontroller.de.cfg | 4 + .../objects/internet/oxberg.krebsco.de/Http.cfg | 6 + .../objects/internet/oxberg.krebsco.de/SMTP.cfg | 6 + .../objects/internet/oxberg.krebsco.de/Ssh.cfg | 6 + .../shinken/objects/internet/shackspace.de/DNS.cfg | 6 + .../objects/internet/shackspace.de/Http.cfg | 6 + .../internet/shackspace.de/Https-Certificate.cfg | 6 + .../objects/internet/shackspace.de/Https.cfg | 6 + .../objects/internet/shackspace.de/SMTP.cfg | 6 + .../shinken/objects/internet/shackspace.de/Ssh.cfg | 6 + .../internet/shackspace.de/shackspace.de.cfg | 4 + .../shinken/objects/retiolum/supernode/Http.cfg | 6 + .../shinken/objects/retiolum/supernode/SMTP.cfg | 6 + .../shinken/objects/retiolum/supernode/Ssh.cfg | 6 + .../objects/retiolum/supernode/supernode.cfg | 5 + .../objects/shackspace/10.42.0.2/10.42.0.2.cfg | 4 + .../shinken/objects/shackspace/10.42.0.2/Http.cfg | 6 + .../objects/shackspace/10.42.0.20/10.42.0.20.cfg | 4 + .../shinken/objects/shackspace/10.42.0.20/Http.cfg | 6 + .../objects/shackspace/10.42.0.3/10.42.0.3.cfg | 4 + .../shinken/objects/shackspace/10.42.0.3/Ssh.cfg | 6 + .../objects/shackspace/10.42.0.4/10.42.0.4.cfg | 4 + .../objects/shackspace/10.42.0.5/10.42.0.5.cfg | 4 + .../shinken/objects/shackspace/10.42.0.5/Http.cfg | 6 + .../objects/shackspace/10.42.0.7/10.42.0.7.cfg | 4 + .../shinken/objects/shackspace/10.42.0.7/Http.cfg | 6 + .../objects/shackspace/10.42.0.8/10.42.0.8.cfg | 4 + .../shinken/objects/shackspace/10.42.0.8/Http.cfg | 6 + .../objects/shackspace/10.42.0.9/10.42.0.9.cfg | 4 + .../shinken/objects/shackspace/10.42.0.9/Http.cfg | 6 + .../objects/shackspace/aptproxy.shack/Ssh.cfg | 6 + .../shackspace/aptproxy.shack/aptproxy.shack.cfg | 4 + .../shinken/objects/shackspace/dhcp.shack/Ssh.cfg | 6 + .../objects/shackspace/dhcp.shack/dhcp.shack.cfg | 4 + .../shinken/objects/shackspace/dns.shack/DNS.cfg | 6 + .../shinken/objects/shackspace/dns.shack/Ssh.cfg | 6 + .../objects/shackspace/dns.shack/dns.shack.cfg | 4 + .../objects/shackspace/gameds.shack/Ssh.cfg | 6 + .../shackspace/gameds.shack/gameds.shack.cfg | 4 + .../objects/shackspace/genericore.shack/Ssh.cfg | 6 + .../genericore.shack/genericore.shack.cfg | 4 + .../objects/shackspace/homepage.shack/Http.cfg | 6 + .../objects/shackspace/homepage.shack/Ssh.cfg | 6 + .../shackspace/homepage.shack/homepage.shack.cfg | 4 + .../objects/shackspace/monitoring.shack/Http.cfg | 6 + .../objects/shackspace/monitoring.shack/Ssh.cfg | 6 + .../monitoring.shack/monitoring.shack.cfg | 4 + .../shinken/objects/shackspace/node1.shack/Ssh.cfg | 6 + .../objects/shackspace/node1.shack/node1.shack.cfg | 4 + .../shinken/objects/shackspace/node2.shack/Ssh.cfg | 6 + .../objects/shackspace/node2.shack/node2.shack.cfg | 4 + .../shackspace/plattenschwein.shack/Http.cfg | 6 + .../shackspace/plattenschwein.shack/Ssh.cfg | 6 + .../plattenschwein.shack/plattenschwein.shack.cfg | 4 + .../shackspace/powerraw.shack/powerraw.shack.cfg | 4 + .../objects/shackspace/printer.shack/Http.cfg | 6 + .../objects/shackspace/printer.shack/Ssh.cfg | 6 + .../shackspace/printer.shack/printer.shack.cfg | 4 + .../shinken/objects/shackspace/pxe.shack/Ssh.cfg | 6 + .../objects/shackspace/pxe.shack/pxe.shack.cfg | 4 + .../objects/shackspace/rzdoku.shack/Http.cfg | 6 + .../objects/shackspace/rzdoku.shack/Ssh.cfg | 6 + .../shackspace/rzdoku.shack/rzdoku.shack.cfg | 4 + .../shinken/objects/shackspace/shack.shack/Ssh.cfg | 6 + .../objects/shackspace/shack.shack/shack.shack.cfg | 4 + .../objects/shackspace/shackgateway.shack/DNS.cfg | 6 + .../objects/shackspace/shackgateway.shack/Http.cfg | 6 + .../shackgateway.shack/Https-Certificate.cfg | 6 + .../shackspace/shackgateway.shack/Https.cfg | 6 + .../objects/shackspace/shackgateway.shack/Ssh.cfg | 6 + .../shackgateway.shack/shackgateway.shack.cfg | 4 + .../objects/shackspace/standby.shack/Http.cfg | 6 + .../objects/shackspace/standby.shack/Ssh.cfg | 6 + .../shackspace/standby.shack/standby.shack.cfg | 4 + .../objects/shackspace/stats.shack/Http.cfg | 6 + .../shinken/objects/shackspace/stats.shack/Ssh.cfg | 6 + .../objects/shackspace/stats.shack/stats.shack.cfg | 4 + .../objects/shackspace/tuerstatus.shack/Ssh.cfg | 6 + .../tuerstatus.shack/tuerstatus.shack.cfg | 4 + .../shinken/objects/shackspace/upm.shack/Ssh.cfg | 6 + .../objects/shackspace/upm.shack/upm.shack.cfg | 4 + .../objects/shackspace/vollepulle.shack/Http.cfg | 6 + .../vollepulle.shack/Https-Certificate.cfg | 6 + .../objects/shackspace/vollepulle.shack/Https.cfg | 6 + .../objects/shackspace/vollepulle.shack/Ssh.cfg | 6 + .../vollepulle.shack/vollepulle.shack.cfg | 4 + god/Monitoring/nagios/shinken/pollerd-windows.ini | 28 + god/Monitoring/nagios/shinken/pollerd.ini | 38 ++ .../nagios/shinken/reactionnerd-windows.ini | 28 + god/Monitoring/nagios/shinken/reactionnerd.ini | 28 + .../nagios/shinken/receiverd-windows.ini | 29 + god/Monitoring/nagios/shinken/receiverd.ini | 28 + god/Monitoring/nagios/shinken/resource.cfg | 34 ++ .../nagios/shinken/schedulerd-windows.ini | 27 + god/Monitoring/nagios/shinken/schedulerd.ini | 27 + god/Monitoring/nagios/shinken/servicegroups.cfg | 14 + .../nagios/shinken/services/linux_local.cfg | 44 ++ .../shinken/shinken-specific-high-availability.cfg | 275 ++++++++++ .../shinken-specific-load-balanced-only.cfg | 219 ++++++++ god/Monitoring/nagios/shinken/shinken-specific.cfg | 579 ++++++++++++++++++++ god/Monitoring/nagios/shinken/templates.cfg | 201 +++++++ god/Monitoring/nagios/shinken/timeperiods.cfg | 71 +++ 251 files changed, 10525 insertions(+) create mode 100644 god/Monitoring/collectd/collectd.conf create mode 100644 god/Monitoring/collectd/supervisor.d/collectd.conf create mode 100644 god/Monitoring/nagios/Makefile create mode 100644 god/Monitoring/nagios/TODO create mode 100644 god/Monitoring/nagios/conf/extinfo.cfg create mode 100644 god/Monitoring/nagios/conf/hostgroups_generic.cfg create mode 100644 god/Monitoring/nagios/conf/krebs_hosts.cfg create mode 100644 god/Monitoring/nagios/conf/krebsnet.cfg create mode 100644 god/Monitoring/nagios/conf/localhost.cfg create mode 100644 god/Monitoring/nagios/conf/other_hosts.cfg create mode 100644 god/Monitoring/nagios/conf/services.cfg create mode 100644 god/Monitoring/nagios/conf/shack_contacts.cfg create mode 100644 god/Monitoring/nagios/conf/shack_guests.cfg create mode 100644 god/Monitoring/nagios/conf/shack_infrastructure.cfg create mode 100644 god/Monitoring/nagios/conf/shacknet.cfg create mode 100644 god/Monitoring/nagios/conf/templates.cfg create mode 100644 god/Monitoring/nagios/conf/timeperiods.cfg create mode 100644 god/Monitoring/nagios/conf/tinc_hosts.cfg create mode 100644 god/Monitoring/nagios/conf/tincnet.cfg create mode 100644 god/Monitoring/nagios/htdocs/images/logos/krebs/bitcoin_miner.gd2 create mode 100644 god/Monitoring/nagios/htdocs/images/logos/krebs/bitcoin_miner.png create mode 100644 god/Monitoring/nagios/htdocs/images/logos/krebs/favicon.ico create mode 100644 god/Monitoring/nagios/htdocs/images/logos/krebs/krebs.gd2 create mode 100644 god/Monitoring/nagios/htdocs/images/logos/krebs/krebs.png create mode 100644 god/Monitoring/nagios/htdocs/images/logos/krebs/shack.gd2 create mode 100644 god/Monitoring/nagios/htdocs/images/logos/krebs/shack.png create mode 100644 god/Monitoring/nagios/htdocs/images/logos/krebs/tinc.gd2 create mode 100644 god/Monitoring/nagios/htdocs/images/logos/krebs/tinc.png create mode 100644 god/Monitoring/nagios/htdocs/images/logos/krebs/wireless_access_point.gd2 create mode 100644 god/Monitoring/nagios/htdocs/images/logos/krebs/wireless_access_point.png create mode 100644 god/Monitoring/nagios/htdocs/images/logos/krebs/wireless_access_point_64.png create mode 100644 god/Monitoring/nagios/htpasswd.users create mode 100755 god/Monitoring/nagios/plugins/check.bat create mode 100755 god/Monitoring/nagios/plugins/check.sh create mode 100755 god/Monitoring/nagios/plugins/check_apt create mode 100755 god/Monitoring/nagios/plugins/check_bgpstate create mode 100755 god/Monitoring/nagios/plugins/check_breeze create mode 100755 god/Monitoring/nagios/plugins/check_btcguild_miner create mode 100755 god/Monitoring/nagios/plugins/check_by_ssh create mode 120000 god/Monitoring/nagios/plugins/check_clamd create mode 100755 god/Monitoring/nagios/plugins/check_cluster create mode 100755 god/Monitoring/nagios/plugins/check_cpu create mode 100755 god/Monitoring/nagios/plugins/check_dhcp create mode 100755 god/Monitoring/nagios/plugins/check_dig create mode 100755 god/Monitoring/nagios/plugins/check_disk create mode 100755 god/Monitoring/nagios/plugins/check_disk_smb create mode 100755 god/Monitoring/nagios/plugins/check_dns create mode 100755 god/Monitoring/nagios/plugins/check_dummy create mode 100755 god/Monitoring/nagios/plugins/check_dummy.sh create mode 100755 god/Monitoring/nagios/plugins/check_file_age create mode 100755 god/Monitoring/nagios/plugins/check_flexlm create mode 100755 god/Monitoring/nagios/plugins/check_fping create mode 120000 god/Monitoring/nagios/plugins/check_ftp create mode 100755 god/Monitoring/nagios/plugins/check_game create mode 120000 god/Monitoring/nagios/plugins/check_host create mode 100755 god/Monitoring/nagios/plugins/check_hpjd create mode 100755 god/Monitoring/nagios/plugins/check_http create mode 100755 god/Monitoring/nagios/plugins/check_icmp create mode 100755 god/Monitoring/nagios/plugins/check_ide_smart create mode 100755 god/Monitoring/nagios/plugins/check_ifoperstatus create mode 100755 god/Monitoring/nagios/plugins/check_ifstatus create mode 120000 god/Monitoring/nagios/plugins/check_imap create mode 100755 god/Monitoring/nagios/plugins/check_ircd create mode 120000 god/Monitoring/nagios/plugins/check_jabber create mode 100755 god/Monitoring/nagios/plugins/check_ldap create mode 120000 god/Monitoring/nagios/plugins/check_ldaps create mode 100755 god/Monitoring/nagios/plugins/check_linux_raid create mode 100755 god/Monitoring/nagios/plugins/check_load create mode 100755 god/Monitoring/nagios/plugins/check_log create mode 100755 god/Monitoring/nagios/plugins/check_mailq create mode 100755 god/Monitoring/nagios/plugins/check_mem.pl create mode 100755 god/Monitoring/nagios/plugins/check_mrtg create mode 100755 god/Monitoring/nagios/plugins/check_mrtgtraf create mode 100755 god/Monitoring/nagios/plugins/check_mysql create mode 100755 god/Monitoring/nagios/plugins/check_mysql_query create mode 100755 god/Monitoring/nagios/plugins/check_nagios create mode 120000 god/Monitoring/nagios/plugins/check_nntp create mode 120000 god/Monitoring/nagios/plugins/check_nntps create mode 100755 god/Monitoring/nagios/plugins/check_nt create mode 100755 god/Monitoring/nagios/plugins/check_ntp create mode 100755 god/Monitoring/nagios/plugins/check_ntp_peer create mode 100755 god/Monitoring/nagios/plugins/check_ntp_time create mode 100755 god/Monitoring/nagios/plugins/check_nwstat create mode 100755 god/Monitoring/nagios/plugins/check_oracle create mode 100755 god/Monitoring/nagios/plugins/check_overcr create mode 100755 god/Monitoring/nagios/plugins/check_pgsql create mode 100755 god/Monitoring/nagios/plugins/check_ping create mode 120000 god/Monitoring/nagios/plugins/check_pop create mode 100755 god/Monitoring/nagios/plugins/check_procs create mode 100755 god/Monitoring/nagios/plugins/check_radius create mode 100755 god/Monitoring/nagios/plugins/check_real create mode 100755 god/Monitoring/nagios/plugins/check_rpc create mode 120000 god/Monitoring/nagios/plugins/check_rta_multi create mode 100755 god/Monitoring/nagios/plugins/check_sensors create mode 100755 god/Monitoring/nagios/plugins/check_shinken.py create mode 120000 god/Monitoring/nagios/plugins/check_simap create mode 100755 god/Monitoring/nagios/plugins/check_sip create mode 100755 god/Monitoring/nagios/plugins/check_smtp create mode 100755 god/Monitoring/nagios/plugins/check_snmp create mode 100755 god/Monitoring/nagios/plugins/check_speed create mode 120000 god/Monitoring/nagios/plugins/check_spop create mode 100755 god/Monitoring/nagios/plugins/check_ssh create mode 120000 god/Monitoring/nagios/plugins/check_ssmtp create mode 100755 god/Monitoring/nagios/plugins/check_swap create mode 100755 god/Monitoring/nagios/plugins/check_tcp create mode 100755 god/Monitoring/nagios/plugins/check_temper create mode 100755 god/Monitoring/nagios/plugins/check_time create mode 120000 god/Monitoring/nagios/plugins/check_udp create mode 100755 god/Monitoring/nagios/plugins/check_ups create mode 100755 god/Monitoring/nagios/plugins/check_users create mode 100755 god/Monitoring/nagios/plugins/check_wave create mode 100755 god/Monitoring/nagios/plugins/getwmic.sh create mode 100755 god/Monitoring/nagios/plugins/link_vmware_host_vm.py create mode 100755 god/Monitoring/nagios/plugins/negate create mode 100755 god/Monitoring/nagios/plugins/nmap_discovery_runner.py create mode 100755 god/Monitoring/nagios/plugins/notify.sh create mode 100755 god/Monitoring/nagios/plugins/notify_irc create mode 100755 god/Monitoring/nagios/plugins/nsca_client.py create mode 100755 god/Monitoring/nagios/plugins/sendmailhost.pl create mode 100755 god/Monitoring/nagios/plugins/sendmailservices.pl create mode 100755 god/Monitoring/nagios/plugins/urlize create mode 100644 god/Monitoring/nagios/plugins/utils.pm create mode 100755 god/Monitoring/nagios/plugins/utils.sh create mode 100755 god/Monitoring/nagios/plugins/vmware_discovery_runner.py create mode 100644 god/Monitoring/nagios/shinken/brokerd-windows.ini create mode 100644 god/Monitoring/nagios/shinken/brokerd.ini create mode 100755 god/Monitoring/nagios/shinken/certs/ca.pem create mode 100755 god/Monitoring/nagios/shinken/certs/client.pem create mode 100644 god/Monitoring/nagios/shinken/certs/server.pem create mode 100644 god/Monitoring/nagios/shinken/commands.cfg create mode 100644 god/Monitoring/nagios/shinken/contactgroups.cfg create mode 100644 god/Monitoring/nagios/shinken/contacts.cfg create mode 100644 god/Monitoring/nagios/shinken/dependencies.cfg create mode 100644 god/Monitoring/nagios/shinken/discovery.cfg create mode 100644 god/Monitoring/nagios/shinken/discovery_rules.cfg create mode 100644 god/Monitoring/nagios/shinken/discovery_runs.cfg create mode 100644 god/Monitoring/nagios/shinken/escalations.cfg create mode 100644 god/Monitoring/nagios/shinken/hostgroups.cfg create mode 100644 god/Monitoring/nagios/shinken/hosts/localhost.cfg create mode 100644 god/Monitoring/nagios/shinken/nagios-windows.cfg create mode 100644 god/Monitoring/nagios/shinken/nagios.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/groups/root_contact.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/internet/euer.krebsco.de/Http.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/internet/euer.krebsco.de/Ssh.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/internet/euer.krebsco.de/euer.krebsco.de.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/internet/google.de/Http.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/internet/google.de/Https-Certificate.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/internet/google.de/Https.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/internet/google.de/google.de.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/internet/oxberg.krebsco.de/84-23-80-172.blue.kundencontroller.de.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/internet/oxberg.krebsco.de/Http.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/internet/oxberg.krebsco.de/SMTP.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/internet/oxberg.krebsco.de/Ssh.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/internet/shackspace.de/DNS.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/internet/shackspace.de/Http.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/internet/shackspace.de/Https-Certificate.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/internet/shackspace.de/Https.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/internet/shackspace.de/SMTP.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/internet/shackspace.de/Ssh.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/internet/shackspace.de/shackspace.de.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/retiolum/supernode/Http.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/retiolum/supernode/SMTP.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/retiolum/supernode/Ssh.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/retiolum/supernode/supernode.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/10.42.0.2/10.42.0.2.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/10.42.0.2/Http.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/10.42.0.20/10.42.0.20.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/10.42.0.20/Http.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/10.42.0.3/10.42.0.3.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/10.42.0.3/Ssh.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/10.42.0.4/10.42.0.4.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/10.42.0.5/10.42.0.5.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/10.42.0.5/Http.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/10.42.0.7/10.42.0.7.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/10.42.0.7/Http.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/10.42.0.8/10.42.0.8.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/10.42.0.8/Http.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/10.42.0.9/10.42.0.9.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/10.42.0.9/Http.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/aptproxy.shack/Ssh.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/aptproxy.shack/aptproxy.shack.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/dhcp.shack/Ssh.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/dhcp.shack/dhcp.shack.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/dns.shack/DNS.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/dns.shack/Ssh.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/dns.shack/dns.shack.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/gameds.shack/Ssh.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/gameds.shack/gameds.shack.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/genericore.shack/Ssh.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/genericore.shack/genericore.shack.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/homepage.shack/Http.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/homepage.shack/Ssh.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/homepage.shack/homepage.shack.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/monitoring.shack/Http.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/monitoring.shack/Ssh.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/monitoring.shack/monitoring.shack.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/node1.shack/Ssh.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/node1.shack/node1.shack.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/node2.shack/Ssh.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/node2.shack/node2.shack.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/plattenschwein.shack/Http.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/plattenschwein.shack/Ssh.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/plattenschwein.shack/plattenschwein.shack.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/powerraw.shack/powerraw.shack.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/printer.shack/Http.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/printer.shack/Ssh.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/printer.shack/printer.shack.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/pxe.shack/Ssh.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/pxe.shack/pxe.shack.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/rzdoku.shack/Http.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/rzdoku.shack/Ssh.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/rzdoku.shack/rzdoku.shack.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/shack.shack/Ssh.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/shack.shack/shack.shack.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/shackgateway.shack/DNS.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/shackgateway.shack/Http.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/shackgateway.shack/Https-Certificate.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/shackgateway.shack/Https.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/shackgateway.shack/Ssh.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/shackgateway.shack/shackgateway.shack.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/standby.shack/Http.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/standby.shack/Ssh.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/standby.shack/standby.shack.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/stats.shack/Http.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/stats.shack/Ssh.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/stats.shack/stats.shack.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/tuerstatus.shack/Ssh.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/tuerstatus.shack/tuerstatus.shack.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/upm.shack/Ssh.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/upm.shack/upm.shack.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/vollepulle.shack/Http.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/vollepulle.shack/Https-Certificate.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/vollepulle.shack/Https.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/vollepulle.shack/Ssh.cfg create mode 100644 god/Monitoring/nagios/shinken/objects/shackspace/vollepulle.shack/vollepulle.shack.cfg create mode 100644 god/Monitoring/nagios/shinken/pollerd-windows.ini create mode 100644 god/Monitoring/nagios/shinken/pollerd.ini create mode 100644 god/Monitoring/nagios/shinken/reactionnerd-windows.ini create mode 100644 god/Monitoring/nagios/shinken/reactionnerd.ini create mode 100644 god/Monitoring/nagios/shinken/receiverd-windows.ini create mode 100644 god/Monitoring/nagios/shinken/receiverd.ini create mode 100644 god/Monitoring/nagios/shinken/resource.cfg create mode 100644 god/Monitoring/nagios/shinken/schedulerd-windows.ini create mode 100644 god/Monitoring/nagios/shinken/schedulerd.ini create mode 100644 god/Monitoring/nagios/shinken/servicegroups.cfg create mode 100644 god/Monitoring/nagios/shinken/services/linux_local.cfg create mode 100644 god/Monitoring/nagios/shinken/shinken-specific-high-availability.cfg create mode 100644 god/Monitoring/nagios/shinken/shinken-specific-load-balanced-only.cfg create mode 100644 god/Monitoring/nagios/shinken/shinken-specific.cfg create mode 100644 god/Monitoring/nagios/shinken/templates.cfg create mode 100644 god/Monitoring/nagios/shinken/timeperiods.cfg (limited to 'god/Monitoring') diff --git a/god/Monitoring/collectd/collectd.conf b/god/Monitoring/collectd/collectd.conf new file mode 100644 index 00000000..8779f418 --- /dev/null +++ b/god/Monitoring/collectd/collectd.conf @@ -0,0 +1,37 @@ +Hostname "HOST1" +Interval 10 +LoadPlugin cpu +LoadPlugin df +LoadPlugin disk +LoadPlugin interface +LoadPlugin load +LoadPlugin memory +LoadPlugin swap +LoadPlugin users + + + Interface "eth0" + Interface "retiolum" + + + + Device "/dev/xvda1" + IgnoreSelected false + + + Disk "/xvda/" + IgnoreSelected false + + +LoadPlugin "write_graphite" + + + Host "no_omo.retiolum" + Port "2003" + Prefix "retiolum." + #Postfix "" + EscapeCharacter "_" + StoreRates false + AlwaysAppendDS false + + diff --git a/god/Monitoring/collectd/supervisor.d/collectd.conf b/god/Monitoring/collectd/supervisor.d/collectd.conf new file mode 100644 index 00000000..a6334d70 --- /dev/null +++ b/god/Monitoring/collectd/supervisor.d/collectd.conf @@ -0,0 +1,3 @@ +[program:collectd] +command=collectd -C /etc/collectd.conf -f +autorestart=true diff --git a/god/Monitoring/nagios/Makefile b/god/Monitoring/nagios/Makefile new file mode 100644 index 00000000..4730f30d --- /dev/null +++ b/god/Monitoring/nagios/Makefile @@ -0,0 +1,32 @@ +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 diff --git a/god/Monitoring/nagios/TODO b/god/Monitoring/nagios/TODO new file mode 100644 index 00000000..e69de29b diff --git a/god/Monitoring/nagios/conf/extinfo.cfg b/god/Monitoring/nagios/conf/extinfo.cfg new file mode 100644 index 00000000..e4300b72 --- /dev/null +++ b/god/Monitoring/nagios/conf/extinfo.cfg @@ -0,0 +1,9 @@ +define hostextinfo{ + hostgroup_name debian-servers + notes Debian GNU/Linux servers +# notes_url http://webserver.localhost.localdomain/hostinfo.pl?host=netware1 + icon_image base/debian.png + icon_image_alt Debian GNU/Linux + vrml_image debian.png + statusmap_image base/debian.gd2 + } diff --git a/god/Monitoring/nagios/conf/hostgroups_generic.cfg b/god/Monitoring/nagios/conf/hostgroups_generic.cfg new file mode 100644 index 00000000..4e3625c5 --- /dev/null +++ b/god/Monitoring/nagios/conf/hostgroups_generic.cfg @@ -0,0 +1,28 @@ +# 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 + alias Debian GNU/Linux Servers + members localhost + } + +# A list of your web servers +define hostgroup { + hostgroup_name http-servers + alias HTTP servers + members localhost + } + +# A list of your ssh-accessible servers +define hostgroup { + hostgroup_name ssh-servers + alias SSH servers + members localhost + } + diff --git a/god/Monitoring/nagios/conf/krebs_hosts.cfg b/god/Monitoring/nagios/conf/krebs_hosts.cfg new file mode 100644 index 00000000..a929fa19 --- /dev/null +++ b/god/Monitoring/nagios/conf/krebs_hosts.cfg @@ -0,0 +1,78 @@ + +# +# Ur-Krebs +# +define host{ + use generic-host + host_name krebs.shack + alias krebs + _tinc_address 10.7.7.156 + address 10.42.23.5 + parents shack-coreswitch + hostgroups krebs-machines,tinc-nodes,ssh-servers + } +# +# UTART +# +define host{ + use generic-host + host_name utart + alias UTART + _tinc_address 10.7.7.66 + address 10.42.23.23 + parents shack-coreswitch + hostgroups krebs-machines,tinc-nodes,ssh-servers + } +# +# ytart +# will use tinc ip as long as no static ip is supplied +# +define host{ + use generic-host + host_name ytart + alias ytart + _tinc_address 10.7.7.201 + parents shack-wlan-ap5 + address 10.7.7.201 + hostgroups krebs-machines,tinc-nodes,ssh-servers + } +# +# uPM +# +define host{ + use generic-host + host_name upm + alias uPM Virtual Machine + _tinc_address 10.7.7.99 + address upm.shack + parents shack-node1 + hostgroups krebs-machines,ssh-servers,shack-rz + #,tinc-nodes + } + +# TODO add upm and genericore as tinc-nodes +# TODO check MONGODB on uPM + + + +#TODO verkrebse genericore/get password +define host{ + use generic-host + host_name genericore + alias genericore Virtual Machine + #_tinc_address 10.7.7.XX + address genericore.shack + parents shack-node1 + hostgroups ssh-servers,shack-rz + #,tinc-nodes,krebs-machines + } + +define host{ + use generic-host + host_name shepherd + alias Shepherd Krebs + _tinc_address 10.7.7.29 + address 10.42.23.42 + parents shack-coreswitch + hostgroups krebs-machines,tinc-nodes,ssh-servers + } diff --git a/god/Monitoring/nagios/conf/krebsnet.cfg b/god/Monitoring/nagios/conf/krebsnet.cfg new file mode 100644 index 00000000..ae5b898e --- /dev/null +++ b/god/Monitoring/nagios/conf/krebsnet.cfg @@ -0,0 +1,20 @@ +## extended infos for krebsnet +define hostgroup { + hostgroup_name krebs-machines + alias Krebs Machines + } +define hostextinfo{ + hostgroup_name krebs-machines + notes Deployed Krebse +# notes_url http://webserver.localhost.localdomain/hostinfo.pl?host=netware1 + icon_image krebs/krebs.png + icon_image_alt Krebs + vrml_image krebs.png + statusmap_image krebs/krebs.gd2 + } +#define host{ +# use generic-host +# register 0 +# name tinc-only-host +# check_command check_internal_tinc_up!100.0,20%!500.0,60% +# } diff --git a/god/Monitoring/nagios/conf/localhost.cfg b/god/Monitoring/nagios/conf/localhost.cfg new file mode 100644 index 00000000..3b098195 --- /dev/null +++ b/god/Monitoring/nagios/conf/localhost.cfg @@ -0,0 +1,60 @@ +# A simple configuration file for monitoring the local host +# This can serve as an example for configuring other servers; +# Custom services specific to this host are added here, but services +# defined in nagios2-common_services.cfg may also apply. +# + +define host{ + use generic-host ; Name of host template to use + host_name localhost + alias localhost + address 127.0.0.1 + hostgroups krebs-machines + } + +# Define a service to check the disk space of the root partition +# on the local machine. Warning if < 20% free, critical if +# < 10% free space on partition. + +define service{ + use generic-service ; Name of service template to use + host_name localhost + service_description Disk Space + check_command check_all_disks!20%!10% + } + + + +# Define a service to check the number of currently logged in +# users on the local machine. Warning if > 20 users, critical +# if > 50 users. + +define service{ + use generic-service ; Name of service template to use + host_name localhost + service_description Current Users + check_command check_users!20!50 + } + + +# Define a service to check the number of currently running procs +# on the local machine. Warning if > 250 processes, critical if +# > 400 processes. + +define service{ + use generic-service ; Name of service template to use + host_name localhost + service_description Total Processes + check_command check_procs!250!400 + } + + + +# Define a service to check the load on the local machine. + +define service{ + use generic-service ; Name of service template to use + host_name localhost + service_description Current Load + check_command check_load!5.0!4.0!3.0!10.0!6.0!4.0 + } diff --git a/god/Monitoring/nagios/conf/other_hosts.cfg b/god/Monitoring/nagios/conf/other_hosts.cfg new file mode 100644 index 00000000..bbdc676a --- /dev/null +++ b/god/Monitoring/nagios/conf/other_hosts.cfg @@ -0,0 +1,22 @@ +define host{ + use generic-host + host_name google.de + alias Google Website + address google.de + parents shack-gw + hostgroups http-servers + } + +define host{ + use generic-host + host_name google-dns + parents shack-gw + alias Google DNS Service (always reachable) + address 8.8.8.8 + } +define service { + host_name google-dns + service_description DNS Service + use generic-service + check_command check_dns + } diff --git a/god/Monitoring/nagios/conf/services.cfg b/god/Monitoring/nagios/conf/services.cfg new file mode 100644 index 00000000..e3a61eb0 --- /dev/null +++ b/god/Monitoring/nagios/conf/services.cfg @@ -0,0 +1,26 @@ +# check that web services are running +define service { + hostgroup_name http-servers + service_description HTTP + check_command check_http + use generic-service + notification_interval 0 ; set > 0 if you want to be renotified +} + +# check that ssh services are running +define service { + hostgroup_name ssh-servers + service_description SSH + check_command check_ssh + use generic-service + notification_interval 0 ; set > 0 if you want to be renotified +} + +# check that ping-only hosts are up +define service { +# hostgroup_name ping-servers + service_description PING + check_command check_ping!100.0,20%!500.0,60% + use generic-service + notification_interval 0 ; set > 0 if you want to be renotified +} diff --git a/god/Monitoring/nagios/conf/shack_contacts.cfg b/god/Monitoring/nagios/conf/shack_contacts.cfg new file mode 100644 index 00000000..832a215e --- /dev/null +++ b/god/Monitoring/nagios/conf/shack_contacts.cfg @@ -0,0 +1,22 @@ +define contact{ + contact_name makefu + alias makefu + service_notification_period 24x7 + host_notification_period 24x7 + service_notification_options w,u,c,r + host_notification_options d,u,r + service_notification_commands notify-service-by-email + host_notification_commands notify-host-by-email + email shack_nagios_notification@syntax-fehler.de + } +define contactgroup{ + contactgroup_name krebsminers + alias Krebsminers + members makefu + } + +define contactgroup{ + contactgroup_name admins + alias admins + } + diff --git a/god/Monitoring/nagios/conf/shack_guests.cfg b/god/Monitoring/nagios/conf/shack_guests.cfg new file mode 100644 index 00000000..67abdfce --- /dev/null +++ b/god/Monitoring/nagios/conf/shack_guests.cfg @@ -0,0 +1,105 @@ +# +# Bitcoin mines +# +define host{ + use generic-host + host_name gauda0 + parents shack-serverswitch + alias Gauda0 Bitcoin Mining Rig 0 + address 10.42.0.99 + hostgroups bitcoin-miner + } +define host{ + use generic-host + host_name gauda1 + parents shack-serverswitch2 + alias Gauda1 Bitcoin Mining Rig 1 + address 10.42.0.98 + hostgroups bitcoin-miner + } +define host{ + use generic-host + host_name gauda2 + parents shack-serverswitch2 + alias Gauda2 Bitcoin Mining Rig 2 + address 10.42.0.97 + hostgroups bitcoin-miner + } + +#Chinaman +define host{ + use generic-host + host_name chinaman + parents shack-gw + alias Chinaman Bitcoin Mining Rig + #address 10.42.0.96 + #_TINC_ADDRESS 10.7.7.6 + address 10.7.7.6 + _SPEED_URL http://leechi.kicks-ass.org/tmp/live/chinaman_bitcoinslc_live + _TEMPER_URL http://leechi.kicks-ass.org/tmp/live/chinaman_ati_temper + hostgroups bitcoin-miner,tinc-nodes,ssh-servers + contact_groups krebsminers + } +define command { + command_name check_speed + command_line $USER1$/check_speed $_HOSTSPEED_URL$ $ARG1$ + } +define service { + host_name chinaman + service_description Temperature Checker + use generic-service + check_command check_temper!85 85 65 45 + contact_groups krebsminers + } +define command { + command_name check_temper + command_line $USER1$/check_temper $_HOSTTEMPER_URL$ $ARG1$ + } +define service { + host_name chinaman + service_description Mining Speed checker + use generic-service + check_command check_speed!600 + contact_groups krebsminers + } +#define service { +# host_name chinaman +# service_description BTCGUILD hash rate checker +# use generic-service +# check_command check_btcguild_miner!4bf1543d2eca8648277bdc66c326eea9!txgen_chinaman!450 +# contact_groups krebsminers +# } + + +#define command { +# command_name check_btcguild_miner +# command_line $USER1$/check_btcguild_miner $ARG1$ $ARG2$ $ARG3$ +# } + +define host{ + use generic-host + host_name Sascha privater Server + parents shack-serverswitch + alias Sascha Server + address 10.42.23.100 + #hostgroups bitcoin-miner + } + +define host{ + use generic-host + host_name Telefonzelle + parents shack-coreswitch + alias Telefonzelle + address 10.42.23.101 + #hostgroups bitcoin-miner + } + +define host{ + use generic-host + host_name shack-pnp + alias Shack Bestueckungsautomat + address 10.42.100.5 + parents shack-coreswitch + #hostgroups shack-rz + } + diff --git a/god/Monitoring/nagios/conf/shack_infrastructure.cfg b/god/Monitoring/nagios/conf/shack_infrastructure.cfg new file mode 100644 index 00000000..f404f3e4 --- /dev/null +++ b/god/Monitoring/nagios/conf/shack_infrastructure.cfg @@ -0,0 +1,241 @@ +# + +# +# Shack Virtual Machine Hoster Platform +# + +# +# Virtualization and storage +# +define host{ + use generic-host + host_name shack-node0 + alias Shack Virtualization Server 0 + address 10.42.0.10 + parents shack-serverswitch + hostgroups shack-rz,ssh-servers + } +define host{ + use generic-host + host_name shack-node1 + alias Shack Virtualization Server 1 + address 10.42.0.10 + parents shack-serverswitch + hostgroups shack-rz,ssh-servers + } +define host{ + use generic-host + host_name shack-plattenschwein + parents shack-serverswitch + alias Shack Plattenschwein + address 10.42.0.12 + hostgroups shack-rz,ssh-servers + } +# +# Network Infrastructure +# + +# +## Shack gateway (no gateway-no internet) +# +define host{ + use generic-host + host_name shack-gw + parents shack-coreswitch + alias Watchguard Shack Gateway + address 10.42.0.1 + hostgroups shack-rz,ssh-servers + } +#deprecated +#define host{ +# use generic-host +# host_name shack-modem +# parents shack-gw +# alias Shack Telecom VDSL Router +# address 192.168.2.1 +# hostgroups shack-rz +# } +define host{ + use generic-host + host_name shack-externswitch + parents shack-gw + alias Shack External Switch (2.OG) + address 10.0.10.2 + hostgroups shack-rz + } +# +# Serverswitch 2 +# +define host{ + use generic-host + host_name shack-serverswitch2 + parents shack-serverswitch + alias Shack switch Rack 2 (cisco 3524) + address 10.42.0.5 + hostgroups shack-rz + } + +define service { + host_name shack-serverswitch2 + service_description Telnet + use generic-service + check_command check_telnet + } + +define service { + host_name shack-serverswitch2 + service_description Admin HTTP Terminal + use generic-service + check_command check_http + } + + +define service { + host_name shack-gw + service_description DNS Service + use generic-service + check_command check_dns + } +define host{ + use generic-host + host_name shack-coreswitch + alias Shack Cisco Router Coreswitch + address 10.42.0.3 + hostgroups shack-rz,ssh-servers + } +define host{ + use generic-host + host_name shack-serverswitch + parents shack-coreswitch + alias Shack Cisco Router Serverswitch + address 10.42.0.4 + hostgroups shack-rz + } + +define host{ + use generic-host + host_name shack-wlan-ap2 + parents shack-coreswitch + alias Shack Wlan Access Point 2 + address 10.42.0.6 + hostgroups wlan-ap + } +define host{ + use generic-host + host_name shack-wlan-ap3 + parents shack-coreswitch + alias Shack Wlan Access Point 3 + address 10.42.0.7 + hostgroups wlan-ap + } +define host{ + use generic-host + host_name shack-wlan-ap4 + parents shack-coreswitch + alias Shack Wlan Access Point 4 + address 10.42.0.8 + hostgroups wlan-ap + } +define host{ + use generic-host + host_name shack-wlan-ap5 + parents shack-coreswitch + alias Shack Wlan Access Point 5 + address 10.42.0.9 + hostgroups wlan-ap + } +# +# Voip Infrastructure +# +define host{ + use generic-host + host_name shack-voip + alias Shack Cisco VOIP Gateway + address 10.42.0.2 + parents shack-coreswitch + hostgroups shack-rz,http-servers + } + +define service{ + host_name shack-voip + service_description SIP Service + use generic-service + check_command check_sip + } + +# +# Shack DNS Server +# + +define host{ + use generic-host + host_name shack-dns + parents shack-node0 + alias Shack DNS Virtual Host + address 10.42.0.100 + hostgroups shack-rz + } +define service { + host_name shack-dns + service_description DNS Service + use generic-service + check_command check_dns_shack + } + +define host{ + use generic-host + host_name shack-pxe + parents shack-node0 + alias Shack PXEBoot Vhost + address pxeboot.shack + hostgroups shack-rz + } + +define host{ + use generic-host + host_name shack-printsrv + parents shack-node1 + alias Shack Print Server + address printer.shack + hostgroups shack-rz + } + +define host{ + use generic-host + host_name shack-aptproxy + parents shack-node0 + alias Shack Apt-proxy + address aptproxy.shack + hostgroups shack-rz + } + +define host{ + use generic-host + host_name shack-shack + parents shack-node1 + alias Shack Data Exchange + address shack.shack + hostgroups shack-rz,ssh-servers + } + +# +# shack ldap server +# +define host{ + use generic-host + host_name shack-ldap + parents shack-node0 + alias Shack LDAP Server + address ldap.shack + hostgroups shack-rz + } +define service { + host_name shack-ldap + service_description LDAP Service + use generic-service + check_command check_ldap!shammunity + } + +# +# Random stuff (not necessary located in RZ) +# diff --git a/god/Monitoring/nagios/conf/shacknet.cfg b/god/Monitoring/nagios/conf/shacknet.cfg new file mode 100644 index 00000000..802e5e3a --- /dev/null +++ b/god/Monitoring/nagios/conf/shacknet.cfg @@ -0,0 +1,47 @@ +define hostgroup { + hostgroup_name shack-rz + alias Shack RZ Infrastructure + } +define hostgroup { + hostgroup_name bitcoin-miner + alias Bitcoin miner in Shack-RZ + } +define hostextinfo{ + hostgroup_name bitcoin-miner + notes Bitcoin miner in Shack-RZ + icon_image krebs/bitcoin_miner.png + icon_image_alt bitcoin_miner + vrml_image bitcoin_miner.png + statusmap_image krebs/bitcoin_miner.gd2 + } + +define hostgroup { + hostgroup_name wlan-ap + alias Shack Wlan Access Points + } +define hostextinfo{ + hostgroup_name wlan-ap + notes Access Points for Shack + icon_image krebs/wireless_access_point.png + icon_image_alt wireless_access_point + vrml_image wireless_access_point.png + statusmap_image krebs/wireless_access_point.gd2 + } +define hostextinfo{ + hostgroup_name shack-rz + notes Shack RZ Infrastructure + icon_image krebs/shack.png + icon_image_alt shack-RZ + vrml_image shack.png + statusmap_image krebs/shack.gd2 + } + +define command { + command_name check_sip + command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p 5060 + } + +define command { + command_name check_dns_shack + command_line $USER1$/check_dns -H shack.shack -s '$HOSTADDRESS$' + } diff --git a/god/Monitoring/nagios/conf/templates.cfg b/god/Monitoring/nagios/conf/templates.cfg new file mode 100644 index 00000000..41807e1c --- /dev/null +++ b/god/Monitoring/nagios/conf/templates.cfg @@ -0,0 +1,45 @@ +# generic service template definition +define service{ + name generic-service ; The 'name' of this service template + active_checks_enabled 1 ; Active service checks are enabled + passive_checks_enabled 1 ; Passive service checks are enabled/accepted + parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) + obsess_over_service 1 ; We should obsess over this service (if necessary) + check_freshness 0 ; Default is to NOT check service 'freshness' + notifications_enabled 1 ; Service notifications are enabled + event_handler_enabled 1 ; Service event handler is enabled + flap_detection_enabled 1 ; Flap detection is enabled + failure_prediction_enabled 1 ; Failure prediction is enabled + process_perf_data 1 ; Process performance data + retain_status_information 1 ; Retain status information across program restarts + retain_nonstatus_information 1 ; Retain non-status information across program restarts + notification_interval 0 ; Only send notifications on status change by default. + is_volatile 0 + check_period 24x7 + normal_check_interval 5 + retry_check_interval 1 + max_check_attempts 4 + notification_period