Ad Widget

Collapse

Zabbix[3.4] Trigger Function regexp() is not working as expected

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MD. ABBAS ALI
    Junior Member
    • Dec 2017
    • 6

    #1

    Zabbix[3.4] Trigger Function regexp() is not working as expected

    I have a logrt() ITEM as "logrt["{$LOG_PATH}/PLM_Integartion_Status.xml","PDMS data to COMOS",,100]" which is collecting data properly.

    ITEM Collected Data:
    ================
    <Cell Name="PDMS data to COMOS">EquipmentID not found from XML
    <Cell Name="PDMS data to COMOS">No reply from PDMS
    <Cell Name="PDMS data to COMOS">OK -XML Generated
    ================

    I have configured 3 Triggers on that logrt() ITEM.

    1. {HOST:logrt[].regexp(not found from XML)}>0
    2. {HOST:logrt[].str("PDMS")}>0
    3. {HOST:logrt[].str("XML")}>0
    Trigger no 2 & 3 are working fine.

    Trigger no 1 is not generating any Alert. when I modified the trigger 1 as
    1. {HOST:ITEM[].regexp(Generated)}>0
    Then its working. But I need to generate Alert for "regexp(EquipmentID not found from XML)"
    How can I do this any help ?

    I'm using Zabbix-server version=3.4.3 & Agent version=3.4.3
    Last edited by MD. ABBAS ALI; 15-01-2018, 16:21.
  • chew.young
    Junior Member
    • Oct 2018
    • 6

    #2
    Hi, did you find out answer for you question? I ran into similar problem, but opposite of your. regexp() function always return 1 (match).

    Comment

    Working...