So we just spun up VMan and there are a bunch of alerts for Guest Storage Space Utilization. What I would like to do is make a Widget for this that lists these VMs and the percent free with the volume - like how you see it when you actually click on the link. Is this possible to do? I can't seem to figure out how to get this done.
Any help would be much appreciated.
you can sort list of VMs by any attribute you can find in Attritube list ("Edit widget" -> "Query" tab, "Pick sort field..." menu):
The most similar attributes are vm.volSummary.freeSpacePercentage (average free space across all disks) or vm.vol.freeSpacePercentage (free space of all disk volumes). It's not possible to show just free space of particular disk volumes in the widget.
2) Excluding particular drives
in alerts you can skip particular disk drives (unable to do that in widgets). Such issue was already discussed at Re: Skip certain volume label or drive letter in the Guest Storage Space Utilization script or Re: Re: How can I exclude a volume from alerting about low disk space? Thwack threads.
If you need to exclude particular disks on particular virtual machines then you can use something like that (this xPath excludes C:\ mount point on "tex-2k8-2LUNS" virtual machine and /boot mount point on "Analytics VM" virtual machine):
then min(/virtualMachine/diskVolume[mountPoint != "C:\"]/freeSpacePercentage)
else if (/virtualMachine[name="Analytics VM"])
then min(/virtualMachine/diskVolume[mountPoint != "/boot"]/freeSpacePercentage)
Let me know if you have any other questions.
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 150,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process. Learn more today by joining now.