add new monit ip address

This commit is contained in:
Ludovic Cartier
2025-11-20 17:56:11 +01:00
parent e16a0bdd9a
commit 917edc9ae5
2 changed files with 6 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
--- ---
nrpe_allowed_hosts: '127.0.0.1,51.158.69.165' nrpe_allowed_hosts: '127.0.0.1,51.158.69.165,49.12.224.53'
nrpe_load_warning: "{{ ansible_processor_cores|int }}" nrpe_load_warning: "{{ ansible_processor_cores|int }}"
nrpe_load_critical: "{{ (ansible_processor_cores * 2)|int }}" nrpe_load_critical: "{{ (ansible_processor_cores * 2)|int }}"

View File

@@ -77,3 +77,8 @@ command[check_proc_{{ process }}]=/usr/lib/nagios/plugins/check_systemd_service
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if nrpe_kubernetes is defined %}
command[check_proc_kubelet]=/usr/lib/nagios/plugins/check_systemd_service kubelet
command[check_proc_etcd]=/usr/lib/nagios/plugins/check_systemd_service etcd
command[check_proc_containerd]=/usr/lib/nagios/plugins/check_systemd_service containerd
{% endif %}