--- - name: Install NRPE-Server package: name: nagios-nrpe-server state: latest - name: Configure NRPE-Server template: "src=nrpe_local.cfg.j2 dest='/etc/nagios/nrpe_local.cfg' owner=root group=root" - name: Install Nagios Plugins package: name: nagios-plugins-standard state: latest - name: Install bc package: name: bc state: latest - name: Install vnstat package: name: vnstat state: latest - name: Install vnstati package: name: vnstati state: latest - name: Install RAM check copy: "src=check_ram dest='/usr/lib/nagios/plugins/check_ram' owner=root group=root mode=a+x" - name: Install bandwith check copy: "src=check_bandwidth dest='/usr/lib/nagios/plugins/check_bandwidth' owner=root group=root mode=a+x" - name: Install check_eth copy: "src=check_eth dest='/usr/lib/nagios/plugins/check_eth' owner=root group=root mode=a+x" - name: Install check_systemd_service copy: "src=check_systemd_service dest='/usr/lib/nagios/plugins/check_systemd_service' owner=root group=root mode=a+x" - name: Install check_tunneldigger copy: "src=check_tunneldigger dest='/usr/lib/nagios/plugins/check_tunneldigger' owner=root group=root mode=a+x" - name: Install Speedtest package: name: speedtest-cli state: latest - name: Install check_speedtest-cli plugin copy: src=check_speedtest-cli.sh dest=/usr/lib/nagios/plugins/check_speedtest-cli.sh owner=root group=root mode=a+x - name: Install DHCP lease check copy: "src=check_active-leases dest='/usr/lib/nagios/plugins/check_active-leases' owner=root group=root mode=a+x" - name: Install check_batip copy: "src=check_batip dest='/usr/lib/nagios/plugins/check_batip' owner=root group=root mode=a+x" - name: Install check_batip6 copy: "src=check_batip6 dest='/usr/lib/nagios/plugins/check_batip6' owner=root group=root mode=a+x" - name: Install check_iproute copy: "src=check_iproute dest='/usr/lib/nagios/plugins/check_iproute' owner=root group=root mode=a+x" - name: Install check_iproute6 copy: "src=check_iproute6 dest='/usr/lib/nagios/plugins/check_iproute6' owner=root group=root mode=a+x" - name: Install check_bird_sessions copy: "src=check_bird_sessions dest='/usr/lib/nagios/plugins/check_bird_sessions' owner=root group=root mode=a+x" - name: Install check_bird6_sessions copy: "src=check_bird6_sessions dest='/usr/lib/nagios/plugins/check_bird6_sessions' owner=root group=root mode=a+x" - name: Sudo Recht check_bird_sessions lineinfile: dest=/etc/sudoers line='nagios ALL=NOPASSWD{{ ":" }} /usr/lib/nagios/plugins/check_bird_sessions' state=present - name: Sudo Recht check_bird6_sessions lineinfile: dest=/etc/sudoers line='nagios ALL=NOPASSWD{{ ":" }} /usr/lib/nagios/plugins/check_bird6_sessions' state=present - name: Sudo Recht check_FFTester lineinfile: dest=/etc/sudoers line='nagios ALL=NOPASSWD{{ ":" }} /root/gits/tools/Freifunk-Tester/icinga_reporter.sh' state=present when: is_ff_tester is defined - name: stop NRPE-Server service: name: nagios-nrpe-server state: stopped - name: start NRPE-Server service: name: nagios-nrpe-server state: started