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

Directory Tree

check_ro_mounts

Rating
3 votes
Favoured:
2
Hits
168509
Files:
FileDescription
check_ro_mountscheck_ro_mounts plugin
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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
1 of 1 people found this review helpful
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.