Ad Widget

Collapse

syntax problem with system.run[] Trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mardux
    Junior Member
    • May 2007
    • 9

    #1

    syntax problem with system.run[] Trigger

    hi to all.

    Now i'm a problem with the syntax of a system.run trigger

    this is the parameter:

    system.run[ps -ef|grep esafe|grep -v zabbix|wc -l]

    the result of the command is 3.

    and this is the trigger:

    {ESAFE:system.run[ps -ef|grep esafe|grep -v zabbix|wc -l].last(0)}#3
    but the answer of zabbix is:

    Expression [{ESAFE:system.run[ps -ef|grep esafe|grep -v zabbix|wc -l].last(0)}] does not match to [server:key.func(param)]

    can i resolve without upgrade?

    now i working with the 1.1.6 release

    tnks
  • James Wells
    Senior Member
    • Jun 2005
    • 664

    #2
    Greetings,

    Right off the bat, it looks like you are failing because of the item key length. Using un-modified Zabbix 1.1.x, you are limited to 40 characters in the item key length.
    Unofficial Zabbix Developer

    Comment

    • mardux
      Junior Member
      • May 2007
      • 9

      #3
      hello to all.

      I have upgrade zabbix to version 1.3.8, but the problem remains:

      Expression [{ESAFE:system.run[ps -ef|grep esafe|grep -v zabbix|wc -l].last(0)}] does not match to [server:key.func(param)]


      the character | is supported in the trigger?


      thanks to all

      Comment

      • tronite
        Senior Member
        • Jun 2007
        • 147

        #4
        Originally posted by mardux
        hello to all.

        I have upgrade zabbix to version 1.3.8, but the problem remains:

        Expression [{ESAFE:system.run[ps -ef|grep esafe|grep -v zabbix|wc -l].last(0)}] does not match to [server:key.func(param)]


        the character | is supported in the trigger?


        thanks to all
        Are you having the same problems in version 1.4?

        Comment

        • mardux
          Junior Member
          • May 2007
          • 9

          #5
          thanks for the answer.

          I have resolved the problem in this way:

          ESAFEroc.num[,,,/opt/eSafe/].last(0)<72

          bye

          Comment

          Working...