Cacti Mismatch values - Realtime grahs vs Normal Graphs

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
pradeepspa
Cacti User
Posts: 67
Joined: Wed Nov 25, 2015 2:35 pm

Cacti Mismatch values - Realtime grahs vs Normal Graphs

Post by pradeepspa »

Hello Folks,

I have installed "realtime plugin" which works great. However, I notice the values it shows differ from the normal graphs. I agree the realtime graphs shows the recent updated value and it is not suppose to be same as the normal one but what I am seeing is vast difference.
realtime.JPG
realtime.JPG (36.84 KiB) Viewed 12833 times
If you see the above graphs, the first one is from realtime plugin and second is normal trend where you can find the huge difference in "Inbound" traffic. Any reason why it behaves like this way?
pradeepspa
Cacti User
Posts: 67
Joined: Wed Nov 25, 2015 2:35 pm

Re: Cacti Mismatch values - Realtime grahs vs Normal Graphs

Post by pradeepspa »

Anyone could help me out on this?
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti Mismatch values - Realtime grahs vs Normal Graphs

Post by netniV »

You are not comparing like for like. The graph on the right is a whole day, not a minute.
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
pradeepspa
Cacti User
Posts: 67
Joined: Wed Nov 25, 2015 2:35 pm

Re: Cacti Mismatch values - Realtime grahs vs Normal Graphs

Post by pradeepspa »

I agree but the "Inbound" values it shows doesnt doesnt make sense even after averaging.I should see values in "MB" at least in "Maximum" GPRINT.
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Cacti Mismatch values - Realtime grahs vs Normal Graphs

Post by Osiris »

Check the max values on the RRDfile using the "rrdtool info rrdfile" command. I bet that there is a max value on the RRDfile that is clipping the data over longer periods of time.

If this graph was first created on a Cacti version before 0.8.8 (and I can not remember the version of 0.8.8), you may have had an invalid max value. Also, if your ifSpeed or ifHighSpeed snmp values are bogus, you could also get bad values on current versions of Cacti.

You can use the "rrdtool tune rrdfile options" command to correct the maximum values to be more realistic. More options can be found here: https://oss.oetiker.ch/rrdtool/doc/rrdtune.en.html
Before history, there was a paradise, now dust.
pradeepspa
Cacti User
Posts: 67
Joined: Wed Nov 25, 2015 2:35 pm

Re: Cacti Mismatch values - Realtime grahs vs Normal Graphs

Post by pradeepspa »

Here is the 5 minutes interval graphs vs realtime graphs.
Capture.JPG
Capture.JPG (54.76 KiB) Viewed 12777 times
The numbers in "Inbound" obviously doesnt make sense where is no units (kb/mb)

On the other hand just to test the working, I created seperate graphs just for inbound and its graphs absolutely fine.
inbound.JPG
inbound.JPG (32.36 KiB) Viewed 12777 times
Note: I am not using default snmp graph template for the traffic. I use script/command - data input method.
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Cacti Mismatch values - Realtime grahs vs Normal Graphs

Post by Osiris »

Please reread my comments.
Before history, there was a paradise, now dust.
pradeepspa
Cacti User
Posts: 67
Joined: Wed Nov 25, 2015 2:35 pm

Re: Cacti Mismatch values - Realtime grahs vs Normal Graphs

Post by pradeepspa »

I tried rrdtool tuning and also tried recreating the graphs from scratch but no luck. Any other ideas? Strange thing is it works only if I use both inbound and outbound data-template in one graph template. Also I am using "script/command" data input method.
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Cacti Mismatch values - Realtime grahs vs Normal Graphs

Post by Osiris »

For the unit that is showing very small values, use the rrdtool tune <filename> -a:dsname=U. The special character 'U', means no limit.

Basically, if you use 'rrdtool info' your bogus parameter has a max value that is too low. Any values captured above that max value are thrown out.

Cacti has a setting to default the interface to ifHighSpeed if it exists, and if you are using SNMPv2. So, basically:

1) Use only v2 and v3
2) Only use 64bit graphs not the legacy version
3) Ensure ifHighSpeed is set for your interfaces, and if not, tune the rrdfiles directly
Before history, there was a paradise, now dust.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest