Cacti "loosing" data on virtual hosts

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
SoftDux
Posts: 39
Joined: Thu Jun 19, 2008 9:24 am
Location: Johannesburg, South Africa
Contact:

Cacti "loosing" data on virtual hosts

Post by SoftDux »

Hi,

I have a XEN server with 4 XEN VPS's, and have set each VPS's network interface name as vifandr0, vifplut0, vifwise0 & vifkeith0

For some odd reason, it tends to loose on of the interfaces data from time to time.

The one that's just done this is vifwise0 - On the main host, when I run ifconfig, I can see the interface is up:

Code: Select all

vifwise0  Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:102771 errors:0 dropped:0 overruns:0 frame:0
          TX packets:581620 errors:0 dropped:156 overruns:0 carrier:0
          collisions:0 txqueuelen:32
          RX bytes:29892687 (28.5 MiB)  TX bytes:65585542 (62.5 MiB)
Then, in Cacti > Devices > localhost > Create Graphs for this Host, I can sometimes see at least 9 entries for vifwise0 (or any other interfaces), with one being up, and the others being down. When I press the green circle to fresh the list, the number of entries are often less, but there's at least 2 that are down, and one that's up. The strange things, is that they all have the same Hardware Address, Name & everything. So, I choose the one that's up, and it start graphing on the new interface, but the old interface doesn't.

So, for this host, I now have 2 inbound & 2 outbound data sources - both with the same name, as can be seen here:

Image

So, why does this happen?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Verbose Query Please. Likely an SNMP issue with XEN. Check for Net-SNMP updates. But start with Verbose Query.

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?
SoftDux
Posts: 39
Joined: Thu Jun 19, 2008 9:24 am
Location: Johannesburg, South Africa
Contact:

Post by SoftDux »

Here's the debug info:

Code: Select all

RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Traffic - wiseguy" \
--rigid \
--base=1000 \
--height=150 \
--width=650 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes per second" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/var/www/html/graphs/rra/saturn_traffic_in_58.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/graphs/rra/saturn_traffic_in_58.rrd":traffic_in:MAX \
DEF:c="/var/www/html/graphs/rra/saturn_traffic_in_58.rrd":traffic_out:AVERAGE \
DEF:d="/var/www/html/graphs/rra/saturn_traffic_in_58.rrd":traffic_out:MAX \
AREA:a#00CF00FF:"Inbound"  \
GPRINT:a:LAST:" Current\:%8.2lf %s"  \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:b:MAX:"Maximum\:%8.2lf %s"  \
COMMENT:"Total In\:  7.86 MB\n"  \
LINE1:c#002A97FF:"Outbound"  \
GPRINT:c:LAST:"Current\:%8.2lf %s"  \
GPRINT:c:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:d:MAX:"Maximum\:%8.2lf %s"  \
COMMENT:"Total Out\: 15.41 MB" 
RRDTool Says:
OK

And it's stoppped graphing the traffic as well


Here's the debugging info for the other / old interface

Code: Select all

RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Saturn - Traffic - vifwise0" \
--rigid \
--base=1000 \
--height=150 \
--width=650 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes per second" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/var/www/html/graphs/rra/saturn_traffic_in_58.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/graphs/rra/saturn_traffic_in_58.rrd":traffic_in:MAX \
DEF:c="/var/www/html/graphs/rra/saturn_traffic_in_58.rrd":traffic_out:AVERAGE \
DEF:d="/var/www/html/graphs/rra/saturn_traffic_in_58.rrd":traffic_out:MAX \
AREA:a#00CF00FF:"Inbound"  \
GPRINT:a:LAST:" Current\:%8.2lf %s"  \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:b:MAX:"Maximum\:%8.2lf %s"  \
COMMENT:"Total In\:  7.86 MB\n"  \
LINE1:c#002A97FF:"Outbound"  \
GPRINT:c:LAST:"Current\:%8.2lf %s"  \
GPRINT:c:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:d:MAX:"Maximum\:%8.2lf %s"  \
COMMENT:"Total Out\: 15.41 MB" 
RRDTool Says:
OK
SoftDux
Posts: 39
Joined: Thu Jun 19, 2008 9:24 am
Location: Johannesburg, South Africa
Contact:

Post by SoftDux »

Can someone please help me with this?
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests