From a9fa81b6b7ea25a559b2eeaccb57402fe28b8095 Mon Sep 17 00:00:00 2001 From: omercier Date: Thu, 30 Nov 2023 00:17:26 +0100 Subject: [PATCH] enh(help): enhance the help for extracted-pattern --- src/apps/protocols/http/mode/expectedcontent.pm | 4 ++-- src/snmp_standard/mode/numericvalue.pm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apps/protocols/http/mode/expectedcontent.pm b/src/apps/protocols/http/mode/expectedcontent.pm index d5ae58d4b3..28bbefb08a 100644 --- a/src/apps/protocols/http/mode/expectedcontent.pm +++ b/src/apps/protocols/http/mode/expectedcontent.pm @@ -291,7 +291,7 @@ Specify that the type of certificate is PKCS1. =item B<--data> -Set POST data request (For a JSON data, add following option: --header='Content-Type: application/json') +Define the POST data to send int the body of the request. For JSON data, add the following option: --header='Content-Type: application/json'. =item B<--header> @@ -311,7 +311,7 @@ Save cookies in a file (example: '/tmp/lwp_cookies.dat') =item B<--extracted-pattern> -Set pattern to extracted a number (used --warning-extracted and --critical-extracted option). +Define a pattern to extract a number from the returned page (use --warning-extracted and --critical-extracted option). =item B<--expected-string> diff --git a/src/snmp_standard/mode/numericvalue.pm b/src/snmp_standard/mode/numericvalue.pm index d4bc24a20b..10f16c0d06 100644 --- a/src/snmp_standard/mode/numericvalue.pm +++ b/src/snmp_standard/mode/numericvalue.pm @@ -276,7 +276,7 @@ Convert counter value on a value per seconds (only with type 'counter'). =item B<--extracted-pattern> -Set pattern to extracted a number. +Define a pattern to extract a number from the returned string. =item B<--format>