Ad Widget

Collapse

detecting when a Windows volume disappears

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #1

    detecting when a Windows volume disappears

    We're using Zabbix 2.4.4 on RHEL 6.x Linux server, and Zabbix 2.4.4 agents on our Linux and Windows systems.

    We had an issue this morning where a SAN outage caused various Windows volumes to completely disappear. For example, on one host, the F: volume was mounted from the SAN, and disappeared as part of the outage.

    We're monitoring % used on our Windows volumes, but unfortunately because of this issue:



    the vfs.fs.size[f:,pused] item just goes into an unsupported state when the volume goes away, which makes the trigger go unsupported, so no alerts about the issue.

    The "action on unsupported item" support that was added to Zabbix 2.2 doesn't really work for us, so we're looking for other ways to monitor whether a volume (mount) is present.

    vfs.fs.exists doesn't work with directories, unfortunately, so that won't work. There is no vfs.dir.exists. There is no vfs.mount[] item key.

    Short of creating a "zabbix_test_file.txt" in the root of every Windows volume and then testing for that file using vfs.fs.exists in our templates, is there any way to check for the presence of a directory or mount? Perhaps something with WMI (Windows only, obviously)?

    Any suggestions appreciated!

    Tim
Working...