Ad Widget

Collapse

problem to create text item and display it (graph)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yogi
    Junior Member
    • Mar 2016
    • 26

    #1

    problem to create text item and display it (graph)

    Hi,
    I am trying to write a custom item that return text ( like: bash docker service ls | grep "service" | awk '{print $2}' and it retrun service name).
    now i am trying to display this item in my graph, but getting an erorr:
    cannt create graph for a non numeric type.
    Do you know how can i do it?
    Thanks!
  • 20k
    Junior Member
    • Apr 2017
    • 18

    #2
    What kind of graph do you have in mind for this text item?
    I can't see how it could make any sense.

    Comment

    • ovas
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Apr 2017
      • 138

      #3
      Hello!

      As it says, you can only build graphs for numeric values. You can try mapping the item values to cipher ones and build graph on top of them. This will force you to remember what every number means, though.

      Comment

      • yogi
        Junior Member
        • Mar 2016
        • 26

        #4
        Thank you.

        Comment

        Working...