Ad Widget

Collapse

Incorrect trigger expression. You can't use template hosts in mixed expressions.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • marc
    Senior Member
    • Oct 2004
    • 146

    #1

    Incorrect trigger expression. You can't use template hosts in mixed expressions.

    Hi all,

    I made an avscanner control pattern item (nai.ver) getting updated very often via cronjob on zabbix server. Now i want to do 2 things, first check if control pattern differs from patterns installed on mailservers and because mail server aint checking that often for updates, combine the trigger with an expression making sure avscanner on mail system had time to fetch pattern. (cron running any 6h, so 8h in expression should make it. 8*60*60 = 28800

    (({Host.Unix:vfs.file.time[/usr/local/uvscan/datfiles/current,modify].last(0)}+28800)<({Host.Unix:vfs.file.time[/usr/local/uvscan/datfiles/current,modify].now(0)})&({Host.Unix:uvscan.pattern.last(0)}#{zab bix.server:nai.ver.last(0)})

    when i try to add the trigger the following error occurs:

    [ERROR:Cannot update trigger]
    Incorrect trigger expression. You can't use template hosts in mixed expressions.

    what does the error mean and why it is not possible?

    I know there are other ways to get it working, but i have searched the forum and documentation for this error or limitation and dont find anything.

    please explain.

    Regards,
    Marc
  • marc
    Senior Member
    • Oct 2004
    • 146

    #2
    no answer so far :/. still would like to know why this is not possible..

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      This is limitation of the current implementation of the templates. Items from templates cannot be used in complex trigger expressions having also items from "normal" hosts.
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • antani
        Member
        • Apr 2008
        • 50

        #4
        Could I know the status of this feature?
        It would be a cool thing to use making me (and others of course) saving lot of time.

        Comment

        Working...