Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Jun 17, 2019 11:49 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: Need help with simple data formatting
PostPosted: Fri Mar 30, 2018 12:04 pm 
Offline

Joined: Fri Mar 30, 2018 11:56 am
Posts: 8
Hi,

I am using CACTI (latest version) and I am connecting to a Nutanix box using SNMP v3.

When fetching data, the graphs shows 600mb/s of network bandwitdh which does not make sense. I can't figure out what I am missing.

I took a few screenshots with the issue.

Image

Image
Image

Image

And this is the raw data :

Image

This is my data query XML :

Code:
<interface>
   <oid_index>.1.3.6.1.4.1.41263.10.1.1</oid_index>
   <index_order>nutanixVmID</index_order>
   <index_order_type>numeric</index_order_type>

   <fields>
      <nutanixVmID>
         <name>ID</name>
         <method>walk</method>
         <source>value</source>
         <direction>input</direction>
         <oid>.1.3.6.1.4.1.41263.10.1.1</oid>
      </nutanixVmID>
      <nutanixVmName>
         <name>VM Name (Hex)</name>
         <method>walk</method>
         <source>value</source>
         <direction>input</direction>
         <oid>.1.3.6.1.4.1.41263.10.1.3</oid>
      </nutanixVmName>
      <nutanixVmNetRx>
         <name>Bytes In</name>
         <method>walk</method>
         <source>value</source>
         <direction>output</direction>
         <oid>.1.3.6.1.4.1.41263.10.1.14</oid>
      </nutanixVmNetRx>
      <nutanixVmNetTx>
         <name>Bytes Out</name>
         <method>walk</method>
         <source>value</source>
         <direction>output</direction>
         <oid>.1.3.6.1.4.1.41263.10.1.15</oid>
      </nutanixVmNetTx>
   </fields>
</interface>


Top
 Profile  
 
 Post subject: Re: Need help with simple data formatting
PostPosted: Fri Mar 30, 2018 12:54 pm 
Offline
Cacti User
User avatar

Joined: Fri Feb 10, 2017 2:45 pm
Posts: 238
Location: Long Island, New York, USA
What type of numbers should you be seeing? If off by a factor of 8, perhaps it's megabytes instead of megabits you're looking for.

_________________
See the Cacti 1.x templates I use at: http://www.camerabob.com/cacti

Live: Cacti 1.2.3 @ CentOS 7-6.1810.2.el7 & PHP 5.4.16-46.e17
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Test: Cacti 1.2.3 @ CentOS 7-6.1810.2.el7 & PHP 5.4.45-17.e17.remi
Maint @ 1.2
Monitor @ 2.3.4
Thold @ 1.0.4


Top
 Profile  
 
 Post subject: Re: Need help with simple data formatting
PostPosted: Fri Mar 30, 2018 1:03 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2499
I would agree with that. Does the graph use a CDEF or the raw value?

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Need help with simple data formatting
PostPosted: Fri Mar 30, 2018 2:29 pm 
Offline

Joined: Fri Mar 30, 2018 11:56 am
Posts: 8
Hi, thanks for the reply.

Since I had no idea how to build the graph I used the premade graph for network bandwith so it came with the CDEF "Convert Bytes to Bits"

Image

Image


Top
 Profile  
 
 Post subject: Re: Need help with simple data formatting
PostPosted: Fri Mar 30, 2018 2:43 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2499
Right, so your values are being mutliplied by 8 because of that CDEF. Most lines are quoted in megabits, but people tend to think of transmitting megabytes which can lead to the confusion. If your values are already megabits, then you don't need the CDEF, or if you want to show megabytes rather than megabits, the same applies.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Need help with simple data formatting
PostPosted: Fri Mar 30, 2018 3:03 pm 
Offline

Joined: Fri Mar 30, 2018 11:56 am
Posts: 8
Allright so I removed the CDEF function and I synced my graphs. This is what I have now :

Image

It still is way too high. The VM is dormant and there is almost no network activity.

I have just tought of something : Since Cacti pools the SNMP query every 30 seconds, do I have to divide the results by 30 ?

For example : right now using iReasoning MIB Browser, I'm seeing that the values for the vmRxBytes is 9760 which is roughly 78 Kb/s. I don't understand why I see high results like this.


Top
 Profile  
 
 Post subject: Re: Need help with simple data formatting
PostPosted: Fri Mar 30, 2018 3:11 pm 
Offline
Cacti User
User avatar

Joined: Fri Feb 10, 2017 2:45 pm
Posts: 238
Location: Long Island, New York, USA
I'm using 'in/out bits with total bandwidth' and I get what I am supposed to. VMWare 6.0.x. Try using a non 64 bit counter. Also, I just realized the time scale. It is adding all the data consumed in each vertical slice. Mine is over a different time frame. The totals are cumulative so the numbers may be right. Show us a five minute graph to compare with your tool.

Attachment:
vm.png
vm.png [ 80.5 KiB | Viewed 579 times ]

_________________
See the Cacti 1.x templates I use at: http://www.camerabob.com/cacti

Live: Cacti 1.2.3 @ CentOS 7-6.1810.2.el7 & PHP 5.4.16-46.e17
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Test: Cacti 1.2.3 @ CentOS 7-6.1810.2.el7 & PHP 5.4.45-17.e17.remi
Maint @ 1.2
Monitor @ 2.3.4
Thold @ 1.0.4


Top
 Profile  
 
 Post subject: Re: Need help with simple data formatting
PostPosted: Fri Mar 30, 2018 3:22 pm 
Offline

Joined: Fri Mar 30, 2018 11:56 am
Posts: 8
I will try your graph to see if it makes sense with my configuration.

I'm affraid that I'm stuck with the Counter64. This is what is supplied with my Nutanix.


Top
 Profile  
 
 Post subject: Re: Need help with simple data formatting
PostPosted: Fri Mar 30, 2018 3:51 pm 
Offline

Joined: Fri Mar 30, 2018 11:56 am
Posts: 8
I just noticed there is a rule called Traffic 64 bit Server.

I activated the rule to see if it makes a difference.

Image


Top
 Profile  
 
 Post subject: Re: Need help with simple data formatting
PostPosted: Fri Mar 30, 2018 3:58 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2499
That looks like an Automation rule for automatic graph creation.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Need help with simple data formatting
PostPosted: Fri Mar 30, 2018 4:24 pm 
Offline

Joined: Fri Mar 30, 2018 11:56 am
Posts: 8
This is what I have now :

Image

10 GB transfered in one minute that makes no sense.


Top
 Profile  
 
 Post subject: Re: Need help with simple data formatting
PostPosted: Fri Mar 30, 2018 4:38 pm 
Offline

Joined: Fri Mar 30, 2018 11:56 am
Posts: 8
Ohhh I just figured it out.

I had to select the CDEF "Convert Data Source To Data Rate".

Now I'm all good !!!


Top
 Profile  
 
 Post subject: Re: Need help with simple data formatting
PostPosted: Fri Mar 30, 2018 4:46 pm 
Offline

Joined: Fri Mar 30, 2018 11:56 am
Posts: 8
Sorry about the repetitive posting.

The "TOTAL IN" makes no sense thought :

Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Bing [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group