Situation #1 : Detect "Stale" remote FS
Situation #2 : Remount Situation
Case statement
An ITM6 Unix (UX) or Linux (LZ) agent detects that its remote filesystems are unavailable, a "stale" connection.
Automate an action to remount it if possible
Methodology
Two (2) ITM situations are created where
- detects the mount point has become stale
- the other is triggered by the "correlated situation" condition of #1 being tr
Situation #1 : Detect "Stale" remote FS
Simple enough - if "Space Available" fails collection, there is an issue
Situation #2 : Remount Situation
Formula Conditions
Use the "Situation Comparison" for a condition against the situation above
Take Action
Note: the lines are strung together on one line in the Take Action field, to make it more legible here, newlines are after the semicolons
f="&{Linux_Disk.Mount_Point}" ;
u=`umount -f $f 2>&1 && echo $f`;
m=`mount $f 2>&1 && echo $f`;
echo -e "umount: $u\nmount:$m" | mail -s "ITM ACTION: Remount $f" junkmail@JdsMedia.net
