Ad Widget

Collapse

Can't create triggers on system.run items because of reserved characters (I think).

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aarons
    Junior Member
    • Feb 2007
    • 6

    #1

    Can't create triggers on system.run items because of reserved characters (I think).

    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
  • styx
    Junior Member
    • Jan 2007
    • 7

    #2
    Maybe you could try the work around explained by Heva there:


    Hope this helps

    Comment

    • dagof
      Junior Member
      • Nov 2006
      • 14

      #3
      Workaround: If possible, try to make it a UserParameter on agent side.

      Comment

      Working...