Ad Widget

Collapse

Escape characters in Triggers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sapsys
    Junior Member
    • Aug 2006
    • 2

    #1

    Escape characters in Triggers

    I'm setting up SLA monitoring of an SAP system running on MS-Windows.

    One of the SLA parameters is if the SAP system is running or not (number of SAP work processes).

    The SAP workprocesses are named disp+work.exe (terrible name for a process, but who am I to tell SAP this)

    this is done by the item proc.num[disp+work.exe]

    However when I try to create a trigger on this (acctual servername removed , smily unintentional)
    {servernameroc.num[disp+work.exe].last(0)}<2
    I get an errormessage saying the expression does not match to
    [server:key.func(param)]

    I suspect this is caused by the pluss sign in the process name. Is there any way to escape the character, or does anyone have other solutions for creating this type of trigger ??
  • dantheman
    Senior Member
    • May 2006
    • 209

    #2
    I don't know if this would work or not, but what if you were to enter it into zabbix without the plus sign, then go into the database and add the plus sign back in manually?.... be ready to switch it back in case it causes problems...

    Comment

    • sapsys
      Junior Member
      • Aug 2006
      • 2

      #3
      Hello, and thank you for your reply.

      In order for this to work I had to change the item from
      proc.num[disp+work.exe] to proc.num[dispwork.exe]

      Then I create the trigger
      {Windows_troc.num[dispwork.exe].last(0)}<4

      which then is ok.

      On the database level i then had to do
      update items set key_ = 'proc.num[disp+work.exe]' where key_ = 'proc.num[dispwork.exe]';

      Only the items key_ seems to need the change since the trigger only has a reference value pointing to the item.

      This seems to work for now. All my SAP system are up and running, and I will not have any confirmation on this trigger until a SAP system is shutdown.

      But thank you for the suggestion. I would not have thought of that one on my own.

      Comment

      Working...