I think I have run across every issue that you can possibly have with getting cacti installed on 2K3 and IIS 6.0. I've cleared them all except this one.
I am not getting rrd to generate graphs. I have created them via running rrdtool from the CLI. So I know that everything to that point is working. When I turn on graph debug I get the following.
Warning: fgets(): supplied argument is not a valid stream resource in "c:\Inetpub\wwwroot\cacti\lib\rrd.php on line 117"
I have looked at everything I can find but no luck so far. I have checked my rights to CMD.EXE and other suggested solutions but I'm turning it over to a higher power at this point.(Can I get a Witness) I figure that someone here has fixed this issue I just haven't found the post yet.
PLEASE HELP! I'm tired and want the boss off my back. He has a "buddy" running it just fine on Linux. I'm about to choke him and his Linux friend. I don't think either of them have a clue what a PITA it's to get this working on IIS6.
I hate to beg, but I'm not above it.
Poor newbie with graphing issues. Win 2K3 and IIS6.
Moderators: Developers, Moderators
Searching the Win32 forum for fgets(), it seems it's a permission problem. Double check cmd.exe / rrdtool.exe / php.exe have the IUSR_XXXX and IIS_WPG users with read/execute rights.
| 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 |
CMD.exe is RW for both and I've moved a cvopy of it to the c:\php directory which seems to help a little with the I/O due to reduced path searching.
PHP directory is RWXM for both
RRDTOOL is RWXM for both
I removed the inherited permissions on the cacti web directory and added explicit permissions for both users.
Same results
Which PHP modules does the poller call? I seem to be getting Module not found errors in the spawned processes. But it flashes by so fast I can't see it. If I could run the child processes manually maybe it woud give me more info. I get no errors reported in the cacti debug log. And I get no errors running cactid manually. Right now I have the poller running cmd.php. But it doesn't graph with either setting. I've watched the file I/O on the poller and I get no unexpected errors. Everything in c:\rrdtool and other directories opens and closes fine.
Keep the ideas coming I know this can be resolved. Thanks for your help.
PHP directory is RWXM for both
RRDTOOL is RWXM for both
I removed the inherited permissions on the cacti web directory and added explicit permissions for both users.
Same results
Which PHP modules does the poller call? I seem to be getting Module not found errors in the spawned processes. But it flashes by so fast I can't see it. If I could run the child processes manually maybe it woud give me more info. I get no errors reported in the cacti debug log. And I get no errors running cactid manually. Right now I have the poller running cmd.php. But it doesn't graph with either setting. I've watched the file I/O on the poller and I get no unexpected errors. Everything in c:\rrdtool and other directories opens and closes fine.
Keep the ideas coming I know this can be resolved. Thanks for your help.
Those module not found errors are not good. You should see them if you manually run: php <cacti path>/poller.php. Did you set the proper path to them in php.ini (look at extension_dir)?
I suggest you read the guide in my signature too.
A fast way to figure out where your fget errors are comming from is to use Sysinternals FileMon. Fire it up, add 'denied' to the highlighting section and look in the 'other' column. You should see something like "access denied COMPUTERNAME\USERNAME" when the problem occurs.
I suggest you read the guide in my signature too.
A fast way to figure out where your fget errors are comming from is to use Sysinternals FileMon. Fire it up, add 'denied' to the highlighting section and look in the 'other' column. You should see something like "access denied COMPUTERNAME\USERNAME" when the problem occurs.
| 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 |
Simple fix and yes it was a rights issue.
The server that I have is part of a Domain. I was assigning the rights to the Domain accounts and not to the local machine accounts.
How about adding that tidbit to the manual. ComputerName/IUSR_XXX.
Thanks for your assistance and patience with newbie issues.
James
The server that I have is part of a Domain. I was assigning the rights to the Domain accounts and not to the local machine accounts.
How about adding that tidbit to the manual. ComputerName/IUSR_XXX.
Thanks for your assistance and patience with newbie issues.
James
Who is online
Users browsing this forum: No registered users and 6 guests