Ad Widget

Collapse

Monitor Log in XML format

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dmalchikov
    Junior Member
    • Sep 2018
    • 15

    #1

    Monitor Log in XML format

    Hi there!
    Spending few days on task but can't find correct solution...
    I have log file in following format:
    <Monitoring Timestamp="2018.09.11 11:36:01" Node="MIRROR-1">
    <NODES>
    <NODE Name="MIRROR-1" Account="bf19">
    </NODE>
    <NODE Name="MIRROR-2" Account="09aa">
    </NODE>
    </NODES>
    <ERRORS>
    <ERROR Category="Node" Name="MIRROR-1">Alive missed since 2018.09.07 15:07:40</ERROR>
    <ERROR Category="Node" Name="MIRROR-1">Node has errors in operation queues</ERROR>
    <ERROR Category="Node" Name="MIRROR-2">Node has errors in operation queues</ERROR>
    </ERRORS>
    </Monitoring>

    I need to look for <ERRORS> data and create alert on it.

    So, I've made Active Agent Item with key log[log location] and Information Type=text
    Also preprocessing XML Path = //ERRORS/* (tried different)
    No data receiving... (zabbix 4.0)

    Any suggestion?

Working...