nrpe_local.cfg.j2 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. ######################################
  2. # Do any local nrpe configuration here
  3. ######################################
  4. connection_timeout=600
  5. command_timeout=600
  6. allowed_hosts=127.0.0.1,{{ ansible_eth0.ipv4.address }},{{ hostvars[groups['monitoring'][0]]['ansible_ssh_host'] }}
  7. # Speedtest
  8. command[check_speedtest-cli-2]=/usr/lib/nagios/plugins/check_speedtest-cli.sh -w 2 -c 1 -W 0.2 -C 0.1 -p -s 4193
  9. command[check_speedtest-cli-10]=/usr/lib/nagios/plugins/check_speedtest-cli.sh -w 10 -c 5 -W 1 -C 0.5 -p -s 4193
  10. command[check_speedtest-cli-50]=/usr/lib/nagios/plugins/check_speedtest-cli.sh -w 50 -c 25 -W 5 -C 2.5 -p -s 4193
  11. command[check_speedtest-cli-100]=/usr/lib/nagios/plugins/check_speedtest-cli.sh -w 100 -c 50 -W 10 -C 5 -p -s 4193
  12. # Bandwith
  13. #command[check_bandwidth]=/usr/lib/nagios/plugins/check_bandwidth rx 60 eth0 bw
  14. command[check_bandwidth]=/usr/lib/nagios/plugins/check_eth -i eth0 -w 200M Bps -c 200M Bps ### TODO: check ist falschherum. Meldet bei Ueberschreiten aber leider nicht bei unterschreiten.
  15. # Debian Server
  16. command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20
  17. command[check_ram]=/usr/lib/nagios/plugins/check_ram -w 10 -c 5 -f -C
  18. command[check_zombie_procs]=/usr/lib/nagios/plugins/check_procs -w 5 -c 10 -s Z
  19. command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w 220 -c 240
  20. command[check_active_leases]=/opt/show-active-leases | grep "Total Active Leases" | cut -d " " -f5
  21. command[check_disk]=/usr/lib/nagios/plugins/check_disk -w 15% -c 10% -p /
  22. #command[check_update]=/usr/lib/nagios/plugins/check_apt
  23. command[check_apt_succesful]=/usr/lib/nagios/plugins/check_file_age -w 604800 -c 1209600 -f /var/lib/apt/periodic/update-success-stamp
  24. # Gateway Server
  25. command[check_bird]=/usr/lib/nagios/plugins/check_procs -c 1: -w 1: -C bird
  26. command[check_bird6]=/usr/lib/nagios/plugins/check_procs -c 1: -w 1: -C bird6
  27. command[check_bind]=/usr/lib/nagios/plugins/check_procs -c 1: -w 1: -C named
  28. command[check_collectd]=/usr/lib/nagios/plugins/check_procs -c 1: -w 1: -C collectd
  29. command[check_pyrespondd]=/usr/lib/nagios/plugins/check_systemd_service py-respondd
  30. command[check_tunneldigger]=/usr/lib/nagios/plugins/check_tunneldigger
  31. command[check_dhcp-server]=/usr/lib/nagios/plugins/check_procs -c 1: -w 1: -C kea-dhcp4
  32. command[check_vnstat]=/usr/lib/nagios/plugins/check_vnstat.sh -i eth0
  33. command[check-dhcp-client]=/usr/lib/nagios/plugins/check_dhcp -t 5
  34. command[check-dns4-client]=/usr/lib/nagios/plugins/check_dns -H ipv4.google.com -w 0.5 -c 1
  35. command[check-dns6-client]=/usr/lib/nagios/plugins/check_dns -H ipv6.google.com -w 0.5 -c 1
  36. command[check-http4-client]=/usr/lib/nagios/plugins/check_http -H ipv4.google.com -4 -w 1 -c 2
  37. command[check-http6-client]=/usr/lib/nagios/plugins/check_http -H ipv6.google.com -6 -w 1 -c 2
  38. command[check-ping-v4]=/usr/lib/nagios/plugins/check_ping -H 8.8.8.8 -w 50,3% -c 70,7% -4 -p10
  39. command[check-ping-v6]=/usr/lib/nagios/plugins/check_ping -H 2001:4860:4860::8888 -w 50,3% -c 70,7% -6 -p10
  40. command[check_iproute]=/usr/lib/nagios/plugins/check_iproute
  41. command[check_iproute6]=/usr/lib/nagios/plugins/check_iproute6
  42. command[check_bird_sessions]=sudo /usr/lib/nagios/plugins/check_bird_sessions
  43. command[check_bird6_sessions]=sudo /usr/lib/nagios/plugins/check_bird6_sessions
  44. # Service VM Server
  45. command[check_nginx]=/usr/lib/nagios/plugins/check_procs -c 1: -w 1: -C nginx
  46. {% if domaenenliste is defined %}
  47. # Domain Check-Scripts on gateways
  48. {% for domaene in domaenenliste|dictsort %}
  49. command[check_batip6_{{domaene[0]}}]=/usr/lib/nagios/plugins/check_batip6 -D {{domaene[0]}}
  50. command[check_batip_{{domaene[0]}}]=/usr/lib/nagios/plugins/check_batip -D {{domaene[0]}}
  51. {% endfor %}
  52. {% endif %}
  53. {% if 'monitoring-satellites' in group_names and is_ff_tester is defined %}
  54. # Freifunk-Tester
  55. {% for domaene in domaenen|dictsort %}
  56. command[check_FFTesterV4_{{domaene[0]}}]=sudo /root/gits/tools/Freifunk-Tester/icinga_reporter.sh ffmsd{{domaene[0]}} IPv4-ping-test-to-google.de random
  57. command[check_FFTesterV6_{{domaene[0]}}]=sudo /root/gits/tools/Freifunk-Tester/icinga_reporter.sh ffmsd{{domaene[0]}} IPv6-ping-test-to-google.de random
  58. {% endfor %}
  59. {% endif %}