Ad Widget

Collapse

Inverse multipliers?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hichhiker
    Member
    • Nov 2004
    • 45

    #1

    Inverse multipliers?

    Is it possible to add inverse multipliers (i.e. divide data before storing instead of multiplying)?

    Using 1.1a10 (in case this was added to alpha11+)

    Thanks

    -HH
  • James Wells
    Senior Member
    • Jun 2005
    • 664

    #2
    Greetings,

    Yes, please add this feature... And if you add divisors, please do not auto calculate a postfix for it. This will make it very nice for things like uptime, which returns in seconds and needs to be divided by 86400 to get days.
    Unofficial Zabbix Developer

    Comment

    • jpawlowski
      Member
      • May 2005
      • 45

      #3
      no problem, just use 0.xxxx as multiplier and you actually have a devision :-)

      Comment

      • Hichhiker
        Member
        • Nov 2004
        • 45

        #4
        Originally posted by jpawlowski
        no problem, just use 0.xxxx as multiplier and you actually have a devision :-)
        That would be nice and is in fact the first thing I looked at, but the multiplier is stored as an integer and I doubt that simply changing the column in the DB will not cause issues elsewhere in code, which expects an integer. I guess I should trace the coded and find where and how multiplier is used :-) I fixed 1.0 release, but that was easy, since multiplier was a power of 2, and I could just add negative numbers to UI. 1.1 UI is a bit different.

        Before I go digging, Anyone know if multiplier value used at all in the zabbix_server binary or is it purely used during presentation by the front end?

        Thanks,

        -HH

        Comment

        • jpawlowski
          Member
          • May 2005
          • 45

          #5
          be aware of the dot in my number so that _is_ an integer :-)
          for example 0.01 if you would like to have 12,58 instead of 1258...
          i use it and it works fine!

          Comment

          • Alexei
            Founder, CEO
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Sep 2004
            • 5654

            #6
            Note that ZABBIX 1.0 does not support custom multipliers.
            Alexei Vladishev
            Creator of Zabbix, Product manager
            New York | Tokyo | Riga
            My Twitter

            Comment

            • Hichhiker
              Member
              • Nov 2004
              • 45

              #7
              Originally posted by jpawlowski
              be aware of the dot in my number so that _is_ an integer :-)
              for example 0.01 if you would like to have 12,58 instead of 1258...
              i use it and it works fine!
              We are obviously working from a different definition of an integer. I always believed an integer to be a "positive or negative number that does not include a fraction or decimal". But if you say it works, I shall give it a try.

              Thanks.

              -HH

              Comment

              • Hichhiker
                Member
                • Nov 2004
                • 45

                #8
                Originally posted by Alexei
                Note that ZABBIX 1.0 does not support custom multipliers.
                Actually, it *sort of* did - if you edit the items form in config php files to include negative powers it will store the value in DB. Not fully custom, but if you want to stick to powers of 2 (well, of 1024 actually), it was very handy to divide as well as to multiply. I am still using this in 1.0 install we have. I want to upgrade to 1.1aplha though, as it looks much nicer, but need to resolve this issue first.

                -HH

                Comment

                Working...