In Zabbix version 6, I have created the following:
The Python script checking returns a status code of 200. The following steps are invoked:
Item prototypes are created, but there is no data available.
What is wrong? Help
- Discovery rule: with an update interval of 60 minutes.Code:
discovery.webservice[{$ENV}] - Item prototypes: with an update interval of 15 minutes.Code:
monitor.webservice_status_code[{$ENV},{#SVC}] - Trigger prototypes: Code:
last(/APP-TERRA Web Services/monitor.webservice_status_code[{$ENV},{#SVC}])<>200
The Python script checking returns a status code of 200. The following steps are invoked:
- UserParameter for discovery: Code:
discovery.webservice[*]
- , running the command: Code:
sudo -u dsadm python3 /etc/zabbix/Scripts/zbx_monitor_web_svcs.py -e $1 -o discover[*]
- UserParameter for monitoring output:Code:
monitor.webservice_output[*]
- , running the command: Code:
sudo -u dsadm python3 /etc/zabbix/Scripts/zbx_monitor_web_svcs.py -e $1 -o status -s $2 -t output[*]
- UserParameter for monitoring status code: Code:
monitor.webservice_status_code[*]
- , running the command: (this returns 200)Code:
sudo -u dsadm python3 /etc/zabbix/Scripts/zbx_monitor_web_svcs.py -e $1 -o status -s $2 -t code
Item prototypes are created, but there is no data available.
What is wrong? Help
Comment