Ad Widget

Collapse

No results in Last value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Danio9004
    Junior Member
    • Sep 2023
    • 13

    #1

    No results in Last value

    In Zabbix version 6, I have created the following:
    • Discovery rule:
      Code:
      discovery.webservice[{$ENV}]
      with an update interval of 60 minutes.
    • Item prototypes:
      Code:
      monitor.webservice_status_code[{$ENV},{#SVC}]
      with an update interval of 15 minutes.
    • 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:
    1. UserParameter for discovery:
      Code:
      discovery.webservice[*]
    2. , running the command:
      Code:
      sudo -u dsadm python3 /etc/zabbix/Scripts/zbx_monitor_web_svcs.py -e $1 -o discover[*]
    3. UserParameter for monitoring output:
      Code:
       monitor.webservice_output[*]
    4. , running the command:
      Code:
      sudo -u dsadm python3 /etc/zabbix/Scripts/zbx_monitor_web_svcs.py -e $1 -o status -s $2 -t output[*]
    5. UserParameter for monitoring status code:
      Code:
      monitor.webservice_status_code[*]
    6. , running the command:
      Code:
      sudo -u dsadm python3 /etc/zabbix/Scripts/zbx_monitor_web_svcs.py -e $1 -o status -s $2 -t code
      (this returns 200)

    Item prototypes are created, but there is no data available.

    Click image for larger version

Name:	image.png
Views:	368
Size:	3.4 KB
ID:	477692
    ​What is wrong? Help
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Is something returned if try with "zabbix_get" or "zabbix_agent -t" ?

    Comment

    • Danio9004
      Junior Member
      • Sep 2023
      • 13

      #3
      Unfortunately, I don't have the ability to do this.
      However, for another service that uses the same trigger and item returns the data correctly.​

      Click image for larger version

Name:	image.png
Views:	272
Size:	7.2 KB
ID:	477757

      On the server, the python script returns a status of 200 for this Client_F5.​

      Comment

      Working...