Ad Widget

Collapse

How to send custom data: actual_value + top_value and graph this

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KZKGˆGaara
    Junior Member
    • Sep 2023
    • 2

    #1

    How to send custom data: actual_value + top_value and graph this

    Hi guys... I need some help here please...

    Using zabbix-sender I can send custom data to my Zabbix Server:

    Code:
    zabbix-sender -z 192.168.0.5 -s myserver -k ram.hana -o "58.27, 124"
    Being:
    • 58.27 = Actual RAM consumed by X app in GB
    • 124 = Top RAM allowed to be consumed (allocation limit) in GB

    I'm planing to schedule this with cron and send this data every 1 min.

    In Zabbix I created a trapped item to receive this data... but now, my question is: There is any way to show this data in graph?

    I mean, I need to see in a graph the actual_value that's gonna be always different, and the top_value (124) that's not gonna change, because it's fixed.

    There's any way to do this? If I have to explain this any way better that's ok.

    I really appreciate any help

    Thanks.

    PS: Sorry for my english, it's not my primary language.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Currently you are sending 2 values to single item and that's not really OK, if you do not have any dependent items, which take your main item, preprocess data and split it up to different items... If you do that, you would have 2 items and you could graph it as you wish...

    Comment

    • KZKGˆGaara
      Junior Member
      • Sep 2023
      • 2

      #3
      Ok so... if I need to do something like this, or have this kind of graph:



      First I have to create two trapper items (ram.now and ram.max ?), after that send two values with zabbix-sender but not in one line:

      Code:
      zabbix-sender -z 192.168.0.5 -s myserver -k ram.now -o "58.27"
      zabbix-sender -z 192.168.0.5 -s myserver -k ram.max -o "124"
      And then what? ... I'm sorry but I don't fully understand.​

      Comment

      • PeterZielony
        Senior Member
        • Nov 2022
        • 146

        #4
        Originally posted by KZKGˆGaara
        Ok so... if I need to do something like this, or have this kind of graph:



        First I have to create two trapper items (ram.now and ram.max ?), after that send two values with zabbix-sender but not in one line:

        Code:
        zabbix-sender -z 192.168.0.5 -s myserver -k ram.now -o "58.27"
        zabbix-sender -z 192.168.0.5 -s myserver -k ram.max -o "124"
        And then what? ... I'm sorry but I don't fully understand.​
        Yes, correct. You need to send 2 values separately to different trappers

        Then if your trapper type information is not text but numeric you can go to latest data, and look for your items - it will be represented as graph.

        If you want to have it on dashboard then you need to create graph

        Hiring in the UK? Drop a message

        Comment

        Working...