Ad Widget

Collapse

Combining multiple items in one plain text widget

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GrandAdmiralThrawn
    Junior Member
    • Feb 2020
    • 4

    #1

    Combining multiple items in one plain text widget

    Hello,

    I'm a first time user of Zabbix with next to zero experience. I have just set it up to monitor a single host (so far). Version is 4.4.5. Today, I tried to add two items into one text widget, but this somehow doesn't seem to work. Currently, I use them separately, one widget for one item. Like this:

    Click image for larger version  Name:	plain-text-widget-2items-separate.png Views:	4 Size:	5.5 KB ID:	395983

    As you can see, they're displaying the name of the system's host processor and the system's uptime. Both items/widgets are showing data properly. The uptime is provided by the Zabbix agent and is an unsigned numeric value. The CPU descriptor is provided by an external check I wrote (just
    Code:
    /sbin/sysctl -n hw.model
    on FreeBSD UNIX), and is of the text data type. I'd like to combine them to use up less screen space, and I thought it would work like this:

    Click image for larger version  Name:	plain-text-widget-2items.png Views:	3 Size:	8.5 KB ID:	395984

    But that does not seem to work; I couldn't get the widget to display both items (one per line), no matter what I tried, it would just show one of them, and repeat its output:

    Click image for larger version  Name:	plain-text-widget-2items-2.png Views:	3 Size:	3.1 KB ID:	395985

    I switched the Items location to "Top" and made the widget much larger. In that view, the "System descriptor" column was just empty. Can I not combine items of different data types into one plain text widget? Or am I doing something else wrong here?

    Your help would be appreciated!

    Thanks.
    Last edited by GrandAdmiralThrawn; 20-02-2020, 14:08.
  • tcweb
    Member
    • Jun 2024
    • 35

    #2
    Did you ever find a solution for this? I have the same question.

    Comment

    • solution
      Senior Member
      • Jun 2020
      • 269

      #3
      Use the widget Top Hosts

      zabbix . com /documentation/6.4/en/manual/web_interface/frontend_sections/dashboards/widgets/top_hosts

      Wellington

      Comment

      • tcweb
        Member
        • Jun 2024
        • 35

        #4
        Indeed, the Top Hosts widget will do what I need. Thank you.

        Comment

        Working...