Ad Widget

Collapse

How to send duration information for a host from dashboard to Grafana

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gadkins
    Junior Member
    • Jul 2018
    • 6

    #1

    How to send duration information for a host from dashboard to Grafana

    I'm hoping this is really simple and I'm just overlooking a macro or something that does it. I'm looking for a way to send the data stored for the Duration column for the Problem dashboard when a host has been in a problem triggered state (in this situation, we're doing simple ping checks for up/down status for hosts) through to Grafana with the plugin by Alexander Zobnin.

    The information that gets sent through to Grafana is populated via the Unavailable by ICMP Ping trigger and macros. The options available in the Grafana plugin seem to be geared around the trigger itself, so I was hoping there was a way to perhaps stick the duration value in the Description section with a macro, or whatever else might carry that information over (like {HOST.NAME}, etc.). The fields it can pull are host name, technical name, host groups, tags, status, severity, and description.

    Basically, when the host problem has cleared and it is in a good green state, we want to keep a dashboard/panel pulled up that shows the recent history and if it could show how long they were in a down state from the duration, that would be super helpful. It may not be possible and we may just have to link a dashboard from Zabbix itself. In the picture I uploaded, it gives a timestamp of when it was resolved, but not how long it was in the state.
    Attached Files
  • royalliege
    Junior Member
    • Dec 2018
    • 6

    #2
    Hello,

    You are using List layout mode for problems panel in Grafana; it doesn't show much in that layout. If you update plugin (version 3.10.0 has Table layout feature), Zabbix problems panel will come with Table mode by default, You may revert back layout to List mode but this Table mode shows much more with history&duration with the (i) column apper at the end of each alarm row.

    In edit mode, go to Options screen to check if you have these:

    Click image for larger version

Name:	options.JPG
Views:	2562
Size:	41.2 KB
ID:	376069

    For more information:

    Attached Files

    Comment

    • gadkins
      Junior Member
      • Jul 2018
      • 6

      #3
      I updated the plugin, and although the table does look more structured, the fields available didn't really change in regards to new ones. "Age" and "Show events All" were already available in the list layout. The Age field still only shows when the host problem was resolved, not for the duration of how long it was in a problem state.

      Comment

      • gadkins
        Junior Member
        • Jul 2018
        • 6

        #4
        I'll post on the Github for the plugin for more assistance as it probably plugin related more so than Zabbix. I was just hoping there was a way to pull that information through using a variable based on the fields that we can select.

        Comment

        Working...