Ad Widget

Collapse

Problem converting ifInOctets to bits (Cisco 1700 Router)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • twiga
    Junior Member
    • Sep 2008
    • 3

    #1

    Problem converting ifInOctets to bits (Cisco 1700 Router)

    Hi There,

    This is my first post, and I would just like to say that Zabbix is _great_ product, far exceeding our expectations.


    I have a little problem that I am busting my brains on: I created some templates for our Cisco routers and switches.

    I would like to convert the ifinOctets to bps, thus I would like to multiply them by 8.

    My template currently looks like this (extract):

    Code:
    .
    .
      <item type="4" key="ifInOctets.2"value_type="3">
        <description>Serial0-IN</description>
        <delay>15</delay>
        <history>7</history>
        <trends>365</trends>
        <units>bps</units>
        <multiplier>8</multiplier>
        <formula>1</formula>
        <delta>1</delta>
        <snmp_community>public</snmp_community>
        <snmp_oid>.1.3.6.1.2.1.2.2.1.10.2</snmp_oid>
        <snmp_port>161</snmp_port>
      <valuemap>bandwidth-event</valuemap>
    .
    .
    Unfortunately this doesnt seem to work as values under "Latest Data" are still coming in as the ifInOctet value and not the value multiplied by 8.

    As can be seen by the green area in the graph, they are still Bps and not bps



    My line is 896 Kbs (max 112KBs). The graph shows the roof at 112 and not 896 thus it's plotting KBps and not Kbps.

    How do I get the value to multiply by 8 ?

    Thanks in advance

    -twiga
  • xs-
    Senior Member
    Zabbix Certified Specialist
    • Dec 2007
    • 393

    #2
    Well erm, first of all, why? It's normal for bandwidth values to be displayed in bits/s instead of bytes/s.
    But if you really want this, edit the item which collects this info and use the multiplier option.

    item->field(Use multiplier)->select(Custom Multiplier)->enter 8->save

    Comment

    • twiga
      Junior Member
      • Sep 2008
      • 3

      #3
      Well erm, first of all, why? It's normal for bandwidth values to be displayed in bits/s instead of bytes/s.
      But if you really want this, edit the item which collects this info and use the multiplier option.
      I think you misunderstood me. The data is by default in BYTES. I want to convert it to BITS, not the other way around.

      I tried the multiplier in the template which didn't work. I can't modify the item directly, since it comes from the template. Thus I need to fix it in the template if it's wrong.

      Any ideas?

      Comment

      • xs-
        Senior Member
        Zabbix Certified Specialist
        • Dec 2007
        • 393

        #4
        Hmm, yeah i must have been sleeping.
        But still, the multiplier in the item configuration should work.
        Which zabbix version are you running?

        Comment

        • twiga
          Junior Member
          • Sep 2008
          • 3

          #5
          Hi xs,

          I am running version 1.4.6, but I think I found my error:

          My template had :

          <multiplier>8</multiplier>
          <formula>1</formula>
          instead of:

          <multiplier>1</multiplier>
          <formula>8</formula>
          Which fixed it, and it seems to be working 100% now!

          thanks

          -twiga

          Comment

          Working...