Need help with simple data formatting

Templates, scripts for templates, scripts and requests for templates.

Moderators: Moderators, Developers

Post Reply
Author
Message
expertmax
Posts: 8
Joined: Fri Mar 30, 2018 11:56 am

Need help with simple data formatting

#1 Post by expertmax » Fri Mar 30, 2018 12:04 pm

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: Select all

<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>

User avatar
camerabob
Cacti User
Posts: 285
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: Need help with simple data formatting

#2 Post by camerabob » Fri Mar 30, 2018 12:54 pm

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.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Test: Cacti 1.2.5 @ CentOS 7-6.1810.2.el7 & PHP 5.4.16-46.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

netniV
Cacti Guru User
Posts: 2795
Joined: Sun Aug 27, 2017 12:05 am

Re: Need help with simple data formatting

#3 Post by netniV » Fri Mar 30, 2018 1:03 pm

I would agree with that. Does the graph use a CDEF or the raw value?

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

Re: Need help with simple data formatting

#4 Post by expertmax » Fri Mar 30, 2018 2:29 pm

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

netniV
Cacti Guru User
Posts: 2795
Joined: Sun Aug 27, 2017 12:05 am

Re: Need help with simple data formatting

#5 Post by netniV » Fri Mar 30, 2018 2:43 pm

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.

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

Re: Need help with simple data formatting

#6 Post by expertmax » Fri Mar 30, 2018 3:03 pm

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.

User avatar
camerabob
Cacti User
Posts: 285
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: Need help with simple data formatting

#7 Post by camerabob » Fri Mar 30, 2018 3:11 pm

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.
vm.png
vm.png (80.5 KiB) Viewed 809 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.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Test: Cacti 1.2.5 @ CentOS 7-6.1810.2.el7 & PHP 5.4.16-46.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

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

Re: Need help with simple data formatting

#8 Post by expertmax » Fri Mar 30, 2018 3:22 pm

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.

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

Re: Need help with simple data formatting

#9 Post by expertmax » Fri Mar 30, 2018 3:51 pm

I just noticed there is a rule called Traffic 64 bit Server.

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

Image

netniV
Cacti Guru User
Posts: 2795
Joined: Sun Aug 27, 2017 12:05 am

Re: Need help with simple data formatting

#10 Post by netniV » Fri Mar 30, 2018 3:58 pm

That looks like an Automation rule for automatic graph creation.

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

Re: Need help with simple data formatting

#11 Post by expertmax » Fri Mar 30, 2018 4:24 pm

This is what I have now :

Image

10 GB transfered in one minute that makes no sense.

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

Re: Need help with simple data formatting

#12 Post by expertmax » Fri Mar 30, 2018 4:38 pm

Ohhh I just figured it out.

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

Now I'm all good !!!

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

Re: Need help with simple data formatting

#13 Post by expertmax » Fri Mar 30, 2018 4:46 pm

Sorry about the repetitive posting.

The "TOTAL IN" makes no sense thought :

Image

Post Reply