CHK_MOUNTS

Author Allan Cano
Compatibility Xymon 4.3
Requirements Perl, Linux/AIX, ksh
Download Google Share
Last Update 2015-02-26

Are all the filesystems which are set to mount a boot mounted?
Are all the mounted filesystems recorded in /etc/fstab or /etc/filesystems?

Client side

  1. Copy the script and functions.sh into the client ext directory.
  2. The template.sh file is a client side starting point for future monitors.
  3. 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

There's a link to the extension at the top of the page!

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/' ...

Nothing

-

  • 2015-02-26
    • Initial release
  • monitors/chk_mounts.txt
  • Last modified: 2015/02/26 14:42
  • by aecano