Ad Widget

Collapse

XML result with external script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • efrain02
    Banned
    • Apr 2011
    • 81

    #1

    XML result with external script

    Hi! i want to ask something to see if someone can help me. I have an item that calls to a bash script who uses curl to generate a php respond. But the thing is that the response is in xml. Is something like this:
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <xmlnodo>
    <existe>1</existe>
    <ip>xx.xx.xx.xx</ip>
    </xmlnodo>
    What i need to know is how i make that zabbix reads the result, in this case 1 is up and 0 is down.
    Hope someone could help me with that.
    Thanks in advance
  • trikke
    Senior Member
    • Aug 2007
    • 140

    #2
    Hi,

    your item Type of information should be "TEXT"
    your trigger could be: .....str(<existe>1</existe>)}=1

    Greets
    Patrick

    Comment

    Working...