Linux

check_ro_mounts

Description:

Checks the mount table for read-only mounts – these are usually a sign of trouble (broken filesystem etc.)

Current Version

Last Release Date

June 17, 2009

Compatible With


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!
Project Files
Project Notes
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) Add a Review
NRPE: Unable to read output
by sriniprog, June 30, 2016
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
Helpful? Yes  No 
don't forget lib64
by cdhouch, December 31, 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.
1 of 1 found this review helpful.
Helpful? Yes 1 No 0
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4.3 (3)
Favorites
2
Views
168,446