mirror of
https://github.com/c-kr/check_json.git
synced 2024-11-23 19:03:49 +01:00
cleanup
This commit is contained in:
parent
f6d603b6e7
commit
820934c865
@ -26,7 +26,7 @@ my $np = Nagios::Plugin->new(
|
|||||||
extra => "\nExample: \n"
|
extra => "\nExample: \n"
|
||||||
. "check_json.pl --url http://192.168.5.10:9332/local_stats --attributes '{shares}->{dead}' "
|
. "check_json.pl --url http://192.168.5.10:9332/local_stats --attributes '{shares}->{dead}' "
|
||||||
. "--warning :5 --critical :10 --perfvars '{shares}->{dead},{shares}->{live}' "
|
. "--warning :5 --critical :10 --perfvars '{shares}->{dead},{shares}->{live}' "
|
||||||
. "--outputvars '{status_message}'",
|
. "--outputvars '{status_message}' -x <api_token>",
|
||||||
url => 'https://github.com/c-kr/check_json',
|
url => 'https://github.com/c-kr/check_json',
|
||||||
plugin => 'check_json',
|
plugin => 'check_json',
|
||||||
timeout => 15,
|
timeout => 15,
|
||||||
@ -105,7 +105,6 @@ $np->add_arg(
|
|||||||
help => "-x|--xauth\n Use X-Auth-Token in header",
|
help => "-x|--xauth\n Use X-Auth-Token in header",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
## Parse @ARGV and process standard arguments (e.g. usage, help, version)
|
## Parse @ARGV and process standard arguments (e.g. usage, help, version)
|
||||||
$np->getopts;
|
$np->getopts;
|
||||||
if ($np->opts->verbose) { (print Dumper ($np))};
|
if ($np->opts->verbose) { (print Dumper ($np))};
|
||||||
|
Loading…
Reference in New Issue
Block a user