Hey,
I need to monitor the amount of space used in a directory, and trigger an action if it exceeds an amount. I created an item as:
system.run[du /u01 --max-depth=0 | awk '{print $1}',wait]
Which works great. I tried creating a trigger as:
{<host>:system.run[du /u01 --max-depth=0 | awk '{print $1}',wait].last(0)}>50
But zabbix tells me:
[ERROR:Cannot add trigger]
Expression [{print $1\}',wait].last(0)}] does not match to [server:key.func(param)]
I assume it's not able to parse the item because I have reserved characters in there - like the {'$ or something. But I'm also pretty new to zabbix so I may be doing something wrong. Any suggestions are appreciated.
Thanks in advance!
Aaron
I need to monitor the amount of space used in a directory, and trigger an action if it exceeds an amount. I created an item as:
system.run[du /u01 --max-depth=0 | awk '{print $1}',wait]
Which works great. I tried creating a trigger as:
{<host>:system.run[du /u01 --max-depth=0 | awk '{print $1}',wait].last(0)}>50
But zabbix tells me:
[ERROR:Cannot add trigger]
Expression [{print $1\}',wait].last(0)}] does not match to [server:key.func(param)]
I assume it's not able to parse the item because I have reserved characters in there - like the {'$ or something. But I'm also pretty new to zabbix so I may be doing something wrong. Any suggestions are appreciated.
Thanks in advance!
Aaron
Comment