check_local_webservice.sh: optional number of lines to be printed and some changes on script output.

This commit is contained in:
2021-09-24 10:26:07 +02:00
parent cf29c039c5
commit b1557f866d
2 changed files with 50 additions and 12 deletions

View File

@ -17,10 +17,21 @@
# -
LOCAL_WEBSITES_TO_CHECK=""
# - LOG_FILES_TO_MONITOR
# - LOG_FILES_TO_MONITOR[:<n>]
# -
# - Print out the last 20 lines from theses logfiles
# - Print out the last lines from theses given logfiles
# -
# - its possible to give a number of lines, which should be printed out
# - by appending it seperated ba a colon ':'.
# -
# - The default number of printed out lines is 20.
#
# - Example:
# - LOG_FILES_TO_MONITOR="
# - /var/log/apache2/ip_requests.log:40
# - /var/log/php-7.4-fpm/php_errors.log
# - /var/log/mysql/mysql.err:15
# - "
# -
LOG_FILES_TO_MONITOR=""