check_ro_mounts not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sify_nagios
Posts: 54
Joined: Thu Aug 20, 2015 8:01 am

Re: check_ro_mounts not working

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: check_ro_mounts not working

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked