check_webservice_load.sh: add parameter 'CONFLICTING_SCRIPTS' - don't run if a conflicting other script is currently running.

This commit is contained in:
2021-10-23 14:49:08 +02:00
parent 5e312a597d
commit f6d6ee1769
2 changed files with 81 additions and 51 deletions

View File

@ -22,10 +22,18 @@
# - In addition to the script, a LOCK directory can also be specified which is
# - connected to it.
# -
# - If no fixed LOCK directory is connected to the script, set
# - this value to the constant 'CHECK_PROCESS_LIST'.
# -
# - If no value for the LOCK directory is given, the LOCK directory
# - '/tmp/<base-script_name>.LOCK' is assumed.
# -
# -
# - Example:
# - CONFLICTING_SCRIPTS="
# - /root/bin/monitoring/check_webservice_load.sh
# - /root/bin/monitoring/check_remote_websites.sh:/tmp/check_remote_websites.LOCK
# - /root/bin/monitoring/check_webservice_load.sh:CHECK_PROCESS_LIST
# - /root/bin/monitoring/check_remote_websites.sh
# - "
# -
# - Defaults to:
# - CONFLICTING_SCRIPTS="/root/bin/monitoring/check_local_webservice.sh:/tmp/check_local_webservice.LOCK"