Weathermap working, but graphs gone

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

Moderators: Developers, Moderators

mellowd
Posts: 33
Joined: Thu Apr 12, 2012 5:59 am

Weathermap working, but graphs gone

Post by mellowd »

Hi all.

I'm using Cacti 0.8.8a with the weathermap plugin.

The wethermap is working fine, when I hover over a link it shows the the graph. However when I click on the like I don't see any graphs. In fact I don't see any graphs even when browsing the graph tree.

But when I create a NEW link, the graph shows just fine.

A quick example when I'm browsing the graph tree is in the image attached.

If I click on graph properties I see this

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1340715595 \
--end=1340801995 \
--title='pcr1.bgt1 - eth1/2 to pcr1.the1 10Gb Abovenet Fibre' \
--rigid \
--base=1000 \
--height=120 \
--width=600 \
--alt-autoscale \
COMMENT:"From 2012/06/26 13\:59\:55 To 2012/06/27 13\:59\:55\c" \
COMMENT:"  \n" \
--vertical-label='' \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/lib/cacti/rra/pcr1_bgt1_traffic_in_46.rrd":'traffic_in':AVERAGE \
DEF:b="/var/lib/cacti/rra/pcr1_bgt1_traffic_in_46.rrd":'traffic_out':AVERAGE \
CDEF:cdefa='a,8,*' \
CDEF:cdeff='b,8,*,-1,*' \
LINE1:cdefa#002A97FF:""  \
AREA:cdefa#002A9733:"Inbound\:"  \
GPRINT:a:LAST:" Current\:%8.2lf %s"  \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:b:MAX:"Max\:%8.2lf %s"  \
LINE1:cdeff#DE0056FF:""  \
AREA:cdeff#DE005633:"Outbound\:"  \
GPRINT:b:LAST:"Current%8.2lf %s"  \
GPRINT::AVERAGE:"Average\:%8.2lf %s"  \
GPRINT::MAX:"Max\:%8.2lf %s" 

They used to be there a while ago. I don't remember changing anything
Attachments
Untitled.png
Untitled.png (21.96 KiB) Viewed 3051 times
mellowd
Posts: 33
Joined: Thu Apr 12, 2012 5:59 am

Re: Weathermap working, but graphs gone

Post by mellowd »

just to add, some even more odd behaviour. If I show 'Tree' view I don't see graphs. If I click 'Preview' view, I see the graphs
mellowd
Posts: 33
Joined: Thu Apr 12, 2012 5:59 am

Re: Weathermap working, but graphs gone

Post by mellowd »

Any ideas?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Weathermap working, but graphs gone

Post by Howie »

This seems like a Cacti issue rather than a Weathermap one. It sounds like the poller is updating the rrd files correctly (or Weathermap wouldn't get data), but Weathermap doesn't do anything with the graph drawing process.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
mellowd
Posts: 33
Joined: Thu Apr 12, 2012 5:59 am

Re: Weathermap working, but graphs gone

Post by mellowd »

Hmm. I actually wanted to put this in the main board. Can a mod please move the thread into the correct section? Or do I just post a new thread?
mellowd
Posts: 33
Joined: Thu Apr 12, 2012 5:59 am

Re: Weathermap working, but graphs gone

Post by mellowd »

Can a mod assist?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Weathermap working, but graphs gone

Post by Howie »

Just remembered I'm a mod nowadays :oops:

Moved to Help: General.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
mellowd
Posts: 33
Joined: Thu Apr 12, 2012 5:59 am

Re: Weathermap working, but graphs gone

Post by mellowd »

Howie wrote:Just remembered I'm a mod nowadays :oops:

Moved to Help: General.

Thanks :)




So basically I still have this problem. Anyone got any ideas? I did mention weathermap but that's only because that plugin actually works but my old graphs don't
mellowd
Posts: 33
Joined: Thu Apr 12, 2012 5:59 am

Re: Weathermap working, but graphs gone

Post by mellowd »

*bump*
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Weathermap working, but graphs gone

Post by Howie »

So two questions:

If you paste all that rrdtool command-line into a shell, does it work? (change that first '-' to image.png to get a file output)

Is there anything in cacti.log or the apache error_log?
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
mellowd
Posts: 33
Joined: Thu Apr 12, 2012 5:59 am

Re: Weathermap working, but graphs gone

Post by mellowd »

Hi Howie.

There are no errors in the cacti.log file. Also there are no errors in the Apache access.log file


I'm not 100% sure what I need to type in via the cli on the server. Can you confirm?

Thanks
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Weathermap working, but graphs gone

Post by Howie »

(error_log not access.log for apache)

Paste in all of that graph debug rrdtool command line - it's the command that actually generates the graph. But before you do, change the first - to a filename, otherwise it'll try to output a PNG into your console screen (producing garbage).
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
mellowd
Posts: 33
Joined: Thu Apr 12, 2012 5:59 am

Re: Weathermap working, but graphs gone

Post by mellowd »

Aha.

The error log does show errors:

Code: Select all

ERROR: Could not parse line 'GPRINT::AVERAGE:Average\:%8.2lf %s'
ERROR: Could not parse line 'GPRINT::AVERAGE:Average\:%8.2lf %s'
ERROR: Could not parse line 'GPRINT::AVERAGE:Average\:%8.2lf %s'
ERROR: Could not parse line 'GPRINT::AVERAGE:Average\:%8.2lf %s'
I see all 4 when I refresh the page.

If I paste the rrdtool cli then I get the same error:

Code: Select all

ERROR: Could not parse line 'GPRINT::AVERAGE:Average\:%8.2lf %s'
mellowd
Posts: 33
Joined: Thu Apr 12, 2012 5:59 am

Re: Weathermap working, but graphs gone

Post by mellowd »

Any ideas?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Weathermap working, but graphs gone

Post by gandalf »

The GPRINT error ouccurs e.g. in case no DEF has been set. In Cacti lingo: no valid data source was related to the GPRINT
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests