I have multiple triggers that are tripped when my disk space space drops below 5, 10 or 20 percent.
{Template OS Windows:vfs.fs.size[{#FSNAME},pfree].last(0)}<5
{Template OS Windows:vfs.fs.size[{#FSNAME},pfree].last(0)}<10
{Template OS Windows:vfs.fs.size[{#FSNAME},pfree].last(0)}<20
(I added the triggers into the windows template so as that they will apply to any host with that template)
When these triggers are tripped an action takes place to send me an email notifying me of the disk space problem. I know how to get the percentage of disk space free but how would I go about printing the actual amount of disk space free in MB out in the email being sent to me?
So far I have tried setting this as the comment in the trigger and printing out the comment:
{Template OS Windows:vfs.fs.size[{#FSNAME},free]} Mb Free
{{HOST.NAME}:vfs.fs.size[{#FSNAME},free]} Mb Free
And these simply from the action message:
{Template OS Windowsvfs.fs.size[{#FSNAME},free]}
{zabbix.zabbix.com:vfs.fs.size[{#FSNAME},free]}
{{HOST.NAME}:vfs.fs.size[{#FSNAME},free]}
I have tried a few other ways that I cannot think of now but none of them have worked for me yet.