php error

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

Moderators: Developers, Moderators

Post Reply
williemerwe
Posts: 11
Joined: Thu Mar 22, 2007 3:28 am
Location: South Africa

php error

Post by williemerwe »

I have successfully installed cacti with the following specs:
Operating System: WinXP SP2
Webserver: IIS V5.1
Cacti: 0.8.6j
Cactid: 0.8.6i
MySQL: v4.1.7
PHP: 5.1.5
RRDTool (Cygwin or Win32 version): 1.2.15-cygwin-1.5.20
Net-SNMP: v5.4.0-1
Cygwin (cygwin1.dll version): 1005.24.0.0

The cacti is used to generate graphs from 3 different broadband bandwidth managers. The managers are set up so that different service types are grouped together in pipes and the pipes contain various virtual channels (VC = end user). I have the correct XML files which was written to make cacti compatible with these devices.

I have added the devices to cacti and created graphs for all the pipes. These work perfectly. When I try to add the created Data Query for the VCs, the page doesn't return as it did when I added the pipes' Data Query. It just returns a blank page. I then have to close the webpage and log into cacti again. When I then go to the same device, the Data Query indicates "Success", but with 0 items and 0 rows, hence, no graphs. When I could get an output from "Verbose Query", it indicated the following:
Notice: Undefined index: arg_index in

Code: Select all

c:\Inetpub\wwwroot\cacti\lib\data_query.php on line 98

Notice: Undefined index: script_path in c:\Inetpub\wwwroot\cacti\lib\data_query.php on line 98

Notice: Undefined index: arg_query in c:\Inetpub\wwwroot\cacti\lib\data_query.php on line 109

Notice: Undefined index: query_name in c:\Inetpub\wwwroot\cacti\lib\data_query.php on line 109

Notice: Undefined index: script_path in c:\Inetpub\wwwroot\cacti\lib\data_query.php on line 109

Notice: Undefined index: arg_query in c:\Inetpub\wwwroot\cacti\lib\data_query.php on line 109

Notice: Undefined index: query_name in c:\Inetpub\wwwroot\cacti\lib\data_query.php on line 109

Notice: Undefined index: script_path in c:\Inetpub\wwwroot\cacti\lib\data_query.php on line 109

Warning: Cannot modify header information - headers already sent by (output started at c:\Inetpub\wwwroot\cacti\lib\data_query.php:98) in c:\Inetpub\wwwroot\cacti\host.php on line 129

I have no idea what the problem might be or how to rectify.
I checked that the Data Queries were created correctly and also removed and re-installed php, but no success.

Any assistance will be appreciated.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

NTFS permissions have not been properly set. Read my installation guide (in my signature).
williemerwe
Posts: 11
Joined: Thu Mar 22, 2007 3:28 am
Location: South Africa

Post by williemerwe »

I followed your installation guide stp-by-step for the installation. I have rechecked that all NTFS permissions are exactly as in your manual.
After rechecking, I tried again, but no success. Situation is still exactly the same as before.
Still, when I click "Verbose Query", it returns a blank page.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Have you made sure those files in the cacti directory have read/execute rights for your IUSR_ account?

Per the readme sticky, fire up FileMon and see whats getting denied when you click on verbose query.
williemerwe
Posts: 11
Joined: Thu Mar 22, 2007 3:28 am
Location: South Africa

Post by williemerwe »

Ok, so I verified that all permissions are set as per your install guide. I actually changed that the users have "Full Control" on each folder/file mentioned, but no success. Situation remains the same.

I ran FileMon, and found only an error accessing the folder "c:\usr\snmp\persist\snmpapp.conf". I also changed the permission to this file to Full Control for the server's admin user. This did not solve the problem though. I then compared the FileMon results of the graphs that work and those that don't, but can't find any descrepancies. They're bothe same (before I made any changes), although some graphs work and the others don't.
I've attached the output of FileMon if you'd like to have a look.

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

Post by BSOD2600 »

1) Have you installed the plugin architecture?

2) Make sure the PHP cookie path is valid and the IUSR account has modify rights on it.

3) Honestly I still think its a NTFS permission problem. When you ran filemon, you didn't restrict it to any specific process right?
williemerwe
Posts: 11
Joined: Thu Mar 22, 2007 3:28 am
Location: South Africa

Post by williemerwe »

1. Which plugins? The only additional files needed for the specific device are 2 xml files, which I downloaded and applied.

2. PHP cookie path? I have again gone through your install manual and everywhere where permissions are mentioned, ensured the the mentioned user(s) have "Full Controll" to all files/folders needed.

3. I take your word for it, but I can't find any file/folder which has incorrect permissions. I just ran Filemon straight, no changes and no restrictions.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

If you haven't got anything set up yet, I suggest you try my windows installer, since it'll properly set up everything.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Is it just that template? Are others templates working properly? Please advise.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
williemerwe
Posts: 11
Joined: Thu Mar 22, 2007 3:28 am
Location: South Africa

Post by williemerwe »

Yes, as stated, the only additions I need are the 2 .xml files, nothing else. These files were written by by Cacti Forum Contributor "xeon" on 24Feb06.

The on part of the query, to graph "pipes", works 100%. Then, to graph "Virtual Channels" within pipes, doesn't.

I'm also talking to the manufacturer of the bandwidth manager, but he also experiences the same problem but has no idea what the cause is.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

ohhhh, so the "Undefined index:" error only happens with that one specific template you imported? If thats the case, then it IS something wrong with the template and not cacti.
williemerwe
Posts: 11
Joined: Thu Mar 22, 2007 3:28 am
Location: South Africa

Post by williemerwe »

Correct, one works, the other doesn't. I agree that it's not a problem specific to cacti, but I was hoping that someone can point me in a direction to pinpoint the cause in order to rectify.
williemerwe
Posts: 11
Joined: Thu Mar 22, 2007 3:28 am
Location: South Africa

Post by williemerwe »

One other thing I forgot about - when I Add the Data Query for the VC, it returns a blank page, not the Device page as it does when adding the Pipe Data Query. Then, when I access the Device Page again (have to go out to cacti frontpage), It shows the query added with "Success", but 0 rows and 0 items.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Alright so since its just a problem with the script, you should go back and post this problem in the thread where you got the script. The "Add the Data Query for the VC" is some other custom template? Sounds like it too isn't functional.

If you feel up to it, you could read through the documentation site and try to fix the script/template.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests