[SOLVED] Why in equals out ?

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
surleau
Posts: 4
Joined: Tue Mar 04, 2008 8:31 am

[SOLVED] Why in equals out ?

Post by surleau »

Hi,

I'm in front of a graph I don't understand : it's a traffic graph where all inbound traffic strictly equals outbound traffic. I do know that it's not what's happening on the device, so I can't trust the system until I solve this. Could someone help please ?

Cacti 0.8.6j, running on MandrivaLinux
Attachments
cacti.jpeg
cacti.jpeg (35.92 KiB) Viewed 1502 times
peecee
Cacti User
Posts: 146
Joined: Tue Feb 26, 2008 7:26 am

Post by peecee »

How are you grabbing the data?
If you are using SNMP, what version?

If you know the values are different, how are you determining that?

You could always write a script, import it in to Cacti and use the script to call the values that you trust.

Cacti only reports the values it is given, so it's not like it is making up numbers.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

can you go to graph management, select your graph, and check that in and out are selected (and not in and in) ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
surleau
Posts: 4
Joined: Tue Mar 04, 2008 8:31 am

Post by surleau »

Great ! Thanks a lot. :D
Did I do someting wrong, or is it a referenced bug ? I just created the device an created the graph for the host, that's all.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

I also have this "bug" from times to times :-?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

So, post your graph debug for the graph in question. Also, some interfaces are behave this way. Not sure why, typically on routers.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
surleau
Posts: 4
Joined: Tue Mar 04, 2008 8:31 am

Post by surleau »

Is this what you ask for ? :

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-60 \
--title="SM1 - Traffic - Gi1/0/1 - SWR101(66)D-LET" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="/var/lib/cacti/sm1_traffic_in_10.rrd":traffic_in:AVERAGE \
CDEF:cdefa=a,8,* \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefa#002A97:"Outbound" \
GPRINT:cdefa:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s"

RRDTool Says:

OK
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Well as you can see from the graph command, it's only pulling your Traffic input values and displaying for both in/out.

In graph management, find that graph. Is the input and output data sources different?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Yup, the template is jacked. If recreating the graph does not fix it, you need to look at your templates. It is conceivable that you may have found a bug too. I do doupt it though.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
surleau
Posts: 4
Joined: Tue Mar 04, 2008 8:31 am

Post by surleau »

Well, I corrected the graphs, and now they work fine. Thanks for that.
Then I tried to repeat the initial steps, to see if I could see the problem again. The new graphs appear correctly now, so I don't know how it came.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests