Cacti with IIS6, No Graphs, php error

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

Moderators: Developers, Moderators

Post Reply
AndyF
Posts: 5
Joined: Mon Nov 07, 2005 9:02 am

Cacti with IIS6, No Graphs, php error

Post by AndyF »

I've been going round and round in circles i think so in a last ditch effort i shall see if you can all help me along.

Setup

Windows 2003
IIS6
PHP 4.3.10
mysql 4.0.21
rrdtool-cygwin 1.2.9
cygwin - latest
net-snmp 5.2.2-pre1-1

All paths have been setup within the cacti admin page.

If i run php X:\websitelocation\poller.php

I recieve the following error:

"This script is only meant to run at the command prompt"

Also when i changed the localhost to be a windows server i recieve the error SNMP Error at the top of the page.

Could anyone enlighten me as to where i'm going wrong???

Thanks

Andy
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) read the guide in my signature

2) The snmp error for your windows 2003 host is likely caused because you did not specify a SNMP community in the SNMP service.
AndyF
Posts: 5
Joined: Mon Nov 07, 2005 9:02 am

Post by AndyF »

I dread the think the amount of times i've read your guide.... the only thing i haven't redone / gone over is to reinstall everything. which i'd rather not do as i prefer to understand the problem than bandage fix it.

The snmp problem with the local host does seem as if the snmp service isn't correctly configured as cacti reports the correct information in relation to the cisco router that is also setup on the server.

I've tried switching on the debugging but yet nothing is being reported in the cacti.log file (it's empty).

Would it possibly be because i'm running the php poller.php through a terminal server session??

Failing that maybe it doesn't like a space in the file name to the website, although why this would report the above mentioned error being related to script only being run in a command prompt i dunno.

I'll try and post some screens of the various configs / errors

Thanks

Andy
AndyF
Posts: 5
Joined: Mon Nov 07, 2005 9:02 am

Post by AndyF »

Linky to the paths setup within cacti

Linky to the php poller.php

Sorry about the masking...

Andy
Attachments
php poller.php
php poller.php
pollerphp2.jpg (21.09 KiB) Viewed 1333 times
Paths
Paths
paths.jpg (53.28 KiB) Viewed 1338 times
AndyF
Posts: 5
Joined: Mon Nov 07, 2005 9:02 am

Post by AndyF »

Isn't it satisfying when you solve your own problems.

Seems as if it was related to the php version updated to 4.4.1 and atleast the poller.php is working, haven't checked the rest of the stuff as yet.

Andy
AndyF
Posts: 5
Joined: Mon Nov 07, 2005 9:02 am

Post by AndyF »

Couple of interesting notes,

GET RID OF SPACES - It really doesn't like them especially RRDTool.
Check cactid, this may report the error that poller.php doesn't.
Try different php versions.

If all else fails reinstall using known software version.

HTH others

Andy
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest