[solved] Graphs do not display data

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

Moderators: Developers, Moderators

Post Reply
zyndarius
Posts: 7
Joined: Wed Jul 20, 2011 8:14 am

[solved] Graphs do not display data

Post by zyndarius »

Greetings. I've recently installed cacti on a windows machine. Everything seemed to went fine, but unfortunately I can't get graphs to display data.

About the information I can provide and the things I¡ve done so far:

OS: Windows XP SP3 Pro
cacti: cacti-0.8.7g.zip
rrdtool: rrdtool-1.2.15-win32-perl58.zip
net-snmp: net-snmp-5.4.0-1.win32.exe
apache and mysql services: xampp-win32-1.7.4-VC6-installer.exe

I read that some linux templates do not work in windows so I created a Localhost starting from cero using no template and manually added the Data query: SNMP - Interface Statistics. After clicked on Create Graphs for this Host, selected my NIC and created an IN/OUT bits graph. The out put said that rrdtool was unable to access the corresponding rrd file, so I manually executed the poller.php.

I got the following output from the command:
Image

After that i got this in the graph management using the debug option turned on:

Image

After this I manually executed the cmd.php file and got the following:
Image

Cacti task is programmed to be executed in windows tasks every 5 min (equal to the time interval specified in cacti settings).

I don't know what could be happening here.

Thanks in advance for any advice.
zyndarius
Posts: 7
Joined: Wed Jul 20, 2011 8:14 am

Re: Graphs do not display data

Post by zyndarius »

After further examining the situation I can tell that cacti itself, when adding new graphs is unable to create new rrd files. After "creating" the new graph which seems to work fine, one goes then to Graph Management to see the graph and finds that rrdtool says for instance:
ERROR: opening 'C:/xampp/htdocs/cacti/rra/5/22.rrd': No such file or directory

Does anybody know how to enable whatever tool it might be to write the current directory succesfully?

Thanks in advance for any possible help.
zyndarius
Posts: 7
Joined: Wed Jul 20, 2011 8:14 am

Re: Graphs do not display data

Post by zyndarius »

I recently changed the version of rrdtool to one pointed by BSOD2600 in another topic (http://forums.cacti.net/about28174.html) but the problem persists, even when this version seems to be non-perl based for win32.

Does anybody know about something I could be missing here?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Graphs do not display data

Post by BSOD2600 »

Most likely its a NTFS permission issue. Make sure your cacti scheduled task account has modify permissions on the \cacti\log\ and \cacti\rra\ folders. Sysinternals Process Monitor would really reveal where the problems lay... but it's not for the faint of heart.
zyndarius
Posts: 7
Joined: Wed Jul 20, 2011 8:14 am

Re: Graphs do not display data

Post by zyndarius »

I am running cacti scheduled task as Administrator, but it seems I am not getting good results. Nonetheless, where do I have to set up NTFS permission to those two folders?, so I can go and modify them explicitly if necessary.

I am going to use Process Monitor in order to find out what's going on here.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Graphs do not display data

Post by BSOD2600 »

You're asking how to set NTFS permissions on a folder?

Lets recap. When you manually run php <cactipath>\poller.php, you get valid output and the rrd files are updated. When the scheduled task runs poller.php, no output and/or rrd files are NOT updated. right?
zyndarius
Posts: 7
Joined: Wed Jul 20, 2011 8:14 am

Re: Graphs do not display data

Post by zyndarius »

Yes, that's right. When I manually run poller.php I get rrd files in the rra folder but with no data, just the empty graphic.

But the cacti task that runs cmd.php generates no rrd files.

Am I doing somthing wrong here? Do I have to change the cacti task and run poller.php instead of cmd.php?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Graphs do not display data

Post by BSOD2600 »

zyndarius wrote:Am I doing somthing wrong here? Do I have to change the cacti task and run poller.php instead of cmd.php?
Yes! The task should be running poller.php.
zyndarius
Posts: 7
Joined: Wed Jul 20, 2011 8:14 am

Re: Graphs do not display data

Post by zyndarius »

OMG!!! That was the mistake!! Now is working fine :D

Thanks for the last comment that helped me see the light xD
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests