From 5b240365685fcce91909a3fb68fe008dbc331b12 Mon Sep 17 00:00:00 2001
From: garnier-quentin <garnier.quentin@gmail.com>
Date: Mon, 7 Oct 2019 17:54:11 +0200
Subject: [PATCH] add command in help nrpe

---
 apps/protocols/nrpe/mode/query.pm |  1 +
 centreon/plugins/nrpe.pm          | 16 ++++++++--------
 2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/apps/protocols/nrpe/mode/query.pm b/apps/protocols/nrpe/mode/query.pm
index 5fa8ea078..5de5a879a 100644
--- a/apps/protocols/nrpe/mode/query.pm
+++ b/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/nrpe.pm b/centreon/plugins/nrpe.pm
index 79e9ab4f6..cbaf4fd13 100644
--- a/centreon/plugins/nrpe.pm
+++ b/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');