Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

check_ro_mounts

Rating
2 votes
Favoured:
1
Hits
157891
Files:
FileDescription
check_ro_mountscheck_ro_mounts plugin
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Checks the mount table for read-only mounts - these are usually a sign of trouble (broken filesystem etc.)
Example usage:

$ check_ro_mounts -X nfs -X romfs -x '/media/*' -x '/mnt/*'
RO_MOUNTS OK: No ro mounts found

$ check_ro_mounts --help
check_ro_mounts 0.1
Copyright (c) 2008 Valentin Vidic

This plugin checks the mount table for read-only mounts.


Usage:
check_ro_mounts -m mtab -p path -x path -X type

Options:
-h, --help

Print detailed help screen

-m, --mtab=FILE

Use this mtab instead (default is /proc/mounts)

-p, --path=PATH, --partition=PARTITION

Glob pattern of path or partition to check (may be repeated)

-x, --exclude=PATH

Glob pattern of path or partition to ignore (only works if -p unspecified)

-X, --exclude-type=TYPE

Ignore all filesystems of indicated type (may be repeated)

Reviews (2)
Hi Team,

Locally the script working like Charm ! Kudos.

BUT.. when i called it from nagios it returns NRPE: Unable to read output. Here is the list what i have performed.

1) SCP the file into libexec path.
2) Provided permission to execute.
3) Inserted the command in common.cfg

Executing following command from nagios server.

/usr/local/nagios/libexec/check_nrpe -H IPADDRESS -c check_ro_mounts
NRPE: Unable to read output

What i am doing wrong. Even i tried to provide nagios user permission to check_ro_mounts also entered the command in sudoers. No luck.

Kindly help me out.

Thanks in advance.
Srini
bycdhouch, December 16, 2010
So far so good, pushed this out to our servers today. I had to modify /usr/lib to look at /usr/lib64 however. Should be a quick revision to this if there's a new version sometime.