Check_disk errors

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check_disk errors

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
AnotherNagiosUser
Posts: 19
Joined: Tue Feb 26, 2019 4:51 am

Re: Check_disk errors

Post 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$
}
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check_disk errors

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
AnotherNagiosUser
Posts: 19
Joined: Tue Feb 26, 2019 4:51 am

Re: Check_disk errors

Post by AnotherNagiosUser »

I changed the commands.cfg file and it's working now! :D

Thank you for your help.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check_disk errors

Post by scottwilkerson »

AnotherNagiosUser wrote:I changed the commands.cfg file and it's working now! :D

Thank you for your help.
Great!

Locking thread.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked