Ad Widget

Collapse

graph with both positive and negative values

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • patpro
    Junior Member
    • Jan 2007
    • 1

    #1

    graph with both positive and negative values

    Hello,

    I want to graph network traffic this way :
    - output in green, positive numbers
    - input in red, negative numbers

    So the result would look a little bit like this: http://ei.kefro.st/projects/rrdtool/traffic.png

    I've tweaked input item so that it will feed negative data into the DB (added a -1 "Custom multiplier"), but the graph will only draw positive data (output in my case).
    What's wrong ?
  • dan.searle
    Junior Member
    • Mar 2007
    • 13

    #2
    Negative values woe

    Hi,

    I'm trying to fix zabbix 1.1.6 to support negative float values as well as positive, can anyone point me in the right direction? I guess I'll have to fix the zabbix server so that it parses negative numbers correctly and stores them in the database items table correctly.

    This is a serious problem for me, and by the looks of it a lot of other people. Surely there's an easy fix for this? Surely negative float's and graphing them are not that hard!!!

    Dan...

    Comment

    • just4fun
      Member
      • Jun 2010
      • 32

      #3
      Hello all,

      it's a very old topic, but.... does anyone have a solution for this?

      thanks a lot,
      christian

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        maybe you could do that by storing one value with multiplier -1 in zabbix d, but that would break other things like triggers and latest data display.
        i'd suggest searching on the zabbix tracker, and, if no issues like that are found, filing a new feature request
        Zabbix 3.0 Network Monitoring book

        Comment

        • just4fun
          Member
          • Jun 2010
          • 32

          #5
          thank's for your answer!

          I've alredy tried this but failed... I tried either "unsigned" (which should fail)
          and "float" (which should, IMHO, store data signed) but anytime data is stored
          as unsigned... can this be related to the fact that I've defined my data
          (network traffic on a cicso-switch port) as "delta (speed per second)" ?

          christian

          Comment

          • richlv
            Senior Member
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Oct 2005
            • 3112

            #6
            how exactly did you try it ? did you also try a multiplier of -1 ?
            Zabbix 3.0 Network Monitoring book

            Comment

            • just4fun
              Member
              • Jun 2010
              • 32

              #7
              sure, that was the first i tried (before playing around with data types

              Comment

              • Zaniwoop
                Senior Member
                • Jan 2010
                • 232

                #8
                I have played around with this and gotten it to work. although I can't find the example. I couldn't get it to work on 1.6.x but did on 1.8

                I used it to graph in/out traffic, with IN being + and OUT being -

                I used a type numeric(float) and used a multiplier of -1.

                Comment

                Working...