(plugin) apps::protocols::nrpe - change option (#3704)
This commit is contained in:
parent
dec60f5611
commit
f5b3adb6fd
|
@ -46,7 +46,7 @@ sub new {
|
||||||
if (!defined($options{noptions})) {
|
if (!defined($options{noptions})) {
|
||||||
$options{options}->add_options(arguments => {
|
$options{options}->add_options(arguments => {
|
||||||
'hostname:s' => { name => 'hostname' },
|
'hostname:s' => { name => 'hostname' },
|
||||||
'parse' => { name => 'parse' }
|
'nrpe-parse-output' => { name => 'nrpe_parse_output' }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
$options{options}->add_help(package => __PACKAGE__, sections => 'CUSTOM MODE OPTIONS', once => 1);
|
$options{options}->add_help(package => __PACKAGE__, sections => 'CUSTOM MODE OPTIONS', once => 1);
|
||||||
|
@ -126,7 +126,7 @@ sub format_result {
|
||||||
perf => []
|
perf => []
|
||||||
};
|
};
|
||||||
|
|
||||||
if (defined($self->{option_results}->{parse})) {
|
if (defined($self->{option_results}->{nrpe_parse_output})) {
|
||||||
$self->parse_plugin_output(result => $result, output => $options{content}->{buffer});
|
$self->parse_plugin_output(result => $result, output => $options{content}->{buffer});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -159,7 +159,7 @@ NRPE protocol
|
||||||
|
|
||||||
Remote hostname or IP address.
|
Remote hostname or IP address.
|
||||||
|
|
||||||
=item B<--parse>
|
=item B<--nrpe-parse-output>
|
||||||
|
|
||||||
Parse remote plugin output.
|
Parse remote plugin output.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue