Unable to create Graphs

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

Moderators: Developers, Moderators

Magharl
Posts: 15
Joined: Thu Aug 25, 2005 9:25 am

Unable to create Graphs

Post by Magharl »

Hi.

I have recently installed CACTI ( for the first time ), and i am unable to create any grpahs. I'm getting an error from RRDTool which is unable to create the .rrd files required. I'm running Xampp v1.4.14 on Window 2000. Cacti v 0.8.6, All seems ok with the poller script. Attached are my log files..... Any help would be great.
Attachments
cacti.log.txt
(15.13 KiB) Downloaded 129 times
rrd output.txt
(1.2 KiB) Downloaded 155 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) all those double slashes are bad in your paths.
2) Turn the polling level in cacti to debug (Settings | Polling level) for one cycle and paste the output of the log file (./cacti/cacti.log). If it contains WEBLOG entries, then don't bother posting since they just clutter up the log. Turn off WEBEVENTS logging and try again.
3) You might have to switch over to the real versions of php, mysql, perl and apache if Xampp doesn't work out.
Magharl
Posts: 15
Joined: Thu Aug 25, 2005 9:25 am

Update

Post by Magharl »

Hi.

I have reconfigured cacti so it's not using xammp, but i'm still not getting any graphs. Here are my log files.
Attachments
cacti.txt
(10.66 KiB) Downloaded 316 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Are the rrd files even getting created? If not, make sure the user running the scheduled task has the proper rights in your rrd folder to created/modify files.
Magharl
Posts: 15
Joined: Thu Aug 25, 2005 9:25 am

Post by Magharl »

Hi.

The rrd files are not being created.... The user that's running the poller has all the relevent rights on the rra folder. I'm stumped?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

What happens if you run poller.php with an admin account?
Magharl
Posts: 15
Joined: Thu Aug 25, 2005 9:25 am

Post by Magharl »

The account i'm running the poller with is an admin account and has full rights to the poller and rra folder.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

As an admin perform the following steps:

1) Turn logging to DEBUG
2) Open a Command Prompt
3) CD to the Cacti directory
4) Run the following command: c:\php\php.exe poller.php
5) You should see a number of OK messages. If you get errors post them.
6) Check your RRA directory for output.
7) If you don't get the OK messages, do the following:

a) mysql -u root -p cacti
>truncate table poller_output;
>quit

8) Then run c:\php\php.exe poller.php again.

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?
Magharl
Posts: 15
Joined: Thu Aug 25, 2005 9:25 am

Update

Post by Magharl »

I ran the poller command as you instructed using php-win.exe sas i'm running php5. There were no messages at all. I ran the command using php.exe and i recieved a variety of warnings, which are attached.
I aloso performed the mysql command and ran the poller again with both php.exe and php-win.exe to no avail. No files are being created in the rra directory. Also, i have attacherd my updated cacti.log

Cheers,

J.
Attachments
cacti.log.txt
(35.44 KiB) Downloaded 190 times
php output.txt
(2.82 KiB) Downloaded 123 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

If you are running cacti 0.8.6g, you need to take the config.php.dist and copy it over config.php and run again. cmd.php is running fine, you are not creating RRD files though. I don't understand the backslash issue either. But start with the new config.php.

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?
Magharl
Posts: 15
Joined: Thu Aug 25, 2005 9:25 am

Update

Post by Magharl »

I was running cacti version 0.8.6f... I upgraded to 0.8.6g and followed the 'upgrade wizard'.... There doesn't apear to be a config.php.dist on my system anywhere. I have to amend the config.php file so the mysql password is correct and that its using mysqli instead of mysql. Other than that it's standard. Ran cmd.php again to no avail.
Magharl
Posts: 15
Joined: Thu Aug 25, 2005 9:25 am

Linux

Post by Magharl »

Am i better off building this on a linux box as i' seemed to have hit a brick walll here?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

If you're more comfortable with linux, maybe.

1) Are you using the cygwin build of rrdtool?
2) You might need to install php and mysql instead of Xampp. I recall another user having problems with that too.
Magharl
Posts: 15
Joined: Thu Aug 25, 2005 9:25 am

Update

Post by Magharl »

Hi.

I'm using the latest version of rrdtool. It's rrdtool-1.2.6-win32-perl58.zip....... I did uninstall xampp and reconfigured cacto with the individual Services.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

WRONG!

Did you pay attention to the sticky at the top of the forum or the Windows install instructions? You must use the rrdtool cygwin build, NOT Win32.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests