DX Infrastructure Management

Tech Tip: UIM - How can I monitor a read-only filesystem on a Linux machine? 

Mar 13, 2017 05:01 PM

Document ID:  TEC1678287
Last Modified Date:  02/28/2017
Show Technical Document Details

Summary:

The customer requirement is, whenever a Filesystem is going into Readonly mode, there should be an alarm triggered from UIM.

 

Currently the cdm probe doesn’t alerts when a Filesystem goes into read only mode.  But even though this is not covered out of the box by any probe you could try using logmon probe.

Environment:
UIM - any version cdm probe logmon probe
Instructions:

Configure the logmon probe to run the mount -l command and then create 'Watcher' rules to parse the data and create alarms when the read-only attribute 'ro' is found.

 

Here is an example...

 

You can run something like this from the logmon script:

 

mount |grep "(ro"|awk -F ' ' '{print $1 " " $6}'

 

$1 will give the disk e.g /dev/sda1 and $6 will give the mount options. so a sample output might look like this:

 

/dev/sdb1 (ro,noatime)
/dev/sda6 (ro,noatime)
/dev/sdc5 (ro,noatime)

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.