Hi,
I am new with Zabbix 4.0. I need to monitor an application that provides a homemade script. It returns the status and the message in JSON format.
Example:
{
"status": "Warning",
"message": "Foo cannot do such thing because bar is not aligned with the stars",
}
or
{
"status": "Nothing",
"message": "Everything is good",
}
Base on this JSON, I want to generate a Problem that displays the field "message".
With a good regex of the status field, the triggering of the alert can be done but I don't know how to get the field message to be display on the board of Problems.
Any suggestions? Thanks!
I am new with Zabbix 4.0. I need to monitor an application that provides a homemade script. It returns the status and the message in JSON format.
Example:
{
"status": "Warning",
"message": "Foo cannot do such thing because bar is not aligned with the stars",
}
or
{
"status": "Nothing",
"message": "Everything is good",
}
Base on this JSON, I want to generate a Problem that displays the field "message".
With a good regex of the status field, the triggering of the alert can be done but I don't know how to get the field message to be display on the board of Problems.
Any suggestions? Thanks!
Comment