Ad Widget

Collapse

Display just the mapped value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • markfree
    Senior Member
    • Apr 2019
    • 868

    #1

    Display just the mapped value

    Whenever a value is displayed on a widget, the mapped value and the value itself are displayed.
    Example:
    Click image for larger version

Name:	image.png
Views:	595
Size:	11.3 KB
ID:	471694

    Is there a way to display just the mapped value without the value in the parenthesis?​
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #2
    Unfortunately, it's not currently possible. Please create a change request, shouldn't be hard to implement.

    Comment

    • markfree
      Senior Member
      • Apr 2019
      • 868

      #3
      Yeah, I didn't think so.
      Maybe someone has a plugin?

      Anyway, I've created feature request ZBXNEXT-8742.
      If anyone else wants this option for item widgets, please upvote it.

      Comment

      • Lefey
        Junior Member
        • Mar 2023
        • 1

        #4
        Originally posted by markfree
        Yeah, I didn't think so.
        Maybe someone has a plugin?

        Anyway, I've created feature request ZBXNEXT-8742.
        If anyone else wants this option for item widgets, please upvote it.
        Code:
        sed -i "s/'value' => \$mapped_value.' ('.\$display_value.')',/'value' => \$mapped_value,/" /usr/share/zabbix/include/items.inc.php

        Comment

        Working...