forked from evolix/ansible-roles
nagios-nrpe / evolinux-base : new ntp server variable
Online hosted servers must use ntp.online.net as ntp server, because others one are rate limited. Default ntp server is pool.ntp.org, and a custom one can be set with the nagios_nrpe_ntp_server variable.
This commit is contained in:
parent
1d5a30b144
commit
1a0872c507
|
@ -1,4 +1,8 @@
|
||||||
- debug:
|
- debug:
|
||||||
msg: "Online DNS servers fails sometimes! Please change them in /etc/resolv.conf."
|
msg: "Online DNS servers fails sometimes! Please change them in /etc/resolv.conf."
|
||||||
|
|
||||||
|
- name: custom NTP server for Online servers
|
||||||
|
set_fact:
|
||||||
|
nagios_nrpe_default_ntp_server: "ntp.online.net"
|
||||||
|
|
||||||
# - meta: flush_handlers
|
# - meta: flush_handlers
|
||||||
|
|
|
@ -4,9 +4,12 @@ nagios_nrpe_additional_allowed_hosts: []
|
||||||
nagios_nrpe_allowed_hosts: "{{ nagios_nrpe_default_allowed_hosts | union(nagios_nrpe_additional_allowed_hosts) | unique }}"
|
nagios_nrpe_allowed_hosts: "{{ nagios_nrpe_default_allowed_hosts | union(nagios_nrpe_additional_allowed_hosts) | unique }}"
|
||||||
nagios_nrpe_pgsql_passwd: PGSQL_PASSWD
|
nagios_nrpe_pgsql_passwd: PGSQL_PASSWD
|
||||||
nagios_nrpe_amavis_from: "foobar@{{ ansible_domain }}"
|
nagios_nrpe_amavis_from: "foobar@{{ ansible_domain }}"
|
||||||
|
nagios_nrpe_default_ntp_server: "pool.ntp.org"
|
||||||
|
nagios_nrpe_ntp_server: Null
|
||||||
|
|
||||||
nagios_nrpe_force_update_allowed_hosts: False
|
nagios_nrpe_force_update_allowed_hosts: False
|
||||||
|
|
||||||
nagios_nrpe_check_proxy_host: "www.example.com"
|
nagios_nrpe_check_proxy_host: "www.example.com"
|
||||||
|
|
||||||
nagios_plugins_directory: "/usr/local/lib/nagios/plugins"
|
nagios_plugins_directory: "/usr/local/lib/nagios/plugins"
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ command[check_users]=/usr/lib/nagios/plugins/check_users -w 5 -c 10
|
||||||
# Generic services checks
|
# Generic services checks
|
||||||
command[check_smtp]=/usr/lib/nagios/plugins/check_smtp -H localhost
|
command[check_smtp]=/usr/lib/nagios/plugins/check_smtp -H localhost
|
||||||
command[check_dns]=/usr/lib/nagios/plugins/check_dns -H evolix.net
|
command[check_dns]=/usr/lib/nagios/plugins/check_dns -H evolix.net
|
||||||
command[check_ntp]=/usr/lib/nagios/plugins/check_ntp -H ntp2.evolix.net
|
command[check_ntp]=/usr/lib/nagios/plugins/check_ntp -H {{ nagios_nrpe_ntp_server or nagios_nrpe_default_ntp_server | mandatory }}
|
||||||
command[check_ssh]=/usr/lib/nagios/plugins/check_ssh localhost
|
command[check_ssh]=/usr/lib/nagios/plugins/check_ssh localhost
|
||||||
command[check_mailq]=/usr/lib/nagios/plugins/check_mailq -M postfix -w 10 -c 20
|
command[check_mailq]=/usr/lib/nagios/plugins/check_mailq -M postfix -w 10 -c 20
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue