Ad Widget

Collapse

How to modify existing Widget?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ZaBlitz
    Junior Member
    • May 2025
    • 5

    #1

    How to modify existing Widget?

    Good morning. Right now, I'm working with Zabbix 7.0.13, and I'm currently monitoring a couple of hosts, more specificaly their disks (% of space used). To do that, I'm using the honeycomb widget, but since I'm monitoring alot of hosts that have alot of disks, it gets a little clustered. I would like for it to only show the values once they reach 70% capacity. Is there a way to do this by modifying the honeycomb widget? I was working with Grafana but I ran into some "problems" so I went back to Zabbix and I found the honeycomb widget pretty "lackluster" when it comes to this issue. If someone can help me andhas any suggestion, please don't hesitate.
  • troffasky
    Senior Member
    • Jul 2008
    • 565

    #2
    Top N Hosts widget might be more useful for this, but it will not be in honeycomb shape.

    Comment


    • ZaBlitz
      ZaBlitz commented
      Editing a comment
      Hello there, thank you for your attention. I already tried with that widget, but I did not get what I was looking for, as I have a variety of hosts, and in each one of them, the disks all have different names, so it wouldn't be feasible. I believe that the ideal widget would contain the capabilities that I specified in the original post. I'm sure it's not that hard to modify the honeycomb widget in such a way, but I would appreciate some input from the community.
  • ZaBlitz
    Junior Member
    • May 2025
    • 5

    #3
    UPDATE: I managed to get what I was looking for. I pretty much just had to edit the WidgetView PHP file inside the actions directory, more specifically the getCells method so I can filter the values that get displayed

    Comment

    • troffasky
      Senior Member
      • Jul 2008
      • 565

      #4
      There is provision for third-party widgets, eg https://github.com/Monzphere/Echarts-Zabbix so you might be able to clone an existing widget and install your copy as another widget type, so your changes aren't lost on an update of Zabbix.

      Comment


      • ZaBlitz
        ZaBlitz commented
        Editing a comment
        Wow, that is actually pretty impresive and pretty close to what I was looking for. I've been tinkering with it and I only have 1 problem. When it comes for example, to CPU utilization, since I have multiple servers that I'm monitoring, if I want to display the values in a horizontal chart, I only get the name of the item (CPU Utilization) and not the name of the host and that makes it impossible for me to monitor which server is showing a certain value related to the metric at the time. I already tried with different macros but none seem to work. Is it something I'm missing or is it like this by default?
    Working...