diff --git a/check_netio b/check_netio index 59a9c9d619fb4f7b15b08f24da59f3baa3be3580..920ad608223cd97d0f4618e0c306b433cea16681 100755 --- a/check_netio +++ b/check_netio @@ -9,12 +9,13 @@ # 2023-08-21 v1.1 <axel.hahn@unibe.ch> add help; add param -i # 2023-08-22 v1.2 <axel.hahn@unibe.ch> send perf data on single interface too; interfaces in alphabetic order; no more tmp file # 2023-08-22 v1.3 <axel.hahn@unibe.ch> show status line with 2 digits after "." +# 2023-09-22 v1.4 <axel.hahn@unibe.ch> fix syntax error -eq: unary operator expected # ====================================================================== . $( dirname $0 )/inc_pluginfunctions -export self_APPVERSION=1.2 +export self_APPVERSION=1.4 # ---------------------------------------------------------------------- @@ -57,9 +58,9 @@ EOF # MAIN # ---------------------------------------------------------------------- -bOptHelp=$( ph.hasParamoption "h" "$@") +ph.hasParamoption "h" "$@"; bOptHelp=$? -if [ $bOptHelp -eq 1 ]; then +if [ $bOptHelp -eq 0 ]; then showHelp exit 0 fi diff --git a/docs/20_Checks/check_netio.md b/docs/20_Checks/check_netio.md index fc1826e59862cc9fa24f4910e9922dad251d3ccb..07243bc81e45f2565b9a53a398f62e140af7c26b 100644 --- a/docs/20_Checks/check_netio.md +++ b/docs/20_Checks/check_netio.md @@ -17,7 +17,7 @@ This plugin scans `/proc/net/dev` with the regex `eth|en[ops][0-9]*` to show a f ______________________________________________________________________ CHECK_NETIO -v1.1 +v1.4 (c) Institute for Medical Education - University of Bern Licence: GNU GPL 3