Page 2 of 2

Re: check_ro_mounts not working

Posted: Tue Jun 21, 2016 12:06 am
by sify_nagios
Hi Team,

The plugin works with arguments and without no arguments. Plugin actually designed to scan the fstab and fetch the mount points to check the RO mounts.

However i have defined with arguments in the client side common.cfg and calling the command name from nagios server. So nagios will call the command entered in client side and execute it.

So argument doesn't matter at all.

I wonder why the plugin doesn't return the value to nagios server. Help us out asap.

Rgds
Srini

Re: check_ro_mounts not working

Posted: Tue Jun 21, 2016 1:29 am
by Box293
lmiltchev wrote:Change the following line in sudoers from this:

Code: Select all

nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_ro_mounts
to this:

Code: Select all

nagios ALL=(ALL) NOPASSWD:/usr/local/nagios/libexec/check_ro_mounts *
and test your check from the Nagios XI server:

Code: Select all

./check_nrpe -H <client ip> -c check_ro_mounts
Did you see the desired/expected output?
Did you try this?