2

I want to use Zabbix to make a Restful GET call periodically and check a return value.

For example I have a URL like https://mysite/api/performCheck. This endpoint returns JSON data that would look something like this:

{ "status": 0 }

If the status is 0 it indicates the site is performing as expected while none zero values would indicate an error code.

I would like Zabbix to make this restful call every 5 minutes and check that the value of "status" is 0. If the value is not zero I want Zabbix to send an alert.

How do I configure the Zabbix server with this type of robotic job?

1 Answer 1

3

Based on your example, you can simply setup a web scenario, that will search for the string "status : 0". Then you define your trigger, if pattern found, all is ok, else error.

Sign up to request clarification or add additional context in comments.

2 Comments

The trigger would have to check for non-0 value in the failed step item.
Hi, there is, then, a way to have a portion of the json response in the Trigger's name defined in Zabbix?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.