Graphs not showing any Data
Moderators: Developers, Moderators
Graphs not showing any Data
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:
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.
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:
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
-
- Posts: 2
- Joined: Thu Jul 27, 2006 12:06 am
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
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
I hope that this is what you are talking about and thankslvm wrote:Please click the first wrench and post the whole "rrdtool graph" statement
Reinhard
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"
Software Enginner
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please copy the _whole_ statement to the command line, but change to 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
Reinhard
Code: Select all
/usr/bin/rrdtool graph - \
--imgformat=PNG \
Code: Select all
/usr/bin/rrdtool graph /tmp/test.png \
--imgformat=PNG \
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
-
- Posts: 2
- Joined: Thu Jul 27, 2006 12:06 am
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
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
Reinhard
-
- Posts: 1
- Joined: Thu Jul 27, 2006 7:59 am
First, thanks lvm
Thanks Reinhard
Edit: I'll check your howTo
This is what i get from command line and from debug mode:lvm wrote:Please copy the _whole_ statement to the command line, but changetoCode: Select all
/usr/bin/rrdtool graph - \ --imgformat=PNG \
and run that code. Post any error message.Code: Select all
/usr/bin/rrdtool graph /tmp/test.png \ --imgformat=PNG \
You may insted goto Graph Management, select your Graph and activate DEBUG mode. This should give you all error messages as well.
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:
ERROR: opening '/usr/share/cacti/site/rra/pc009_cpu_system_41.rrd': No such file or directory
RRDTool Says:
OK
lvm wrote: Next question: Are you running rrdtool 1.2.x? Please post the output ofCode: 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
Edit: I'll check your howTo
Software Enginner
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
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, ...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
Reinhard
Well.. it seems that something is not working perfectly as i said: i have this error on cacti.log
Thanks
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?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.
Thanks
Software Enginner
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
This may be caused by a duplicate poller running. Please check all your crontabs, especually /etc/cron.d/cactiKurdt 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.
/etc/cactid.conf is good, or the same directory cactid resides in.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?
Reinhard
Who is online
Users browsing this forum: No registered users and 2 guests