You've already forked nrpe
ssl - add default var & declaration
This commit is contained in:
@@ -59,3 +59,7 @@ nrpe_proc_age_critical: 600
|
|||||||
|
|
||||||
nrpe_uptime_warning: 1440
|
nrpe_uptime_warning: 1440
|
||||||
nrpe_uptime_critical: 30
|
nrpe_uptime_critical: 30
|
||||||
|
|
||||||
|
nrpe_ssl_path: '/etc/haproxy/ssl'
|
||||||
|
nrpe_ssl_warning: 21
|
||||||
|
nrpe_ssl_critical: 14
|
||||||
|
|||||||
+6
-1
@@ -35,6 +35,11 @@ command[check_rw_root]=/usr/lib/nagios/plugins/check_rofs /
|
|||||||
# uptime
|
# uptime
|
||||||
command[check_uptime]=/usr/lib/nagios/plugins/check_uptime -w {{ nrpe_uptime_warning }} -c {{ nrpe_uptime_critical }}
|
command[check_uptime]=/usr/lib/nagios/plugins/check_uptime -w {{ nrpe_uptime_warning }} -c {{ nrpe_uptime_critical }}
|
||||||
|
|
||||||
|
{% if nrpe_ssl is defined %}
|
||||||
|
# ssl
|
||||||
|
command[check_ssl_cert]=/usr/lib/nagios/plugins/check_ssl_cert -p {{ nrpe_ssl_path }} -w {{ nrpe_ssl_warning }} -c {{ nrpe_ssl_critical }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if nrpe_mysql is defined %}
|
{% if nrpe_mysql is defined %}
|
||||||
# mysql
|
# mysql
|
||||||
command[check_mysql]=/usr/lib/nagios/plugins/check_mysql -u {{ nrpe_mysql_user }} -p{{ nrpe_mysql_password }} -H {{ nrpe_mysql_host }} -d mysql
|
command[check_mysql]=/usr/lib/nagios/plugins/check_mysql -u {{ nrpe_mysql_user }} -p{{ nrpe_mysql_password }} -H {{ nrpe_mysql_host }} -d mysql
|
||||||
@@ -153,4 +158,4 @@ command[check_ceph_osd]=/usr/lib/nagios/plugins/check_ceph osd
|
|||||||
command[check_ceph_mon]=/usr/lib/nagios/plugins/check_ceph mon
|
command[check_ceph_mon]=/usr/lib/nagios/plugins/check_ceph mon
|
||||||
command[check_ceph_cap]=/usr/lib/nagios/plugins/check_ceph cap
|
command[check_ceph_cap]=/usr/lib/nagios/plugins/check_ceph cap
|
||||||
command[check_ceph_pg]=/usr/lib/nagios/plugins/check_ceph pg
|
command[check_ceph_pg]=/usr/lib/nagios/plugins/check_ceph pg
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user