Skip to content

Commit

Permalink
Update applications-protocol-http.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lucie-dubrunfaut authored Dec 19, 2024
1 parent 5b84500 commit 12850f7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ Les options génériques sont listées ci-dessous :
| --verbose | Display extended status information (long output). |
| --debug | Display debug messages. |
| --filter-perfdata | Filter perfdata that match the regexp. Example: adding --filter-perfdata='avg' will remove all metrics that do not contain 'avg' from performance data. |
| --filter-perfdata-adv | Filter perfdata based on a "if" condition using the following variables: label, value, unit, warning, critical, min, max. Variables must be written either %\\{variable\\} or %(variable). Example: adding --filter-perfdata-adv='not (%(value) == 0 and %(max) eq "")' will remove all metrics whose value equals 0 and that don't have a maximum value. |
| --filter-perfdata-adv | Filter perfdata based on a "if" condition using the following variables: label, value, unit, warning, critical, min, max. Variables must be written either %\{variable\} or %(variable). Example: adding --filter-perfdata-adv='not (%(value) == 0 and %(max) eq "")' will remove all metrics whose value equals 0 and that don't have a maximum value. |
| --explode-perfdata-max | Create a new metric for each metric that comes with a maximum limit. The new metric will be named identically with a '\_max' suffix). Example: it will split 'used\_prct'=26.93%;0:80;0:90;0;100 into 'used\_prct'=26.93%;0:80;0:90;0;100 'used\_prct\_max'=100%;;;; |
| --change-perfdata --extend-perfdata | Change or extend perfdata. Syntax: --extend-perfdata=searchlabel,newlabel,target\[,\[newuom\],\[min\],\[m ax\]\] Common examples: Convert storage free perfdata into used: --change-perfdata=free,used,invert() Convert storage free perfdata into used: --change-perfdata=used,free,invert() Scale traffic values automatically: --change-perfdata=traffic,,scale(auto) Scale traffic values in Mbps: --change-perfdata=traffic\_in,,scale(Mbps),mbps Change traffic values in percent: --change-perfdata=traffic\_in,,percent() |
| --extend-perfdata-group | Add new aggregated metrics (min, max, average or sum) for groups of metrics defined by a regex match on the metrics' names. Syntax: --extend-perfdata-group=regex,namesofnewmetrics,calculation\[,\[ne wuom\],\[min\],\[max\]\] regex: regular expression namesofnewmetrics: how the new metrics' names are composed (can use $1, $2... for groups defined by () in regex). calculation: how the values of the new metrics should be calculated newuom (optional): unit of measure for the new metrics min (optional): lowest value the metrics can reach max (optional): highest value the metrics can reach Common examples: Sum wrong packets from all interfaces (with interface need --units-errors=absolute): --extend-perfdata-group=',packets\_wrong,sum(packets\_(discard \|error)\_(in\|out))' Sum traffic by interface: --extend-perfdata-group='traffic\_in\_(.*),traffic\_$1,sum(traf fic\_(in\|out)\_$1)' |
Expand Down Expand Up @@ -422,7 +422,7 @@ Les options disponibles pour chaque modèle de services sont listées ci-dessous
| --post-param | Set POST params (multiple option. Example: --post-param='key=value') |
| --cookies-file | Save cookies in a file (example: '/tmp/lwp\_cookies.dat') |
| --extracted-pattern | Define a pattern to extract a number from the returned page (use --warning-extracted and --critical-extracted option). |
| --expected-string | Define the expected expression, where --expected-string='mypattern' is actually a shortcut for --critical-content='%\\{content\\} !~ /mypattern/mi'. It is recommended to use --critical-content directly. |
| --expected-string | Define the expected expression, where --expected-string='mypattern' is actually a shortcut for --critical-content='%\{content\} !~ /mypattern/mi'. It is recommended to use --critical-content directly. |
| --unknown-status | Warning threshold for http response code (default: '%\\{http_code\\} \< 200 or %\\{http_code\\} \>= 300') |
| --warning-status | Warning threshold for http response code |
| --critical-status | Critical threshold for http response code |
Expand Down

0 comments on commit 12850f7

Please sign in to comment.