Ad Widget

Collapse

Zabbix 3.4 Web Scenario with XML String

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lpossamai
    Senior Member
    • Jun 2018
    • 119

    #1

    Zabbix 3.4 Web Scenario with XML String

    Hi all,

    I need to monitor an internal API that returns XML Strings.

    To run it with curl, I do the following:
    Code:
    curl --cert /usr/share/zabbix/ssl/certs/cert_prod.pem --key /usr/share/zabbix/ssl/keys/key_prod.key -s https://api.example.com/Ping/1.1
    The output looks like:
    Code:
    <?xml version="1.0" encoding="UTF-8"?><ping><service name="FBcheckOnline" status="down"/><service name="APICheckOn" status="up"/></ping>
    I would like to create a Web Monitor scenario that monitors a specific service. I want it to always checks if "APICheckOn" has a status="up". So then later on I can create triggers if a service goes down. How to do that using the Web Scenario tool? Creating a step and addting the required string to be like:
    Code:
    "APICheckOn" status="up"
    ? Would that be enough? Thanks in advance.
  • kernbug
    Senior Member
    • Feb 2013
    • 330

    #2
    Originally posted by lpossamai
    Hi all,

    Would that be enough? Thanks in advance.
    Looks like "Yes" from the documentation https://www.zabbix.com/documentation...web_monitoring

    Comment

    Working...