NO graphs showing

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

Moderators: Developers, Moderators

autys
Posts: 14
Joined: Thu Nov 02, 2006 11:41 am

NO graphs showing

Post by autys »

Yes.. I'm another with no graphs showing.

Poller is running fine, data is being stores in the rra/ directory with no problem.

Running graphs in debug mode gives:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Localhost - Load Average" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--units-exponent=0 \
--vertical-label="processes in the run queue" \
DEF:a="/var/www/html/rra/localhost_load_1min_5.rrd":load_1min:AVERAGE \
DEF:b="/var/www/html/rra/localhost_load_1min_5.rrd":load_5min:AVERAGE \
DEF:c="/var/www/html/rra/localhost_load_1min_5.rrd":load_15min:AVERAGE \
CDEF:cdefg=TIME,1162503955,GT,a,a,UN,0,a,IF,IF,TIME,1162503955,GT,b,b,UN,0,b,IF,IF,TIME,1162503955,GT,c,c,UN,0,c,IF,IF,+,+ \
AREA:a#EACC00:"1 Minute Average" \
GPRINT:a:LAST:" Current\:%8.2lf\n" \
STACK:b#EA8F00:"5 Minute Average" \
GPRINT:b:LAST:" Current\:%8.2lf\n" \
STACK:c#FF0000:"15 Minute Average" \
GPRINT:c:LAST:"Current\:%8.2lf\n" \
LINE1:cdefg#000000:""
RRDTool Says:
Can anyone help? Everything seems fine just no graphs.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Oopy, the most important line at the end seems to be missing. If not, copy the whole (leaving the last line off) to command line and execute. Please post the error given
Reinhard
autys
Posts: 14
Joined: Thu Nov 02, 2006 11:41 am

Post by autys »

That's exactly what it says, there is nothing after the "RRDTool Says:"
autys
Posts: 14
Joined: Thu Nov 02, 2006 11:41 am

Post by autys »

HI,

I've ran the graph command as requested and I get back the graph as expected.. so all of that's working OK.. so still not sure why I don't get them in the web interface..
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

autys wrote:HI,

I've ran the graph command as requested and I get back the graph as expected.. so all of that's working OK.. so still not sure why I don't get them in the web interface..
What userid was logged in when you did so? Root? cactiuser?
Reinhard
autys
Posts: 14
Joined: Thu Nov 02, 2006 11:41 am

Post by autys »

It was root, but I'm running cacti as root as well (it's just a test linux box)

I've got it instaleld on a 2nd box and it seems to be working (although I can't get it to graph a windows box.. and can't find the snmpwalk command)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please search the sticky posts in the Windows Forum. BSOD2600 is a very versed cacti/windows user
Reinhard
Hiney
Cacti User
Posts: 56
Joined: Mon Oct 16, 2006 11:50 pm

invalid y-grid format

Post by Hiney »

OK, i'm getting this (see below) when debugging a graph output and the graph template is "AIX File System Statistics". v0.8.6i.

Anyone able to tell me what's wrong with Y ? The AIX template was taken from page three of "AIX Host template" http://forums.cacti.net/viewtopic.php?p=82570

H
RRDTool Command:

/usr/local/rrdtool-1.2.15/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="hostname - File System Statistics - /dev/fslv00" \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--y-grid=INodes \
--vertical-label="INodes" \
--slope-mode \
DEF:a="/opt/nagios/cacti/rra/hostname_aixfsusedinodes_486.rrd":aixFsNumINodes:AVERAGE \
DEF:b="/opt/nagios/cacti/rra/hostname_aixfsusedinodes_486.rrd":aixFsUsedInodes:AVERAGE \
AREA:a#00004D:"Total" \
GPRINT:a:LAST:"Current\:%8.0lf" \
GPRINT:a:MIN:"Minimum\:%8.0lf" \
GPRINT:a:MAX:"Maximum\:%8.0lf\n" \
AREA:b#CAF100:"Used" \
GPRINT:b:LAST:" Current\:%8.0lf" \
GPRINT:b:MIN:"Minimum\:%8.0lf" \
GPRINT:b:MAX:"Maximum\:%8.0lf\n" \
COMMENT:"Mount Point\: /tsmstg\n"

RRDTool Says:

ERROR: invalid y-grid format
and yes, the rrd files have been created.

thanks
H
"The difference between theory and practice, is that in theory, there is no difference between theory and practice."

"The first 90% of a project takes 90% of the time, the last 10% takes the other 90% of the time" - Murphy's Law
Hiney
Cacti User
Posts: 56
Joined: Mon Oct 16, 2006 11:50 pm

[-y|--y-grid grid step:label factor]

Post by Hiney »

"[-y|--y-grid grid step:label factor]"

I notice that many if not all the working graphs have no --y-grid option.

Where did it come from ? So how do i remove or correct the y-grid entry. where is it stored in cacti ?


ta
H
"The difference between theory and practice, is that in theory, there is no difference between theory and practice."

"The first 90% of a project takes 90% of the time, the last 10% takes the other 90% of the time" - Murphy's Law
Hiney
Cacti User
Posts: 56
Joined: Mon Oct 16, 2006 11:50 pm

got it.

Post by Hiney »

OK, it's in the graph template. I have removed it and there are graphs now !!!!

yeah. It would appear that the "Unit Grid Value" in a graph template is broken somehow. the format being placed on the rrdgraph line is not suitable (using rrdtool 1.2.x)

H
"The difference between theory and practice, is that in theory, there is no difference between theory and practice."

"The first 90% of a project takes 90% of the time, the last 10% takes the other 90% of the time" - Murphy's Law
tljohnsn
Posts: 1
Joined: Fri Nov 17, 2006 4:35 pm

Post by tljohnsn »

I had the same problem with some netapp graphs. The solution was to update graph_templates_graph set unit_value=NULL where id=823; Replace id=823 with the correct value according to your broken graphs.
VaSh1
Posts: 29
Joined: Wed Feb 20, 2008 3:44 pm

Post by VaSh1 »

tljohnsn wrote:The solution was to update graph_templates_graph set unit_value=NULL
=0
User avatar
nrakis0
Posts: 13
Joined: Sun Feb 21, 2010 7:49 pm
Location: sydney australia

Post by nrakis0 »

i have changed the parameter as suggested to ignore (on the template at cacti) and i still get no graphs and other suggestions please.

thanks

nr2


this is the result no on debug:


/usr/local/rrdtool-1.2.19/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="goodaur1 - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=720 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="cpu ticks" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/export/home/cacti/htdocs/cacti/rra/goodaur1_ucd_sscpurawsystem_280.rrd":ucd_ssCpuRawSystem:AVERAGE \
DEF:b="/export/home/cacti/htdocs/cacti/rra/goodaur1_ucd_sscpurawuser_281.rrd":ucd_ssCpuRawUser:AVERAGE \
DEF:c="/export/home/cacti/htdocs/cacti/rra/goodaur1_ucd_sscpurawidle_279.rrd":ucd_ssCpuRawIdle:AVERAGE \
CDEF:cdefa=a,100,*,TIME,1266902595,GT,a,a,UN,0,a,IF,IF,TIME,1266902595,GT,b,b,UN,0,b,IF,IF,TIME,1266902595,GT,c,c,UN,0,c,IF,IF,+,+,/ \
CDEF:cdeff=b,100,*,TIME,1266902595,GT,a,a,UN,0,a,IF,IF,TIME,1266902595,GT,b,b,UN,0,b,IF,IF,TIME,1266902595,GT,c,c,UN,0,c,IF,IF,+,+,/ \
CDEF:cdefba=c,100,*,TIME,1266902595,GT,a,a,UN,0,a,IF,IF,TIME,1266902595,GT,b,b,UN,0,b,IF,IF,TIME,1266902595,GT,c,c,UN,0,c,IF,IF,+,+,/ \
AREA:cdefa#FF0000FF:"System" \
GPRINT:cdefa:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Avg\:%8.2lf %s" \
GPRINT:cdefa:MIN:"Min\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Max\:%8.2lf %s\n" \
AREA:cdeff#0000FFFF:"User":STACK \
GPRINT:cdeff:LAST:" Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Avg\:%8.2lf %s" \
GPRINT:cdeff:MIN:"Min\:%8.2lf %s" \
GPRINT:cdeff:MAX:"Max\:%8.2lf %s\n" \
AREA:cdefba#C0C0C0FF:"Idle":STACK \
GPRINT:cdefba:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefba:AVERAGE:"Avg\:%8.2lf %s" \
GPRINT:cdefba:MIN:"Min\:%8.2lf %s" \
GPRINT:cdefba:MAX:"Max\:%8.2lf %s"
RRDTool Says:

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

Post by gandalf »

Copy that command to cli and pipe output into foo.png. See what happens.
R.
User avatar
nrakis0
Posts: 13
Joined: Sun Feb 21, 2010 7:49 pm
Location: sydney australia

Post by nrakis0 »

R i need more information please, which command are you pointing to?

"Copy that command to cli and pipe output into foo.png. See what happens.
R."

regards - nic
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests