diff --git a/centreon-plugins/apps/protocols/nrpe/mode/query.pm b/centreon-plugins/apps/protocols/nrpe/mode/query.pm index 5fa8ea078..5de5a879a 100644 --- a/centreon-plugins/apps/protocols/nrpe/mode/query.pm +++ b/centreon-plugins/apps/protocols/nrpe/mode/query.pm @@ -100,6 +100,7 @@ Trigger commands against NRPE/NSClient agent. =item B<--command> Set command. +In nrpe use following command to get server version: --command='_NRPE_CHECK' =item B<--arg> diff --git a/centreon-plugins/centreon/plugins/nrpe.pm b/centreon-plugins/centreon/plugins/nrpe.pm index 79e9ab4f6..cbaf4fd13 100644 --- a/centreon-plugins/centreon/plugins/nrpe.pm +++ b/centreon-plugins/centreon/plugins/nrpe.pm @@ -45,14 +45,14 @@ sub new { if (!defined($options{noptions})) { $options{options}->add_options(arguments => { - "nrpe-version:s" => { name => 'nrpe_version', default => 2 }, - "nrpe-port:s" => { name => 'nrpe_port', default => 5666 }, - "nrpe-payload:s" => { name => 'nrpe_payload', default => 1024 }, - "nrpe-bindaddr:s" => { name => 'nrpe_bindaddr' }, - "nrpe-use-ipv4" => { name => 'nrpe_use_ipv4' }, - "nrpe-use-ipv6" => { name => 'nrpe_use_ipv6' }, - "nrpe-timeout:s" => { name => 'nrpe_timeout', default => 10 }, - "ssl-opt:s@" => { name => 'ssl_opt' }, + 'nrpe-version:s' => { name => 'nrpe_version', default => 2 }, + 'nrpe-port:s' => { name => 'nrpe_port', default => 5666 }, + 'nrpe-payload:s' => { name => 'nrpe_payload', default => 1024 }, + 'nrpe-bindaddr:s' => { name => 'nrpe_bindaddr' }, + 'nrpe-use-ipv4' => { name => 'nrpe_use_ipv4' }, + 'nrpe-use-ipv6' => { name => 'nrpe_use_ipv6' }, + 'nrpe-timeout:s' => { name => 'nrpe_timeout', default => 10 }, + 'ssl-opt:s@' => { name => 'ssl_opt' }, }); } $options{options}->add_help(package => __PACKAGE__, sections => 'NRPE CLASS OPTIONS');