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

update help for ph.getValueWithParam

parent c1e91773
No related branches found
No related tags found
1 merge request!297Simple task/7546 icinga check für ablaufende gitlab tokens
...@@ -163,7 +163,7 @@ Return default value or its override from command line. ...@@ -163,7 +163,7 @@ Return default value or its override from command line.
Syntax: Syntax:
```text ```text
ph.getFileAge VALUE PARAMNAME "$@" ph.getValueWithParam VALUE PARAMNAME "$@"
``` ```
Parameters: Parameters:
...@@ -176,8 +176,8 @@ Example: ...@@ -176,8 +176,8 @@ Example:
```shell ```shell
# set default / override from command line params # set default / override from command line params
typeset -i iWarnLimit=$( ph.getValueWithParam 75 w "$@") typeset -i iWarnLimit; iWarnLimit=$( ph.getValueWithParam 70 w "$@")
typeset -i iCriticalLimit=$( ph.getValueWithParam 90 c "$@") typeset -i iCriticalLimit; iCriticalLimit=$( ph.getValueWithParam 90 c "$@")
``` ```
This will set variable iWarnLimit based on CLI parameter -w [value] ... if it does not exist it gets the default 75. This will set variable iWarnLimit based on CLI parameter -w [value] ... if it does not exist it gets the default 75.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment