Graphs not showing any Data

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

Moderators: Developers, Moderators

Kurdt
Posts: 8
Joined: Fri Jul 21, 2006 9:36 am

Graphs not showing any Data

Post by Kurdt »

Hi all :)

This is my first post, i am currently using cacti Version 0.8.6h on ubuntu 6.06 installed with apt-get, everything works fine, i can log in to cacti admin and view and create graphics, like this one:

Image

As you see, i have no data on the graph and says "nan" in the counter.

I have rrd files generated on /var/lib/cacti/rra, and i have checked paths.

What i am missing? what could be wrong?

Many thanks and sorry if i am missing some information.
Software Enginner
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Which Graph Template/Host Template do you use? Personally, I'd recommend the "ucd/net" Host Template
Reinhard
Kurdt
Posts: 8
Joined: Fri Jul 21, 2006 9:36 am

Post by Kurdt »

First, thanks for your reply, this is what i get with ucd/net graph template :

Image

What do you think?

Thanks in advance
Software Enginner
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please click the first wrench and post the whole "rrdtool graph" statement
Reinhard
matheusber
Posts: 2
Joined: Thu Jul 27, 2006 12:06 am

Post by matheusber »

i now have the very same problem. my data source is net snmp from a FreeBSD box. and i've tried also using debug logging level.

it can retrieve the value, but somehow this is not in the png at last.

i have others graphs, one is netsnmp from the same server (built in ethernet interface) and works fine (at least looks like to it)

i really dont know where to change/edit for resolving this :(

thanks

matheus

ps: i ask that kurdt excuse me for using the very same space, but as the problem was the same i thought there was no harm ... if there is, please let me know :)
Kurdt
Posts: 8
Joined: Fri Jul 21, 2006 9:36 am

Post by Kurdt »

lvm wrote:Please click the first wrench and post the whole "rrdtool graph" statement
Reinhard
I hope that this is what you are talking about :) and thanks

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="pc009 - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="percent" \
--slope-mode \
DEF:a="/usr/share/cacti/site/rra/pc009_cpu_system_41.rrd":cpu_system:AVERAGE \
DEF:b="/usr/share/cacti/site/rra/pc009_cpu_user_42.rrd":cpu_user:AVERAGE \
DEF:c="/usr/share/cacti/site/rra/pc009_cpu_nice_40.rrd":cpu_nice:AVERAGE \
CDEF:cdefbc=TIME,1154090538,GT,a,a,UN,0,a,IF,IF,TIME,1154090538,GT,b,b,UN,0,b,IF,IF,TIME,1154090538,GT,c,c,UN,0,c,IF,IF,+,+ \
AREA:a#FF0000:"System"  \
GPRINT:a:LAST:"Current\:%8.2lf %s"  \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"  \
AREA:b#0000FF:"User":STACK \
GPRINT:b:LAST:"  Current\:%8.2lf %s"  \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n"  \
AREA:c#00FF00:"Nice":STACK \
GPRINT:c:LAST:"  Current\:%8.2lf %s"  \
GPRINT:c:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:c:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:cdefbc#000000:"Total"  \
GPRINT:cdefbc:LAST:" Current\:%8.2lf %s"  \
GPRINT:cdefbc:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefbc:MAX:"Maximum\:%8.2lf %s" 
matheusber: no problem.
Software Enginner
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please copy the _whole_ statement to the command line, but change

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \ 
to

Code: Select all

/usr/bin/rrdtool graph /tmp/test.png \
--imgformat=PNG \ 
and run that code. Post any error message.
You may insted goto Graph Management, select your Graph and activate DEBUG mode. This should give you all error messages as well.
Next question: Are you running rrdtool 1.2.x? Please post the output of

Code: Select all

/usr/bin/rrdtool -v
Reinhard
matheusber
Posts: 2
Joined: Thu Jul 27, 2006 12:06 am

Post by matheusber »

hmm, i did these things said and

rrdtool 1.2.12 and the test.png was the very same thing with all value nan ...

no errors though ...

thanks

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

Post by gandalf »

Ok, last instructions were aimed at the "non-displaying graphs". I've just created some small HowTo for debugging NaN's. You may want to consult it at http://forums.cacti.net/viewtopic.php?p=73383#73383
Reinhard
sebastiendsl
Posts: 1
Joined: Thu Jul 27, 2006 7:59 am

Post by sebastiendsl »

Hello I have the same probleme.


I don't know what to do please help me. I am french please use simple word my english is very bad ;) thanks
Attachments
error
error
errorGraph.JPG (44.07 KiB) Viewed 2742 times
Kurdt
Posts: 8
Joined: Fri Jul 21, 2006 9:36 am

Post by Kurdt »

First, thanks lvm :)
lvm wrote:Please copy the _whole_ statement to the command line, but change

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \ 
to

Code: Select all

/usr/bin/rrdtool graph /tmp/test.png \
--imgformat=PNG \ 
and run that code. Post any error message.
You may insted goto Graph Management, select your Graph and activate DEBUG mode. This should give you all error messages as well.
This is what i get from command line and from debug mode:

RRDTool Says:

ERROR: opening '/usr/share/cacti/site/rra/pc009_cpu_system_41.rrd': No such file or directory
Note that this is for the graph "pc009 cpu usage" (the one wich doesn't show a graph at all) not the "nan" ones. With the "nan" ones debug mode i get:
RRDTool Says:

OK
lvm wrote: Next question: Are you running rrdtool 1.2.x? Please post the output of

Code: Select all

/usr/bin/rrdtool -v

Code: Select all

RRDtool 1.2.11  Copyright 1997-2005 by Tobias Oetiker <tobi@oetiker.ch>
               Compiled Sat Mar 11 14:36:49 UTC 2006
Thanks Reinhard

Edit: I'll check your howTo
Software Enginner
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Kurdt wrote:This is what i get from command line and from debug mode:
RRDTool Says:

ERROR: opening '/usr/share/cacti/site/rra/pc009_cpu_system_41.rrd': No such file or directory
Please distinguish between "Graph Management Debug" (the one you did above) and "Poller Logging Level = DEBUG" which reports to ./log/cacti.log. Switch to the second one (Settings -> Poller Logging Level = DEBUG) and have a look at the file to check even this error. It will happen, e.g. if the specific data source does not give data, fill system full, ...
Reinhard
Kurdt
Posts: 8
Joined: Fri Jul 21, 2006 9:36 am

Post by Kurdt »

Reinhard:

I switched to "cactid" poller, and now i have data gathered on my graphs, what do you think was happening here?
I read cacti.log and everything seeems normal (i think). I will continue to use cactid as long as it works... :)
Software Enginner
Kurdt
Posts: 8
Joined: Fri Jul 21, 2006 9:36 am

Post by Kurdt »

Well.. it seems that something is not working perfectly as i said: i have this error on cacti.log
07/31/2006 12:29:54 PM - SYSTEM STATS: Time:292.8794 Method:cactid Processes:1 Threads:1 Hosts:3 HostsPerProcess:3 DataSources:12 RRDsProcessed:0
07/31/2006 12:34:55 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
Something is wrong there, also, if i execute "cactid" i get an mysql error with wrong password, i found a cactid.conf.sample, i edited it to fit my config and change it to cactid.conf, but where should i place this file?

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

Post by gandalf »

Kurdt wrote:Well.. it seems that something is not working perfectly as i said: i have this error on cacti.log
07/31/2006 12:29:54 PM - SYSTEM STATS: Time:292.8794 Method:cactid Processes:1 Threads:1 Hosts:3 HostsPerProcess:3 DataSources:12 RRDsProcessed:0
07/31/2006 12:34:55 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
This may be caused by a duplicate poller running. Please check all your crontabs, especually /etc/cron.d/cacti
Something is wrong there, also, if i execute "cactid" i get an mysql error with wrong password, i found a cactid.conf.sample, i edited it to fit my config and change it to cactid.conf, but where should i place this file?
/etc/cactid.conf is good, or the same directory cactid resides in.
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests