[solved] Graphs do not display data
Moderators: Developers, Moderators
[solved] Graphs do not display data
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:
After that i got this in the graph management using the debug option turned on:
After this I manually executed the cmd.php file and got the following:
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.
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:
After that i got this in the graph management using the debug option turned on:
After this I manually executed the cmd.php file and got the following:
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.
Re: Graphs do not display data
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.
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.
Re: Graphs do not display data
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?
Does anybody know about something I could be missing here?
Re: Graphs do not display data
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.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Re: Graphs do not display data
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.
I am going to use Process Monitor in order to find out what's going on here.
Re: Graphs do not display data
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?
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?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Re: Graphs do not display data
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?
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?
Re: Graphs do not display data
Yes! The task should be running poller.php.zyndarius wrote:Am I doing somthing wrong here? Do I have to change the cacti task and run poller.php instead of cmd.php?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Re: Graphs do not display data
OMG!!! That was the mistake!! Now is working fine
Thanks for the last comment that helped me see the light xD
Thanks for the last comment that helped me see the light xD
Who is online
Users browsing this forum: No registered users and 1 guest