No graph on W2k3 & IIS6 PHP CACTI 0.84

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

Moderators: Developers, Moderators

Post Reply
DeDlCobr@l

No graph on W2k3 & IIS6 PHP CACTI 0.84

Post by DeDlCobr@l »

When i use graph debug, i get the following text and a broken graph.
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source
ERROR: opening 'D:\Websites\cacti/rra/localhost_traffic_in_9.rrd': No such file or directory
My PHP 4.3.4 Info:
http://status1.party-place.nl/test.php

Also i've made a little test script to see if rrdtool is running well

Code: Select all

<?php
$output = `cmd /C c:\\rrdtool\\rrdtool.exe`;
echo $output;
?>
This script is running @ http://status1.party-place.nl/test2.php

Help me please 2 fix this, i was very enthusiastic about the interface of CACTI but still it's not working on my server.
DeDlCobr@l

Post by DeDlCobr@l »

My php.ini
Attachments
php.ini.txt
Forgot my php.ini maybe it's usefull
(39.57 KiB) Downloaded 223 times
DeDlCobr@l

Post by DeDlCobr@l »

If i click on Turn On Data Source Debug Mode. i get the folowing data :
c:/rrdtool/rrdtool.exe create \
D:\Websites\cacti/rra/localhost_traffic_in_9.rrd \
--step 300 \
DS:traffic_in:COUNTER:600:0:100000000 \
DS:traffic_out:COUNTER:600:0:100000000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
telec

Post by telec »

hehe, i just got past the same problem...my suggestion is attempt the following tasks:

1. Verify the host is correct:
A. Check IP and Community name
B. Download ucd-snmp and run snmpwalk to verify the host you are quering is a valid one.
The syntax is:
snmpwalk [hostip] [community name] .1.3.6.1.2.1
you should recieve a ton of shit!
2. Verify permissions:
A. Be sure IUSR_[computer name] has permissions to read/execute on c:\windows\system32\cmd.exe
B. They need permissions for c:\inetpub\wwwroot\cacti too
3. You do not need anything under the ISAPI filters in IIS
4. If all of this is good, then my suggestion is to make sure you have run
c:\php\php.exe c:\inetpub\wwwroot\cacti\cmd.php as administrator at least once while the host have been added. Scroll up in the terminal window to verifiy your host has queried for information. If ALLL this fails, your where i am. I think i might be having problems with SQL or something, i have 5 hosts working fine, but the 6th host, and XP machine will not show up when i run cmd.php! welp good luck ttyl
DeDlCobr@l

Post by DeDlCobr@l »

1.A Host is correct IP & Community name (I also use an other SNTP tool)
B. i've a working config.

2.A Permissions are Ok my test2.php is using cmd.exe and works
B. Checked

3. Checked

4. Checked
DeDlCobr@l

Post by DeDlCobr@l »

I think i've found something weird but dont know how to fix it.
c:/rrdtool/rrdtool.exe create \ D:\Websites\cacti/rra/localhost_traffic_in_9.rrd \
!!! Please watch the slashes !!!

D:\Websites\cacti is the Dir. on the webserver

/rra/localhost_traffic_in_9.rrd is something i think cacti is generating itself. So could'nt this be the problem ?????

Where can i change the slashes ???
telec

Post by telec »

i dont think the slashes matter, i have everything running fine over here, im just having problems adding this XP machine, but my slashes are all whacky like that too....i've seen some other posts where someone brought up the slashes, and i think the overall response was that it doesnt matter
DeDlCobr@l

Post by DeDlCobr@l »

:D I've got it working.
It was a combination of problems. First of all the MIB's where missing from my D:\ partition where my website resides.
Second there where no write permissions for IUSR on the RRA dir.

It's working now with PHP in ISAPI mode, but still i'm thinking that the performance is poor. I'm now trying and testing whit a seperate Application Pool for cacti.

But still sometimes it looks like my browser hangs when creating a graph.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests