forked from pool/monitoring-plugins
7e6efb42c5
Enhancements General + using PRId64 and PRIu64 instead of %ld directly Single Plugins + check_http: Make faster with larger files + check_snmp: add 'multiplier' to modify current value + check_http: Implement chunked encoding decoding + check_http/check_curl: add chunked encoding test + check_log: Added --exclude to exclude patterns + check_log: Add tests + check_disk: Clarify usage possibilites Fixes General + fixed two PRId64 to PRIu64 in perfdata_uint64 Single Plugins + check_pgsql: Removing is_pg_dbname alltogether,using postgres API. + check_http: Remove superflous CRLF in HTTP-Requests + check_curl: detect ipv6 + check_icmp: fix parsing help/version long options + check_http: fix test plan + check_disk: Find accessible mount path if multiple are available + check_apt: Fix unknown escape sequence error output + check_curl: fix checking large bodys + check_snmp: Improve tests for check_snmp & multiply option + check_snmp: always apply format when applying multiplier + check_http: Use real booleans instead of ints + check_http: Document process_arguments a little bit better + check_http: Remove dead code + check_http: Fix several bug in the implementation of unchunking OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=101
34 lines
929 B
Diff
34 lines
929 B
Diff
Index: monitoring-plugins-2.3.3/plugins-scripts/check_log.sh
|
|
===================================================================
|
|
--- monitoring-plugins-2.3.3.orig/plugins-scripts/check_log.sh
|
|
+++ monitoring-plugins-2.3.3/plugins-scripts/check_log.sh
|
|
@@ -112,23 +112,23 @@ while test -n "$1"; do
|
|
exit "$STATE_OK"
|
|
;;
|
|
-F | --filename)
|
|
- logfile=$2
|
|
+ logfile="$2"
|
|
shift 2
|
|
;;
|
|
-O | --oldlog)
|
|
- oldlog=$2
|
|
+ oldlog="$2"
|
|
shift 2
|
|
;;
|
|
-q | --query)
|
|
- query=$2
|
|
+ query="$2"
|
|
shift 2
|
|
;;
|
|
--exclude)
|
|
- exclude=$2
|
|
+ exclude="$2"
|
|
shift 2
|
|
;;
|
|
-x | --exitstatus)
|
|
- exitstatus=$2
|
|
+ exitstatus="$2"
|
|
shift 2
|
|
;;
|
|
-e | --extended-regex)
|