Ad Widget

Collapse

Help with fixing an issue with my template.

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • n0ctem
    Junior Member
    • Jul 2025
    • 8

    #1

    Help with fixing an issue with my template.

    Hello zabbix community,

    I have been working on a template that connects UptimeRobot and Zabbix. For the connection I am using the API provided by the UptimeRobot and in Zabbix I am using JSON to read it. The UptimeRobot API information I am getting from this link. The template code can be found on my github. The templates works perfectly when using zabbix version 7.4.0rc2 (tested on two separate instances), but it refuses to work on 7.2 (tested on two separate instances, one is a fresh install). The templates properly connects and can read the JSON, but when it comes to low-level discovery it gives me the following errors for both the lld's. If anyone has any suggestions how can I make it work on the zabbix 7.2. I have double and triple checked if I have any duplicate keys, I DON'T.

    Click image for larger version

Name:	изображение.png
Views:	56
Size:	208.6 KB
ID:	505658
    Error 1.

    Click image for larger version

Name:	help-with-fixing-an-issue-with-my-template-v0-sof8wb1r52ff1.webp
Views:	140
Size:	27.4 KB
ID:	505655
    Error 2.


    Image of the preprocessing step in the discovery.

    Click image for larger version

Name:	help-with-fixing-an-issue-with-my-template-v0-mv2t3ya981ff1.webp
Views:	56
Size:	3.8 KB
ID:	505656

    Image of the LLD macros in the discovery.
    Click image for larger version

Name:	изображение.png
Views:	57
Size:	27.5 KB
ID:	505659
    Example of an item.

    Click image for larger version

Name:	help-with-fixing-an-issue-with-my-template-v0-866gw7iu81ff1.webp
Views:	58
Size:	5.7 KB
ID:	505657

    P.S. If you want me to implement additional features in the uptime robot monitoring leave your suggestions.
  • Answer selected by n0ctem at 02-08-2025, 16:45.
    n0ctem
    Junior Member
    • Jul 2025
    • 8

    The problem was fixed for Zabbix 7.2 by removing the LLD macros in the discovery rule. The updated code is available on my github.

    Comment

    • Brambo
      Senior Member
      • Jul 2023
      • 245

      #2
      As you say works fine on 7.4 and not on 7.2 and having a quick look at the github template.
      It looks like a new dependant discovery rule is used and that feature is only available in 7.4
      As I don't have a 7.4 running I can't say for certain but this line triggers my assumption: Click image for larger version

Name:	image.png
Views:	55
Size:	8.9 KB
ID:	505743

      Comment

      • n0ctem
        Junior Member
        • Jul 2025
        • 8

        #3
        The problem was fixed for Zabbix 7.2 by removing the LLD macros in the discovery rule. The updated code is available on my github.

        Comment

        Working...