Skip to content
Snippets Groups Projects
Commit 9d6b1c54 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Merge branch '6468-docs-and-harmonize' into 'master'

6468 docs and harmonize

See merge request !133
parents 8793a553 fdeea247
No related branches found
No related tags found
1 merge request!1336468 docs and harmonize
......@@ -9,46 +9,42 @@
# ----------------------------------------------------------------------
# 2020-07-08 v1.0 <axel.hahn@iml.unibe.ch>
# 2022-10-25 v1.1 <axel.hahn@unibe.ch> shell fixes; no tmpfiles; IML look
# 2023-08-22 v1.2 <axel.hahn@unibe.ch> update help; small shell fixes
# ======================================================================
. $( dirname $0 )/inc_pluginfunctions
self_APPNAME=$( basename $0 | tr [:lower:] [:upper:] )
self_APPVERSION=1.1
export self_APPVERSION=1.2
# ----------------------------------------------------------------------
# functions
# ----------------------------------------------------------------------
function showHelp(){
local _self; _self=$(basename $0)
cat <<EOF
______________________________________________________________________
$self_APPNAME
v$self_APPVERSION
(c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3
______________________________________________________________________
$( ph.showImlHelpHeader )
Count number of network connections.
SYNTAX:
$(basename $0) [ -w value -c value -h ]
$_self [ -w value -c value -h ]
-w VALUE cpu usage warning level (default: 75)
-c VALUE cpu usage critical level (default: 90)
-w VALUE warning level for connectios total
-c VALUE critical level
-h or --help show this help.
PARAMETERS:
None.
EXAMPLE:
$(basename $0) -w 60 -c 80 -p 40
EXAMPLES:
$_self Show count of current connections
If there is no -w and -c then the result is always OK.
$_self -w 400 -c 500
Show count of connections incl. limits for warning
and critical.
EOF
}
......@@ -69,8 +65,8 @@ case "$1" in
esac
# --- set optional limits
typeset -i iWarnLimit=$( ph.getValueWithParam 0 w "$@")
typeset -i iCriticalLimit=$( ph.getValueWithParam 0 c "$@")
typeset -i iWarnLimit; iWarnLimit=$( ph.getValueWithParam 0 w "$@")
typeset -i iCriticalLimit; iCriticalLimit=$( ph.getValueWithParam 0 c "$@")
# --- count all connections
typeset -i iTotal=0
......
......@@ -152,7 +152,6 @@ query cache efficiency: cached vs non cached and inserted
INFO: Query cache (have_query_cache) is active but query_cache_type is OFF.
```
## Uninstall
As root run
......
......@@ -11,10 +11,12 @@ Count number of network connections.
______________________________________________________________________
CHECK_NETSTAT
v1.1
v1.2
(c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3
https://os-docs.iml.unibe.ch/icinga-checks/Checks/check_netstat.html
______________________________________________________________________
Count number of network connections.
......@@ -22,18 +24,20 @@ Count number of network connections.
SYNTAX:
check_netstat [ -w value -c value -h ]
-w VALUE cpu usage warning level (default: 75)
-c VALUE cpu usage critical level (default: 90)
-w VALUE warning level for connectios total
-c VALUE critical level
-h or --help show this help.
PARAMETERS:
None.
EXAMPLE:
check_netstat -w 60 -c 80 -p 40
EXAMPLES:
check_netstat Show count of current connections
If there is no -w and -c then the result is always OK.
check_netstat -w 400 -c 500
Show count of connections incl. limits for warning
and critical.
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment