====== CHK_MOUNTS ====== ^ Author | [[ aecano@gmail.com | Allan Cano ]] | ^ Compatibility | Xymon 4.3 | ^ Requirements | Perl, Linux/AIX, ksh | ^ Download | [[https://drive.google.com/folderview?id=0B-0jQG8vyqaTfjQ3ZldOMDRLQlVQU3dDbzJLNEl6Y2RRbVBuekJKRERnWm93aW5MTWFCZ3M&usp=sharing| Google Share]] | ^ Last Update | 2015-02-26 | ===== Description ===== Are all the filesystems which are set to mount a boot mounted? \\ Are all the mounted filesystems recorded in /etc/fstab or /etc/filesystems? ===== Installation ===== === Client side === - Copy the script and functions.sh into the client ext directory. - The template.sh file is a client side starting point for future monitors. - You can simply run chk_mounts.sh and if the hostname is in the servers file the script will update the clientlaunch.cfg file with the following: # The oracle client task [nounts] ENVFILE /home/xymon/etc/xymonclient.cfg CMD /home/xymon/ext/chk_mounts.sh LOGFILE /home/xymon/logs/chk_mounts.log INTERVAL 30m === Server side === None ===== Source ===== There's a link to the extension at the top of the page! ===== Known Bugs and Issues ===== None with this; however, in the default DF monitor for AIX I would recommend the following update to the xymonclient-aix.sh file. Find the df command and replace with... # The awk stuff is to make sure we don't get hung on NFS mount by only looking at local (jfs(2)?) file systems # The sed stuff is to make sure lines are not split into two. df -Im `/usr/sbin/lsfs -c | /usr/bin/awk -F: '{if( $3 ~ /jfs/ ){print $1}}'` | sed -e 's/ blocks/_blocks/' ... ===== To Do ===== Nothing ===== Credits ===== - ===== Changelog ===== * **2015-02-26** * Initial release