added --log-healthy support to plugins, standardized format of configuration files

This commit is contained in:
patvdv
2019-03-10 11:10:59 +01:00
parent 4919949d4f
commit cf4683d6b8
37 changed files with 1071 additions and 277 deletions
+11 -4
View File
@@ -6,11 +6,18 @@
# [default: indicates hardcoded script values if no value is defined here]
#******************************************************************************
# client name; maximum amount of warnings allowed; maximum backup age (hours/days/weeks)
# specify whether to also log passed health checks
# (warning: this may rapidly grow the HC log)
# [default: no]
log_healthy="yes"
# specify client & backup details
# Format:
# client:<client_name>:<max_warnings_allowed>:<max_backup_age>(d|h|w)
# Examples:
#testclient1;0;10h
#testclient2;0;2d
#testclient3;0;5w
#client:host1:0:10h
#client:host2:0:2d
#client:host3:0:5w
#******************************************************************************
@@ -0,0 +1,21 @@
#******************************************************************************
# @(#) check_linux_es_status.conf
#******************************************************************************
# This is a configuration file for the check_linux_es_status HC plugin.
# All lines starting with a '#' are comment lines.
# [default: indicates hardcoded script values if no value is defined here]
#******************************************************************************
# specify whether to also log passed health checks
# (warning: this may rapidly grow the HC log)
# [default: no]
log_healthy="yes"
# specify the URL of the Elasticsearch instance (host:port)
# [default: http://localhost:9200]
es_url="http://localhost:9200"
#******************************************************************************
# End of FILE
#******************************************************************************
+13 -4
View File
@@ -6,10 +6,19 @@
# [default: indicates hardcoded script values if no value is defined here]
#******************************************************************************
# file (full path); maximum age in minutes since last change
/var/log/messages;60
/var/log/ntp.log;30
# specify whether to also log passed health checks
# (warning: this may rapidly grow the HC log)
# [default: no]
log_healthy="yes"
# specify file details
# Format:
# file:<file_path>:<max_age_minutes_since_last_change>
# Examples:
#file:/var/log/messages:60
#file:/var/log/ntp.log:30
#******************************************************************************
# End of FILE
#******************************************************************************
#******************************************************************************
@@ -6,6 +6,11 @@
# [default: indicates hardcoded script values if no value is defined here]
#******************************************************************************
# specify whether to also log passed health checks
# (warning: this may rapidly grow the HC log)
# [default: no]
log_healthy="yes"
# name of the state file to use (will be relative to /var/opt/hc/state/persistent
# [default: discovered.file_change]
state_file=discovered.file_change
+7 -1
View File
@@ -6,6 +6,11 @@
# [default: indicates hardcoded script values if no value is defined here]
#******************************************************************************
# specify whether to also log passed health checks
# (warning: this may rapidly grow the HC log)
# [default: no]
log_healthy="yes"
# location of 'hpacucli' tool
hpacucli_bin="/usr/sbin/hpacucli"
@@ -21,6 +26,7 @@ do_acu_physical=1
# controller slot=X logicaldrive all show status (0=off, 1=on) [default: 1]
do_acu_logical=1
#******************************************************************************
# End of FILE
#******************************************************************************
#******************************************************************************
+7 -1
View File
@@ -6,6 +6,11 @@
# [default: indicates hardcoded script values if no value is defined here]
#******************************************************************************
# specify whether to also log passed health checks
# (warning: this may rapidly grow the HC log)
# [default: no]
log_healthy="yes"
# location of 'hpasmcli' tool
hpasmcli_bin="/sbin/hpasmcli"
@@ -24,6 +29,7 @@ do_asm_server=1
# SHOW TEMPERATURE (0=off, 1=on) [default: 1]
do_asm_temperature=1
#******************************************************************************
# End of FILE
#******************************************************************************
#******************************************************************************
+5
View File
@@ -6,6 +6,11 @@
# [default: indicates hardcoded script values if no value is defined here]
#******************************************************************************
# specify whether to also log passed health checks
# (warning: this may rapidly grow the HC log)
# [default: no]
log_healthy="yes"
# location of 'hpacucli' tool
hplog_bin="/sbin/hplog"
+6 -1
View File
@@ -6,6 +6,11 @@
# [default: indicates hardcoded script values if no value is defined here]
#******************************************************************************
# specify whether to also log passed health checks
# (warning: this may rapidly grow the HC log)
# [default: no]
log_healthy="yes"
# location of 'hpssacli' tool
hpssacli_bin="/usr/sbin/hpssacli"
@@ -23,4 +28,4 @@ do_ssa_logical=1
#******************************************************************************
# End of FILE
#******************************************************************************
#******************************************************************************
+10 -1
View File
@@ -6,8 +6,17 @@
# [default: indicates hardcoded script values if no value is defined here]
#******************************************************************************
# specify whether to also log passed health checks
# (warning: this may rapidly grow the HC log)
# [default: no]
log_healthy="yes"
# list of commands (or strings) that should appear in active cron entries
/usr/bin/cfg2html-linux
# Format:
# cron:<cron_entry>
# Examples:
#cron:/usr/bin/cfg2html-linux
#******************************************************************************
# End of FILE
@@ -6,9 +6,16 @@
# [default: indicates hardcoded script values if no value is defined here]
#******************************************************************************
# list of required cluster statuses (format : "parameter=value")
# specify whether to also log passed health checks
# (warning: this may rapidly grow the HC log)
# [default: no]
log_healthy="yes"
# list of required cluster statuses
# Format:
# sg:<parameter>=<value>
# Examples:
#status=up
#sg:status=up
#******************************************************************************
@@ -6,9 +6,16 @@
# [default: indicates hardcoded script values if no value is defined here]
#******************************************************************************
# list of required package statuses (format : "package_name:parameter=value")
# specify whether to also log passed health checks
# (warning: this may rapidly grow the HC log)
# [default: no]
log_healthy="yes"
# list of required package statuses
# Format:
# sg:<package_name>:<parameter>=<value>
# Examples:
#my_package|status=up
#sg:my_package:status=up
#******************************************************************************
@@ -13,9 +13,9 @@ log_healthy="yes"
# specify containers for which to check the UBC
# Format:
# [ct:<ct_id>]
# [ct:<ct_id>]
# Examples:
# ct:100
#ct:100
#******************************************************************************
# End of FILE
@@ -12,7 +12,8 @@
log_healthy="yes"
# specify properties as displayed by the 'vzlist -a -H -o ctid,status,onboot' command
# [ct:<ct_id>:<runtime_status>:<boot_status>]
# Format:
# [ct:<ct_id>:<runtime_status>:<boot_status>]
# runtime_status should be 'running' or 'stopped'
# boot_status should be 'yes' or 'no'
# Examples: