>> Solved That Auth Bug, And ISAPI Errors with PHP 4.x

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

Moderators: Developers, Moderators

Post Reply
LarryJAdams@comcast.net

>> Solved That Auth Bug, And ISAPI Errors with PHP 4.x

Post by LarryJAdams@comcast.net »

First, the Auth Bug. When you place the Cacti folder in c:\inetpub\wwwroot\cacti and then specify /cacti for the "path_webcacti" field in the settings table you can login. The problem is that when you do that the cmd.php will fail because it now does not know how to find the RRA folder (*.RRD files). If you instead place c:\inetpub\wwwroot\cacti in the field "path_webcacti" then you can view graphs, but can not login.

Please help! I would rather get the fixes from you, but let me know.

Now that nasty ISAPI problem that I have been fooling with. There is one line in the PHP install.txt that you must read carefully. It states the the IUSR_<HostName> must have "Execute" privaleges to the C:\PHP folder. Once you do that and move the correct files to the C:\WINNT\SYSTEM32 folder, you are styling.

I would also like to see a "remove verification dialog" and some checking to see if an interface already exists. This has caused me major problems. Also, the naming of each of the sections, especially add graph and resultant interface names drives me batty. I would rather name the interfaces by the router/switch host followed by the interface id rather than the interface IP.

Also, it would be nice to be able to format the default graph and it's parameters for the "Add Graph" function when reviewing the SNMP Interface information. I would like to see the Maximum values in my default graph. I could go on-and-on, but that is it for now.

Sincerly,

Larry Adams
:wink:
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

I saw that you fixed the login problem in another post, so I'll skip that.

I think remove verification for everything in cacti would be a good thing when you come to think of it. It is too easy to accidentally click a "Remove" link and wipe out something important including its child records. Checking to see if an interface exists is also a good idea (adding it to my palm now...)

Isn't the default data source/graph naming convention already:

<ipaddress>_<interfacenum>

This results in names like:

traf_216_37_141_6_3

Being able to customize the graph that results from "Make Graph" will come with graph templating whenever that comes.

-Ian
SoSad

>> More Features <<

Post by SoSad »

Ian,

I have been thinking about the "Data Input" section. I think I would like to create "Data Input" called "Cisco 7602 Router Temperature" that would be sort of like Get SNMP Data, but would already have the base MIB information and contain a default graph setup. For example, the 7206 router has 3 OID's for Inlet, Outlet, and Hotspot. Would like to see the three OID's graphed in three different colors and then placed on the graph.

This would require some form of a re-write to have a hierarchy with default graph settings. Then to create your graph, you simply hit create graph, pick the "Cisco 7602 Router Temperature" and specify an IP Address and community string.

Think about it...

LarryJAdams@comcast.net
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

This is exactly the kind of thing that I want to do with templating in cacti. You will be able to create a template that contains the information nessesary to:

- Gather the specific data from the host
- Graph that data using a template

So basically, you will be able to add the IP Address and Community; and make a new "Cisco 7602 Router Temperature" graph with only one click.

I can't wait until I can get this done.

-Ian
LarryJAdams@comcast.net

>> Working on the cmd_start... <<

Post by LarryJAdams@comcast.net »

Glad to see you like the idea. I am looking into the cmd_start, cmd_proc thing that was submitted to increase speed. Would like to add the max run amount bit (i.e. 40 at a time max), but need to know if there is a Win32 process id that we can get from PHP when it call's another program? I know that with the with ps -ef | grep ... we can see if a specific task is still alive in order to submit another, but don't know where I can go for Win32. Any help would be appreciated. I'm thinking of something about as follows:


Initialization:
id=1
queue_limit = "get queue limit variable from settings"
submit_count = 0
initial_load_complete = false
initialize process queue array with nulls

Mainline:
get first rrd_file
while no more rrd's to process
if submit_count <= queue_limit
if submit_count = queue_limit
initial_load_complete = true
endif
spawn php script to collect data
get process_id of spawned process store in array.
submit_count = submit_count + 1
active_count = active_count + 1
end_if
if initial_load_complete
while active_count >= queue_limit and wait limit has not been exceeded
sleep for 5 seconds
for each entry in queue process id array
check process id
if process is no longer active
active_count = active_count -1
endif
next
endwhile
endif
get next_rrd entry
endwhile

Finalization:
If you active queue count is 60 then you will be done 60 times quicker. Hurrah. You can then set the count for whatever you machine can handle. Clean and simple. I know many languages, but I don't know PHP or Perl. So other than pseudocode, I don't have too much to offer.

Larry
eyechart
Posts: 49
Joined: Thu Apr 25, 2002 11:48 pm

Try using pstools from www.sysinternals.com

Post by eyechart »

I know that with the with ps -ef | grep ... we can see if a specific task is still alive in order to submit another, but don't know where I can go for Win32.
See my post on this thread http://www.raxnet.net/board/viewtopic.php?t=307 for some more information.

they have a tool called pslist that works a lot like the unix ps command. One nice feature is that you can point it to other winnt/2k/.net servers and grab their process list remotely.

combine this utility with the usual awk/sed/grep approach and you can get the PIDs you need. Hope this helps.


-ec
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest