Page 1 of 1

Nagios Check Host Alive

Posted: Wed Apr 04, 2018 5:27 am
by klevinkona
Hello
I am trying to configure nagios check-host-alive from nrpe to a client machine and from the client machine the check-host-alive will ping a third machine. Here are the details

Nagios server

Code: Select all

define service{
        use                             generic-service,graphed-service2
        host_name                       Router_Bllok2
        service_description             Ping_Bllok2-QS1
        contact_groups                  admins
        check_command                   check_nrpe!check_ping_one!192.168.11.9!5000,100%!5000,100%!1
}
From the client side here is the config

Code: Select all

command[check_ping_one]=/usr/lib/nagios/plugins/check_ping -H $ARG1$ -w $ARG2$ -c $ARG3$ -p  $ARG4$
When i run via terminal / web i test via this command

Code: Select all

 /usr/lib/nagios/plugins/check_nrpe  -H 192.168.1.3 -c  check_ping_one
But the output is the following
Handling the connection...
Error: Request contained command arguments!
Any idea / suggestion how to reformat the command in order to work?
I checked / tested across the web before posting here.
Thank you in advance
Klevin

Re: Nagios Check Host Alive

Posted: Wed Apr 04, 2018 9:37 am
by klevinkona
This topic was solved, by updating / installing the nagios-nrpe-server, not configured
OS ubuntu 16.04