[solved] Graphs not generated with all graph items

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
MU-IT
Cacti User
Posts: 113
Joined: Tue Nov 06, 2007 12:07 pm

[solved] Graphs not generated with all graph items

Post by MU-IT »

All,

I had started with the original Bits/sec template then found the improved template and changed the original to match the improved... but I'm having an issue where graphs generated with one template don't show all the graph items.

A graph generated with the improved template displays what I want, so I've made them match, and it still doesn't work... although the graphs did show different items as I was making the changes.

Incorrectly displaying graph:
Image
The incorrect graph items list:
Image
Correct graph:
Image
Correct graph items list:
Image

I've gone through every screen in the template and haven't found a discrepancy. What am I missing?


--system info--
Operating System: Windows 2003
Webserver: IIS
Cacti:0.8.7f
Spine: no spine
MySQL: didn't check it (not sure it matters in this case)
PHP: 5.2.9
RRDTool (Cygwin or Win32 version): Win32, 1.2.30.0
Net-SNMP: 5.4.2.1
Cygwin (cygwin1.dll version): 1005.25.0.0
Plugin Architecture: 2.7
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Graphs not generated with all graph items

Post by BSOD2600 »

Graph debug output for the broken one please.

Also you're aware cacti 0.8.7g + patches the latest? Lots of graph bug fixes....
MU-IT
Cacti User
Posts: 113
Joined: Tue Nov 06, 2007 12:07 pm

Re: Graphs not generated with all graph items

Post by MU-IT »

I hadn't noticed there was a new version of Cacti. :oops: I'll have to wait for the weekend to upgrade.

Here is the graph debug text:

Code: Select all

	RRDTool Command:

c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="MU_CORE - Traffic - Vl12" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="C\:/Inetpub/wwwroot/cacti/rra/398/136.rrd":traffic_in:AVERAGE \
DEF:b="C\:/Inetpub/wwwroot/cacti/rra/398/136.rrd":traffic_out:MAX \
DEF:c="C\:/Inetpub/wwwroot/cacti/rra/398/136.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,*,-1,* \
CDEF:cdeff=b,8,* \
AREA:cdefa#99FF99FF:"Inbound"  \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:cdefe#0000FFFF:"Outbound\n"  \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s"  \
COMMENT:"Total In\:  41.67 GB\n"  \
GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s\n"  \
COMMENT:"Total Out\: 25.04 GB\n" 

RRDTool Says:

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

Re: Graphs not generated with all graph items

Post by BSOD2600 »

Are you sure the correct graph template is assigned to your problem graph? the output looks like the standard interface template.
MU-IT
Cacti User
Posts: 113
Joined: Tue Nov 06, 2007 12:07 pm

Re: Graphs not generated with all graph items

Post by MU-IT »

I guess I'm not sure. How do I check such a thing?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Graphs not generated with all graph items

Post by BSOD2600 »

In graph management, look at the name of the graph template its using. is it your 'improved' one or the standard?
MU-IT
Cacti User
Posts: 113
Joined: Tue Nov 06, 2007 12:07 pm

Re: Graphs not generated with all graph items

Post by MU-IT »

Oh I see, I read too much into it. Yes, it is the standard one. When I switch the template to the "improved" the graph looks fine. But I have 2338 graphs using the standard template, and determined it would be far more time effective to simply change the graph template than change the template assigned to each.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Graphs not generated with all graph items

Post by BSOD2600 »

You can use the cacti gui or cli scripts to bulk change the graph template for lots of devices.
MU-IT
Cacti User
Posts: 113
Joined: Tue Nov 06, 2007 12:07 pm

Re: Graphs not generated with all graph items

Post by MU-IT »

BSOD2600 wrote:You can use the cacti gui or cli scripts to bulk change the graph template for lots of devices.
well, I'll be. It was right there "behind the milk". I'll change the templates and consider that good enough.

Thanks for your help.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests