2024-09-30 06:07:30 +00:00
|
|
|
- name: Set NRPE PVE configuration
|
|
|
|
copy:
|
|
|
|
src: nrpe.cfg
|
|
|
|
dest: /etc/nagios/nrpe.d/95-pve.cfg
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: u=rw,g=r,o=r
|
|
|
|
notify: restart-nrpe
|
2024-10-01 12:14:51 +00:00
|
|
|
- name: Copy PVE NRPE plugins
|
|
|
|
copy:
|
|
|
|
src: nrpe/
|
|
|
|
dest: /etc/nagios/plugins/
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: u=rwx,g=rx,o=rx
|
|
|
|
notify: restart-nrpe
|
2024-09-30 06:07:30 +00:00
|
|
|
- name: Add nagios to sudoers
|
|
|
|
copy:
|
|
|
|
src: sudoers
|
|
|
|
dest: /etc/sudoers.d/nagios
|
|
|
|
mode: u=rw,g=r,o=
|
|
|
|
owner: root
|
|
|
|
group: root
|
2024-10-01 12:14:51 +00:00
|
|
|
notify: restart-nrpe
|
2024-09-30 06:07:30 +00:00
|
|
|
- name: Configure memory regions
|
|
|
|
copy:
|
|
|
|
src: vhost.conf
|
|
|
|
dest: /etc/modprobe.d/
|
|
|
|
mode: u=rw,g=r,o=r
|
|
|
|
owner: root
|
|
|
|
group: root
|