Help With Nans!?

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
ezb
Posts: 4
Joined: Mon Mar 31, 2008 9:49 am

Help With Nans!?

Post by ezb »

Been having trouble with this for a while, firstly when installing cacti I had no graphs at all, changed the permissions sorted that, but they are still not filling with data and I have no idea why! I'm running Ubuntu Dapper

This is the contents of my poller log file (sorry for the size)

Code: Select all

03/31/2008 04:00:01 PM - POLLER: Poller[0] NOTE: Poller Int: '30', Cron Int: '60', Time Since Last: '300', Max Runtime '58', Poller Runs: '2'
03/31/2008 04:00:01 PM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval!  The Poller Interval is '30' seconds, with a maximum of a '300' second Cron, but 300 seconds have passed since the last poll!
03/31/2008 04:00:01 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/cacti/cmd.php 0 1]
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
03/31/2008 04:01:00 PM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.
03/31/2008 04:01:00 PM - SYSTEM STATS: Time:59.0663 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:1 RRDsProcessed:0

Warning: pclose(): 71 is not a valid stream resource in /var/www/cacti/lib/rrd.php on line 57
03/31/2008 04:01:00 PM - POLLER: Poller[0] -1206975631.86 seconds
03/31/2008 04:01:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/cacti/cmd.php 0 1]
Waiting on 1/1 pollers.
03/31/2008 04:01:01 PM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.
03/31/2008 04:01:01 PM - SYSTEM STATS: Time:0.1575 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:1 RRDsProcessed:0

Warning: pclose(): 383 is not a valid stream resource in /var/www/cacti/lib/rrd.php on line 57
Loop  Time is: 0.158798933029
Sleep Time is: 29.841201067
Total Time is: 59.2329809666
Any ideas anyone has would really help, I'm all out...Cheers
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please consider reading second link of my sig. This is which cacti version?
Reinhard
ezb
Posts: 4
Joined: Mon Mar 31, 2008 9:49 am

Post by ezb »

cacti-0.8.7b, I've gone through the link you've suggested with no such luck
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Set the logging level to 5 (DEBUG) and then run the following from the command line:

Code: Select all

php -q <path_to_cacti>/cmd.php
Post your results.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
ezb
Posts: 4
Joined: Mon Mar 31, 2008 9:49 am

Post by ezb »

Cheers for your reply, when I run then cmd file I get

"Invalid include/config.php file detected"

But I can find no reference to anything config.php file in this script?


The Output from the Debug of the graphs

Code: Select all

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Localhost - Disk Space - /dev/sda1" \
--rigid \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/cacti/rra/localhost_hdd_free_11.rrd":hdd_used:AVERAGE \
DEF:b="/var/www/cacti/rra/localhost_hdd_free_11.rrd":hdd_used:MAX \
DEF:c="/var/www/cacti/rra/localhost_hdd_free_11.rrd":hdd_free:AVERAGE \
DEF:d="/var/www/cacti/rra/localhost_hdd_free_11.rrd":hdd_free:MAX \
CDEF:cdefa=a,1024,* \
CDEF:cdefd=b,1024,* \
CDEF:cdefe=c,1024,* \
CDEF:cdefh=d,1024,* \
CDEF:cdefi=TIME,1207308684,GT,a,a,UN,0,a,IF,IF,TIME,1207308684,GT,c,c,UN,0,c,IF,IF,+,1024,* \
AREA:cdefa#F51D30FF:"Used"  \
GPRINT:cdefa:LAST:"     Current\:%8.2lf %s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefd:MAX:"Maximum\:%8.2lf %s\n"  \
AREA:cdefe#002A97FF:"Available":STACK \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefh:MAX:"Maximum\:%8.2lf %s\n"  \
LINE2:cdefi#000000FF:"Total"  \
GPRINT:cdefi:LAST:"    Current\:%8.2lf %s"  \
GPRINT:cdefi:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefi:MAX:"Maximum\:%8.2lf %s\n" 
RRDTool Says:

OK
buck
Posts: 17
Joined: Tue Sep 04, 2007 10:09 am

Post by buck »

That is the file that controls access to your database, so you should probably review this: http://docs.cacti.net/node/5

You might also what to view or even grab a new config.php file out the tarball you downloaded.
ezb
Posts: 4
Joined: Mon Mar 31, 2008 9:49 am

Post by ezb »

Solved the problem now.... More pot luck than anything else, :roll: installed some patches, ran

Code: Select all

apt-get install cacti
to install an dependancys I may have missed, and looks like all is going well at the moment, my graphs have started generating. No idea what I had actuly missed out, but it works!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest