Page 2 of 2

Re: Check_disk errors

Posted: Fri Mar 01, 2019 3:00 pm
by scottwilkerson
I've looked over this and all seems correct however there is one thing we have not checked yet.

Can you post your command definition for the check_nrpe check?

Re: Check_disk errors

Posted: Sat Mar 02, 2019 6:29 am
by AnotherNagiosUser
The commands.cfg file on the Nagios server has the following in for nrpe.

Code: Select all

define command{
        command_name check_nrpe
        command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}

Re: Check_disk errors

Posted: Mon Mar 04, 2019 8:06 am
by scottwilkerson
AnotherNagiosUser wrote:The commands.cfg file on the Nagios server has the following in for nrpe.

Code: Select all

define command{
        command_name check_nrpe
        command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}
Lets change this to the following to also pass the arguments

Code: Select all

define command{
        command_name check_nrpe
        command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ $ARG2$
}
then restart nagios

Code: Select all

service nagios restart

Re: Check_disk errors

Posted: Mon Mar 04, 2019 9:04 am
by AnotherNagiosUser
I changed the commands.cfg file and it's working now! :D

Thank you for your help.

Re: Check_disk errors

Posted: Mon Mar 04, 2019 9:13 am
by scottwilkerson
AnotherNagiosUser wrote:I changed the commands.cfg file and it's working now! :D

Thank you for your help.
Great!

Locking thread.