Disk checks not working as in Core 3.5

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rickwilson7425
Posts: 125
Joined: Tue Mar 18, 2014 3:20 pm

Disk checks not working as in Core 3.5

Post by rickwilson7425 »

I am testing XI before we migrate from Core 3.5.

I have servers set up with NRPE already and am using several of those to test monitoring services in XI. I am using check_nrpe and check_disk to get filesystem stats. It appears that using $ARGx$ in the command entry in the nrpe.cfg file on the client doesn't work. I get a message that says the Warning value must be an integer or a percentage. It appears that the $ARGx$ is not being populated from the service definition in XI. If I put the "-w 20 -c 10 -p /" in the nrpe.cfg on the client then it works. Problem is that when I try to check /var or /usr I get the stats for / instead.

Any help on this configuration would be appreciated

Rick Wilson
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Disk checks not working as in Core 3.5

Post by slansing »

The $ARGn$'s are passed to the command being ran by Nagios, not passed through to a remote NRPE command call. Arguments to be used when remotely calling NRPE commands from Nagios are called with the "-a" flag passed through check_nrpe such as:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H addr.of.remote.host -c check_disk -a '-w 20 -c 10 -p /'
Can you narrow down what you are asking a bit? I'm just trying to see if you are confused with the CCM ARG's or if you are having trouble passing arg's through check_nrpe from the actual '-a' flag. It would help if you manually ran the command from the XI server's SSH session and showed what you were talking about there, and what is not being output correctly. Thanks!
rickwilson7425
Posts: 125
Joined: Tue Mar 18, 2014 3:20 pm

Re: Disk checks not working as in Core 3.5

Post by rickwilson7425 »

Here is the output of the command line:


[root@dennagxis1 libexec]# ./check_nrpe -H denhsa03 -n -c check_disk -a '-w 20 -c 10 -p /'
DISK CRITICAL - -c is not accessible: A file or directory in the path name does not exist.


It appears that it is not parsing the -a string properly.

Does that make sense?

This is querying an AIX server that does not use SSL support.
rickwilson7425
Posts: 125
Joined: Tue Mar 18, 2014 3:20 pm

Re: Disk checks not working as in Core 3.5

Post by rickwilson7425 »

ok - never mind.

The problem was in the command definition on the client server.

It read:

command[check_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$

I changed it to:

command[check_disk]=/usr/local/nagios/libexec/check_disk $ARG1$ $ARG2$ $ARG3$

Removed the -w, -c, and -p from the command definition and now it works just fine.

Thank you for your time.
Locked