mirror of
https://github.com/c-kr/check_json.git
synced 2024-11-23 19:03:49 +01:00
fixes #17
This commit is contained in:
parent
7f9cb10fbc
commit
0c7e39bb3b
@ -9,7 +9,7 @@ use Nagios::Plugin;
|
|||||||
use Data::Dumper;
|
use Data::Dumper;
|
||||||
|
|
||||||
my $np = Nagios::Plugin->new(
|
my $np = Nagios::Plugin->new(
|
||||||
usage => "Usage: %s -u|--url <URL> -a|--attributes <attributes> "
|
usage => "Usage: %s -u|--url <http://user:pass@host:port/url> -a|--attributes <attributes> "
|
||||||
. "[ -c|--critical <thresholds> ] [ -w|--warning <thresholds> ] "
|
. "[ -c|--critical <thresholds> ] [ -w|--warning <thresholds> ] "
|
||||||
. "[ -p|--perfvars <fields> ] "
|
. "[ -p|--perfvars <fields> ] "
|
||||||
. "[ -o|--outputvars <fields> ] "
|
. "[ -o|--outputvars <fields> ] "
|
||||||
@ -34,7 +34,7 @@ my $np = Nagios::Plugin->new(
|
|||||||
# add valid command line options and build them into your usage/help documentation.
|
# add valid command line options and build them into your usage/help documentation.
|
||||||
$np->add_arg(
|
$np->add_arg(
|
||||||
spec => 'url|u=s',
|
spec => 'url|u=s',
|
||||||
help => '-u, --url http://192.168.5.10:9332/local_stats',
|
help => '-u, --url http://user:pass@192.168.5.10:9332/local_stats',
|
||||||
required => 1,
|
required => 1,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user