Need help with simple data formatting

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

Moderators: Developers, Moderators

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

Need help with simple data formatting

Post by expertmax »

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: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: Need help with simple data formatting

Post by camerabob »

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.
Prod: Cacti 1.2.15 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Need help with simple data formatting

Post by netniV »

I would agree with that. Does the graph use a CDEF or the raw value?
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
expertmax
Posts: 8
Joined: Fri Mar 30, 2018 11:56 am

Re: Need help with simple data formatting

Post by expertmax »

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: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Need help with simple data formatting

Post by netniV »

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.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
expertmax
Posts: 8
Joined: Fri Mar 30, 2018 11:56 am

Re: Need help with simple data formatting

Post by expertmax »

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: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: Need help with simple data formatting

Post by camerabob »

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 7077 times
Prod: Cacti 1.2.15 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
expertmax
Posts: 8
Joined: Fri Mar 30, 2018 11:56 am

Re: Need help with simple data formatting

Post by expertmax »

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

Post by expertmax »

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: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Need help with simple data formatting

Post by netniV »

That looks like an Automation rule for automatic graph creation.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
expertmax
Posts: 8
Joined: Fri Mar 30, 2018 11:56 am

Re: Need help with simple data formatting

Post by expertmax »

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

Post by expertmax »

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

Post by expertmax »

Sorry about the repetitive posting.

The "TOTAL IN" makes no sense thought :

Image
User avatar
Jeeves
Cacti User
Posts: 91
Joined: Wed Jun 12, 2013 6:25 pm

Re: Need help with simple data formatting

Post by Jeeves »

@ExpertMax,

Any chance you'd be willing to share that Nutanix Template?
Thanks!
Stanley123456
Posts: 1
Joined: Sun Oct 13, 2024 10:37 pm

Re: Need help with simple data formatting

Post by Stanley123456 »

Anyone have basic hosts nutanix template share for study?
Many Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest