Page 1 of 1
Check for RO File system
Posted: Wed Apr 17, 2013 9:21 am
by disrael
We had an issue the other day where an issue with our VMs where a couple of servers made the file systems turn read only. This caused some issues. I did a quick google and saw a few options on your site. I am thinking the first one might be the best, though I wanted to get your guys opinion first:
https://www.google.com/search?q=nagios+ ... e&ie=UTF-8
My manager requested that I look into this and he specified the solution shouldn't use root.
-Doron
Re: Check for RO File system
Posted: Wed Apr 17, 2013 9:44 am
by slansing
Hey Doron, I'd recommend searching Exchange next time so you get a clean search result that does not grab random bits of other web pages, etc.. This plugin looks as if it would be a good fit for you:
http://exchange.nagios.org/directory/Pl ... ts/details
How does it look?
Re: Check for RO File system
Posted: Wed Apr 17, 2013 11:59 am
by disrael
I see nothing to specify host name, can this script be executed remotely against a server we are wanting to monitor?
-Doron
Re: Check for RO File system
Posted: Wed Apr 17, 2013 12:19 pm
by sreinhardt
You are correct, this does not seem to allow remote execution within the script itself. However you could run either with check_by_ssh or through a local nrpe client on that server. There may also be a linux snmp oid that can be checked for this information as well.
Re: Check for RO File system
Posted: Wed Apr 17, 2013 2:46 pm
by disrael
Does nrpe require root to be installed or run?
Re: Check for RO File system
Posted: Wed Apr 17, 2013 3:51 pm
by abrist
NRPE requires root for installation. It runs as user nagios, but the plugin may require root.
Just FYI: Most plugins that are checking the disk/filesystem want root access. You could write a custom script that runs mount -l and greps the output for (ro) and returns a string with a proper exit code. This requires that standard users have access to the mount bin.