RRD tool not generating graphs?

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

Moderators: Developers, Moderators

prose
Posts: 8
Joined: Thu Mar 10, 2005 2:56 pm

RRD tool not generating graphs?

Post by prose »

Greetings. I'm apoligize ahead of time if this question has already been answered. It would appear that my cacti installation is not generating any graphs in the \rra directory. I'm running everything as Administrator on a win 2k server box and I'm pretty much at a loss here. I've followed the installation instructions and feel that I have done everything correct, yet I'm not sure where the problem is. Is is PHP or RRDtool that is the
problem?

I'm also seeing this in the cacti log file. It looks like the scheduled poller using PHP is trying to execute something using the cmd.exe, but nothing happens and the shell window just stays open with no text. Any help would be appreciated.

03/10/2005 12:58:57 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
03/10/2005 12:53:57 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
03/10/2005 12:48:57 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
03/10/2005 12:43:57 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
03/10/2005 12:38:57 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
03/10/2005 12:33:57 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.



IIS v6
PHP 5.0.3
RRDtool 1.0.49
MySQL 4.1.10
cacti 0.8.6c
cactid 0.8.6d
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Check Settings->Paths->PHP and verify that it is "c:\php\php-win.exe".

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?
User avatar
mrh
Cacti User
Posts: 84
Joined: Tue Mar 08, 2005 9:50 am

Post by mrh »

also, try to change to cmd.php poller instead of cactid, it will not work with mysql 4.1
mrh | cacti 0.8.6h | plugin architecture | thold | monitor | iis6
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Good point, please run cactid from the command line and see what comes out. Run in DEBUG.

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?
prose
Posts: 8
Joined: Thu Mar 10, 2005 2:56 pm

Post by prose »

Thanks you guys, you are awesome. That seemed to fix the graph generation but now I"m seeing some other types of errors. Any quick fixes for these? :) Again, thanks for the help.

03/14/2005 08:14:01 AM - SYSTEM STATS: Time: 1.1324 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 3, Hosts/Process: 3
03/14/2005 08:14:00 AM - CMDPHP: Poller[0] Host[2] WARNING: Result from CMD not valid. Partial Result:
03/14/2005 08:14:00 AM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
03/14/2005 08:14:00 AM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
03/14/2005 08:14:00 AM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
03/14/2005 08:14:00 AM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
03/14/2005 08:14:00 AM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
03/14/2005 08:13:57 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You need to post DEBUG output.

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?
prose
Posts: 8
Joined: Thu Mar 10, 2005 2:56 pm

Post by prose »

I'm sorry for sounding stupid, but how do I get it to generate debug output?

I'm also getting some errors when adding new graphs to cacti. There are so many things that could be wrong, I have no idea where to begin. This is what I see when I tried to create a graph today.

ERROR: can't parse '#00CF00:Inbound'
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Settings->General->Cacti Logging Level->DEBUG.

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?
prose
Posts: 8
Joined: Thu Mar 10, 2005 2:56 pm

Post by prose »

Thank you Witness for all the support that you give. It helps newbies like myself immensely.


03/17/2005 04:19:01 PM - SYSTEM STATS: Time: 1.0653 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 7, Hosts/Process: 7
03/17/2005 04:19:01 PM - POLLER: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe update C:\cacti\rra\localhost_proc_7.rrd --template proc 1111101540:U
03/17/2005 04:19:01 PM - POLLER: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe update C:\cacti\rra\localhost_users_6.rrd --template users 1111101540:U
03/17/2005 04:19:01 PM - POLLER: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe update C:\cacti\rra\localhost_load_1min_5.rrd --template 1111101540:U
03/17/2005 04:19:01 PM - POLLER: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe update C:\cacti\rra\localhost_mem_swap_4.rrd --template mem_swap 1111101540:U
03/17/2005 04:19:01 PM - POLLER: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe update C:\cacti\rra\localhost_mem_buffers_3.rrd --template mem_buffers 1111101540:U
03/17/2005 04:19:00 PM - CMDPHP: Poller[0] Time: 0.2791 s, Theads: N/A, Hosts: 6
03/17/2005 04:19:00 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
03/17/2005 04:19:00 PM - CMDPHP: Poller[0] Host[1] CMD: perl C:\cacti\scripts\unix_processes.pl, output: U
03/17/2005 04:19:00 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
03/17/2005 04:19:00 PM - CMDPHP: Poller[0] Host[1] CMD: perl C:\cacti/scripts/unix_users.pl, output: U
03/17/2005 04:19:00 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
03/17/2005 04:19:00 PM - CMDPHP: Poller[0] Host[1] CMD: perl C:\cacti/scripts/loadavg_multi.pl, output: U
03/17/2005 04:19:00 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
03/17/2005 04:19:00 PM - CMDPHP: Poller[0] Host[1] CMD: perl C:\cacti/scripts/linux_memory.pl SwapFree:, output: U
03/17/2005 04:19:00 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
03/17/2005 04:19:00 PM - CMDPHP: Poller[0] Host[1] CMD: perl C:\cacti/scripts/linux_memory.pl MemFree:, output: U
03/17/2005 04:19:00 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
03/17/2005 04:19:00 PM - CMDPHP: Poller[0] Host[1] No host availability check possible for '127.0.0.1'.
03/17/2005 04:19:00 PM - CMDPHP: Poller[0] Host[1] SNMP: Device does not require SNMP
03/17/2005 04:19:00 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
03/17/2005 04:19:00 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
03/17/2005 04:19:00 PM - PHPSVR: Poller[0] DEBUG: FILENM: c:\cacti\script_server.php
03/17/2005 04:19:00 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: c:/cacti
03/17/2005 04:19:00 PM - PHPSVR: Poller[0] DEBUG: GETCWD: c:/cacti
03/17/2005 04:19:00 PM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
03/17/2005 04:19:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:\php\php-win.exe, ARGS: -q c:\cacti/cmd.php 0 8]
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

All of the following responses are correct. However, the scripts were intended for a Linux box, you have a windows box. Please create a new host with the type Windows2000/XP and create from there.

Everything else looks good.

TheWitness

Code: Select all

03/17/2005 04:19:00 PM - CMDPHP: Poller[0] Host[1] CMD: perl C:\cacti\scripts\unix_processes.pl, output: U 
03/17/2005 04:19:00 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result: 
03/17/2005 04:19:00 PM - CMDPHP: Poller[0] Host[1] CMD: perl C:\cacti/scripts/unix_users.pl, output: U 
03/17/2005 04:19:00 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result: 
03/17/2005 04:19:00 PM - CMDPHP: Poller[0] Host[1] CMD: perl C:\cacti/scripts/loadavg_multi.pl, output: U 
03/17/2005 04:19:00 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result: 
03/17/2005 04:19:00 PM - CMDPHP: Poller[0] Host[1] CMD: perl C:\cacti/scripts/linux_memory.pl SwapFree:, output: U 
03/17/2005 04:19:00 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result: 
03/17/2005 04:19:00 PM - CMDPHP: Poller[0] Host[1] CMD: perl C:\cacti/scripts/linux_memory.pl MemFree:, output: U 
03/17/2005 04:19:00 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result: 
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?
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I am somewhat befuddled that you have 7 hosts and only 1 is being polled. Is that accurate?

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?
prose
Posts: 8
Joined: Thu Mar 10, 2005 2:56 pm

Post by prose »

I think i completely broke it now. :) All new graph creations end up with some kind of iteration of this:

RRDTool Says:

ERROR: can't parse '#00CF00:Inbound'



Thanks for the help. I appreciate it.
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Looks like your templates are hosed.

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?
prose
Posts: 8
Joined: Thu Mar 10, 2005 2:56 pm

Post by prose »

Where are these templates stored? Can I just overwrite them and try creating graphs again? I tried copying over a fresh copy of Cacti right over the entire /cacti directory and modified the config.php again. It appears to be giving me the same error message when try to create a new graph.

On another note. If I'm still having issues with this, do you think it's a good idea to use that one-shot-swat installation that someone posted a link to? I'd hate to uninstall all that i've done so far only to find that out that that other installation gives me the same problems.

Thanks for the help!
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

It's more difficult than that. If you are not too far in (without a MySQL backup), I would suggest that you start over. The other alternative is to find the broken Templates and then stand up a paralell installation and Export from it and then Import into the damged one.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests