[SOLVED] Should be easy fix for you guys. Cacti on XP

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

Moderators: Developers, Moderators

Neofate
Posts: 18
Joined: Sat Feb 02, 2008 11:10 pm

[SOLVED] Should be easy fix for you guys. Cacti on XP

Post by Neofate »

Heya,


Edit: You can use this info for reference -- But I have fixed this problem I believe -- Please go to my third post for current question *****
***********************************************


I used the Beta windows installer first on a Vista machine.. I quickly decided to uninstall that, and go with an XP machine to my left.

So I installed IIS , rebooted, and then ran the Beta installer.

It installed fine.

So I go to the post install guide, and follow the steps:

The task was there, and it was filled out properly.

Under the "Set password" for the (Run As) account.. I put in the password I log into windows with.

Is this correct?

The Run as was \xxxxx\Jared (Which is the account I select to log into windows) .. so I figured the password would be the password I use when selecting that account and logging in.

Just verifying that was right.

Ok.. So I move onto Configuring IIS:

I went to start-run and inetmgr,.. started the manager

The default web site was there.. as the guide showed. (Though on my computer it does have a stop sign icon next to it with 'error') --

Anyhow I selected properties.. and the second step under the Home Directory tab.. for the php5isapi.dll etc.. Was already done. Not real sure why that is in post installation, because the installer must do that automatically.

So onward I went.

I added the php5isapi.dll file to the ISAPI Filters tab. Which it was the only one in that section after I added it.

It is under the last step where I am confused.

It says to go to the properties on th 'Cacti Folder" under the default website.

However under my default website I do *not* have a "Cacti" folder.

To be specific:

I have:
IISHelp
Printers
Printer11
Printer12
Printer
officejet
Printer2
Printer7

No cacti directory. So close yet so far away.

What am I missing here?

Also.. There is a red stopsign icon as I mentinoed next to my "Default Web Site (Stopped)"

The error reads:

Error: Default Web Site (Stopped) -- Stopped -- *All Unassigned* -- 80 -- Unexpected error 0x8ffe2740 occurred.

Any help would be fantastic.

This is a straight forward install on an XP machine, with SP2 installed. Nothing special about it.

The router I am utilizing is a Linksys RV042 (Dual WAN) -- It has SNMP , logging, capabilities and is very capable of such. It has a section in the router for a webserver for such logging. Though this program has nothing to do with that I imagine.

I hope this is enough information -- The scheduled task is running, because every few minutes I see two boxes pop up in the middle of th screen doing something. They don't stay up long enough for me to see what they say. (Should they be popping up in the middle of the screen? -- Shouldn't this be something in the background that isn't obtrusive to the user?)

Lastly:

Once all this is done,.. How do I actually run Cacti? I am not familiar with running a webserver,.. but I am very technically inclined. So alot of this 'guide' install section goes with alot of assumed knowledge on the part of the user.

Do I go find the 'default web site' and open the html page?

As of now I don't think it would work anyhow, because if the Cacti folder isn't listed it seems something major is missing.

MySQL is running, IIS is running.. and all the services that were required for the install.

Any help is very appreciated,

Thanks

Jared
Last edited by Neofate on Sun Feb 03, 2008 12:10 am, edited 2 times in total.
Neofate
Posts: 18
Joined: Sat Feb 02, 2008 11:10 pm

Post by Neofate »

I do have the c:\inetpub\wwwwroot\cacti\

folder.

Again, let me know if there is some sort of logging I can provide to help diagnose. But I simply installed IIS via the control panel add/remove program dialogue. I verified it was working, and then ran the beta installer.

The beta installer said everything was running aside from MySQL. Which it installed itself as part of the package.

This is a basic, basic install. On an XP machine. So I hope someone can help here.

Though I notice these forums aren't exactly very active.

Thanks,
Neofate
Posts: 18
Joined: Sat Feb 02, 2008 11:10 pm

Internal Server Error 500

Post by Neofate »

Ok, now the Cacti folder shows up as it should, the Web Server no longer has the stopsign error. It is running.

So I try to access Cacti by:

http://localhost/cacti/index.php

I get a big fat -- HTTP 500 Internal Server Error:

What on earth is going on now you think?

Thanks for any help
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Double-check the PHP config in IIS per my installation guide. Create a PHPINFO page and see if that properly renders. Run: php -m at the command prompt; any errors?
Neofate
Posts: 18
Joined: Sat Feb 02, 2008 11:10 pm

Post by Neofate »

BSOD2600 wrote:Double-check the PHP config in IIS per my installation guide. Create a PHPINFO page and see if that properly renders. Run: php -m at the command prompt; any errors?
I got it working, to a degree. Thanks for the reply.

I found some remnants of PRTG in the registry so cleaned all of that out.. Completely uninstalled IIS, and Cacti again. Then reinstalled IIS.. rebooted. Installed Cacti. Did the post install (which alot of it are things that already exist.. really only one item that it lists that I needed to do that wasn't already done by default).

Then I browsed to http://localhost/cacti/index.php

And it prompted me for a login

I was like yay!

So I logged in, and now I'm at a new crossroad.

Nothing is automatic about this is it? lol.

First off, alot of the graphics aren't showing.. (have the boxes with the X in them) -- Could be browser setting though.

Second, I have no clue what I'm doing in trying to configure this thing.

My setup is as such:

RV042 Linksys Router -- (Dual WAN inputs) 4Port switch/VPN

I have two ISP connections going into the WAN1/WAN2 ports.. and Three wired computers off that router, and the 4th port is going to a WRT54G router I've turned DHCP off, and basically turned it into a Wireless access point for the new RV042 Business class router I mentioned. This AP serves 4 wireless clients.

As such, I now have a really reliable routing setup. The WRT54G was having alot of problems with the load , and needed a hard boot once a day at least, and would have connectivity issues with DHCP leases and so forth. Now everything is rock solid, and fast.

As an added bonus the RV042 is a businesss class Cisco router , with much more capability than your typical residential routers (IE: the linksys wrt54g).

The RV042 has SNMP built in, plus a host of other options.. so I know I can tap into that router as my main source (hub) of information to let Cacti pull the data from all IP's attached to it.

First problem I'm running into,.. Is I can't figure out how to add the router as a device in Cacti.

I go to Devices -- Type: Cisco Router, Status Any, Search (No clue what to put here.. tried public, private, rv042, and just blank) -- it won't find anything.

It finds the NIC on the computer I've placed Cacti on, which is an XP O/S box to my right.

I could really use some help in getting this stuff running , tapping into the aforementioned router so I can monitor all connected devices.

I see you replied just a few minutes ago -- I'm gonna send you a PM, and maybe we can talk on a messenging system or some sort.

Thanks,
Neofate
Posts: 18
Joined: Sat Feb 02, 2008 11:10 pm

log

Post by Neofate »

Well I'm reading through the FAQ -- Trying to do the leg work myself,.. and I set it on 'Debug' for a cycle. I manually ran it again so that is why one of the entries is it runs to 'often'.

Anyhow the log file is here:

http://webpages.charter.net/jaredguess/cactilog.txt



I changed browsers to Firefox -- and I still have no graph output. So something isn't occuring.

Maybe I just don't have anything setup to graph, I'm not really sure atm.
Neofate
Posts: 18
Joined: Sat Feb 02, 2008 11:10 pm

Post by Neofate »

Well it seems there might be a permissions problem. But when I go to properties and look at security and sharing. There is NO security tab.

So I can't set the security that way.

I've gone into the inetmgr and set security there.. and removed the 'read only' attribute to all folders and sub folders.. but I'm getting no where.

I'm getting the fget blah blah stream errors.. that will go on infintely.. which actually lock up the browser.

IE: When I look at the graph source/properties it will output:

Warning popen (c:/rrdtool/.............)

Warning feof(): supplied argument is not a valid stream resrouce in C:\Inetpub\wwwwroot\cacti\lib\rrd.php on line 119

or 120 .. and it goes on infintely until windows is out of virtual memory and the browser closes.

I'm stumped..
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Neofate wrote:Nothing is automatic about this is it? lol.
Not really (under basic configuration).
Neofate wrote:First off, alot of the graphics aren't showing.. (have the boxes with the X in them)
Delete the existing graphs/data sources and device. The cacti scheduled task is running every 5 minutes, right?
Neofate wrote:The RV042 has SNMP built in, plus a host of other options..
Have you verified snmp is actually working on it? Are you able to use net-snmp and snmpwalk the RV042? Another tool you could use is getif. Until you can get snmp data out of it, neither can cacti ;-).
Neofate wrote:First problem I'm running into,.. Is I can't figure out how to add the router as a device in Cacti.
Click on devices, click on add. type in a name, IP address, select the generic snmp host template, select the correct snmp version and type in the snmp community. Click create. Cacti should now show the system uptime in the top left portion of the screen.

Neofate wrote:Well I'm reading through the FAQ -- Trying to do the leg work myself,.. and I set it on 'Debug' for a cycle.
Log looks fine. Cacti collected data, parsed it and updated the rrd files. Are the files in your C:\Inetpub\wwwroot\cacti\rra\ directory getting updated every 5 min?
Neofate wrote:But when I go to properties and look at security and sharing. There is NO security tab.
Either due to the fact your file system is FAT32 (bad idea) or you haven't enabled the tab. Go to Folder Options and disable simple file sharing.
Neofate wrote:Warning popen (c:/rrdtool/.............)

Warning feof(): supplied argument is not a valid stream resrouce in C:\Inetpub\wwwwroot\cacti\lib\rrd.php on line 119
Those are all sure-fire signs of file system permission problems.

Did you run my installer with your antivirus on? If so, it blocked the file permission scripts from running. Read through my installation guide and re-set the various file/folder permissions.
Neofate
Posts: 18
Joined: Sat Feb 02, 2008 11:10 pm

Post by Neofate »

Neofate wrote:First off, alot of the graphics aren't showing.. (have the boxes with the X in them)
Guru wrote:Delete the existing graphs/data sources and device. The cacti scheduled task is running every 5 minutes, right?
Yes the service is running as it should. I haven't really added any devices.. But I'll work on deleting what I can.


Neofate wrote:The RV042 has SNMP built in, plus a host of other options..
Guru wrote: Have you verified snmp is actually working on it? Are you able to use net-snmp and snmpwalk the RV042? Another tool you could use is getif. Until you can get snmp data out of it, neither can cacti ;-).
Yes, I've verified SNMP is working on the router -- It has also picked up as a device now (I simply didn't see the 'add' button to the top right of the screen when trying to get the device added) :)

Neofate wrote:First problem I'm running into,.. Is I can't figure out how to add the router as a device in Cacti.
Guru wrote: Click on devices, click on add. type in a name, IP address, select the generic snmp host template, select the correct snmp version and type in the snmp community. Click create. Cacti should now show the system uptime in the top left portion of the screen.
Thanks -- That got the device. I actually used Cisco router though, as it is a Cisco router. Worked fine. I did have to select the check box and then click 'enable' for it to list as 'up'. But it is being polled now. Getting somewhere .


Neofate wrote:Well I'm reading through the FAQ -- Trying to do the leg work myself,.. and I set it on 'Debug' for a cycle.
Guru wrote: Log looks fine. Cacti collected data, parsed it and updated the rrd files. Are the files in your C:\Inetpub\wwwroot\cacti\rra\ directory getting updated every 5 min?
Yes they are being updated,.. and they are about 185KB. (Just added them 10mins ago or so).

However I still have no graphs.. It will list:

Default Tree:

Then centered are the various 'graphs' that don't exist.

IE: ipsec0, ipsex1, and so on that I pulled from the router. It is just a blue hyper link on each of them, that I can click on and it then pulls up more centered (like on center column of text) with daily 5 minute avg, weekly, and so on) -- But just words.. with no information.

Yet the RRD files are there? What on earth is the missing link here?

Again -- I've changed the permissions, and I get

Warning: popen (c:/rrdtool/rrdtool.exe info C:\Inetpub/wwwroot/cacti/rra/rv042_-_core_dual_wan_traffic.. ok it just crashed the browser out before I could read it and type in it -- But the same fget, commands that say stream invalid or something.

Yet the RRD files are there being updated.

I just opened one in notepad to get a glimpse, and it has a little info in the code..

Like RRD 0003

Traffic_In COUNTER traffic_out COUNTER AVERAGE .. etc. So that must be the proper file data, I'm just now stuck on getting cacti to display these polls into a graph form. I've set the permissions to 'full' I even set the permission from my root C: drive just to make sure I didn't miss anything. (The computer this is running on has nothing sensitive/important/valuable -- so I'm not worried about security )

I feel like I"m just one little fix away from finally getting results. I appreciate your patience.


Neofate wrote:But when I go to properties and look at security and sharing. There is NO security tab.
Either due to the fact your file system is FAT32 (bad idea) or you haven't enabled the tab. Go to Folder Options and disable simple file sharing.
Neofate wrote:Warning popen (c:/rrdtool/.............)

Warning feof(): supplied argument is not a valid stream resrouce in C:\Inetpub\wwwwroot\cacti\lib\rrd.php on line 119
Guru wrote: Those are all sure-fire signs of file system permission problems.

Did you run my installer with your antivirus on? If so, it blocked the file permission scripts from running. Read through my installation guide and re-set the various file/folder permissions.
Yeah I figured as much.. Your tip to turn off simple file sharing did the trick on the security tab. But still no dice. I have the feof, etc errors.. that are never ending. They keep going infinitely literally if I select the 'wrench icon', then the browser will shutdown (firefox) after 10 seconds or so of this ..

As for the installer -- No I made sure everything was off. In fact I totally disabled AVG and then rebooted with it out of the startup.

I'm wondering if an uninstall - reinstall might work. There is one thing preventing this from occurring. But since I changed ALL permissions for all accounts in ALL directories and subdirectories of all installed programs a reinstall wouldn't make a difference on that permission.

Help! :)

I was about to give up on this, but I think I'm really close to getting the monitor going, finally, and really utilizing the data from this router among the other great tools added by default.

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

Post by BSOD2600 »

Alright, so you're down to just ntfs permission problems. Read my installation guide and re-apply the correct settings on the files/folders. Link in my signature.
Neofate
Posts: 18
Joined: Sat Feb 02, 2008 11:10 pm

Post by Neofate »

BSOD2600 wrote:Alright, so you're down to just ntfs permission problems. Read my installation guide and re-apply the correct settings on the files/folders. Link in my signature.
Yes, I thought I mentioned this in the post above -- But I've applied ALL permissions read write execute/change etc to every account on every folder and subfolder listed.

Nothing has changed.

What can I do from here?
Neofate
Posts: 18
Joined: Sat Feb 02, 2008 11:10 pm

Post by Neofate »

Let me add to this -- So you can see exactly everything I am:

Anyhow --

I've gotten Cacti up to one last , limiting, problem.

It opens, I connect to my router,.. verified SNMP is working fine -- It pulls information.

Cacti is creating RRD files, polling as it should.

But I get infinite stream errors -- Things such as:

Warning: fgets(): supplied argument is not a valid stream resource:

That stream on and on if I try to use the option to look at "graph source/properties"

The author/guru of it says it has to be a NTFS file permission problem.

So I have set every account under every folder to Maximum access.. read, write, change , execute and so forth.

Still nadda.. I can't get it to output the graphs.

I won't post the pictures on the forums because they are sized at 1024x768 -- But you can click each of these to see what I am speaking of:

Graphs of Cacti, or lack there of:

http://webpages.charter.net/jaredguess/cactinograph.jpg

The error when I go to device properties in the graphs:

http://webpages.charter.net/jaredguess/cactierror.jpg

Proof of permission status: (Every directory and subdirectory has this permission state, NTFS file system, and all the accounts (EXCEPT Owner) has full permissions). *When I change owner, it just reverts back to no check marks on apply*.

http://webpages.charter.net/jaredguess/ ... ission.jpg

The RRA area, for RRD files --

http://webpages.charter.net/jaredguess/cactirra.jpg

The log files, expanded:

http://webpages.charter.net/jaredguess/cactilog.jpg

Proof positive the router is being detected, via SNMP:

http://webpages.charter.net/jaredguess/cactirouter.jpg

What, finally, I am getting when I click on the 'graphs' section. Hard to put into words, but a picture tells it all:

http://webpages.charter.net/jaredguess/cactidisplay.jpg

---

Maybe that will shine some light on the problem?

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

Post by BSOD2600 »

1) go to graph management, click on a graph. enable graph debugging. Paste the FULL contents of the outputted text.

2) Fire up Sysinternals FileMon. Run it without filtering anything. Clear Filemon, try to view a SINGLE graph, then stop Filemon logging. Save it to file and post as an attachment. We're looking for accessed denied errors...
Neofate
Posts: 18
Joined: Sat Feb 02, 2008 11:10 pm

Post by Neofate »

BSOD2600 wrote:1) go to graph management, click on a graph. enable graph debugging. Paste the FULL contents of the outputted text.

2) Fire up Sysinternals FileMon. Run it without filtering anything. Clear Filemon, try to view a SINGLE graph, then stop Filemon logging. Save it to file and post as an attachment. We're looking for accessed denied errors...
Ok I will do all of that.

But, what I've done.. because I'm just honestly sick of any possible previously installed programs, bloated directory, or just corrupted OS problems making this an issue --

So I have completely wiped the Partition, reformatted as NTFS again. And am in the process of installing Windows XP w/SP2.

So this will be a completely clean slate. I am not going to install a single program , aside from IIS which has to be installed from the CD, before installing Cacti.

I am ALSO going to log in and run this under the Administrator account to prevent any permission problems as I install this again.

Basically this is the 'ideal' slate for this installer.

If it doesn't install correctly this time, I will be completely confused as to why it won't work because there would be nothing standing in the way of the installer working as intended. (That is if the installer truly installs correctly) -- And I assume it does.

It just completed installation, so I am now doing the basic network stuff/account login and IIS then installing cacti.

Will report back shortly if it works, or not.
Neofate
Posts: 18
Joined: Sat Feb 02, 2008 11:10 pm

Fresh XP install -- What I do exactly

Post by Neofate »

*If you skip down some, you will see the steps I take to install this EXACTLY* It might indicate something I am leaving out or doing wrong.*



Ok -- made some more progress.

Currently rebooting the machine for a 4th time.

I just added the router, it was picked up, and is listed as "up" and is showing correct information via SNMP via the Device area.

Localhost showed 'down' in red -- but I cleared it, and disabled, then re-enabled .. and now it is showing 'up' in green.

However, I first had boxes with an X in them on graphs. Then when I went back to console, then back to graphs, it gave me the SAME picture as before.

http://webpages.charter.net/jaredguess/cactinograph.jpg

BUT -

Big difference here.. when I click on the Wrench icon, the source/properties. I no longer get the errors of doom.

It spits out what it is doing basically and fits on one screen.

So that is positive.

Which is why I am simply rebooting to see if maybe it will help?

I will take a snapshot of the output, or maybe just copy and paste it into my next post when I press the Wrench icon/source/properties.

Hope you are keeping up with this BSOD.

If it doesn't work on a Fresh install on a NTFS partition, using only the administrator account (ctrl-alt-delete) -- Also creating a seperate account called 'poll' with pw, 'poll' that I use for the polling so it doesn't keep popping up on the screen. Following the post install directions exactly (I've memorized them) -- Then the installer must have some sort of problem with XP - SP2.

After this, I suppose I might need to manually install this thing, because if no graphs appear after this reboot (it is installing some automatic windows updates atm..) -- then it has to be an installer problem.

Again, not knocking the installer -- But for my copy of Windows 32 bit, XP, with SP2 included. On an AMD T-bred-1700, and an Epox 8RDA+ motherboard. It just doesn't like it.


*Begin exact Install/Post install steps*


Here is what I do exactly on install:

A) I make sure no programs are running.

B) I open control panel

C) I open add/remove programs

D) I select windows components.

E) I click the check box next to IIS

F) It prompted for my Windows CD before, but after this fresh install it installed IIS from the HD. I suppose that is how it is supposed to work.

G) I then reboot the computer.

H) I then download the Cacti self-installer .exe.

I) I run it.

J) It says: IIS is running, SNMP is not, mySQL is not. (It is my understanding the installer installs the two that are not running, and IIS is the only requirement.

K) It installs fine. I again, reboot.

L) I then do post install -- First I go to control panel --> Task scheduler. I verify cacti.job is there. I go to properties and change the user from admin to 'poll' and enter password.

I reboot

Then I go back to task scheduler. I verify the task is being run every 5 mins. (It is)

Then I go to start-run-type in "inetmgr" -- I right click on default web site. -- I select properties.

I go to home directory tab

I am supposed to add the .php with php5isapi.dll -- (Though this could be removed from instructions, because it is always already done with XP SP2).

I then click the ISAPI filters tab.

There are no extensions listed here.

I add the php filter name.

I browse to the 'same' executable as the .php, c:\php\php5isapi.dll

I select OK.

I right click the Cacti folder, and select properties.

I select the Documents tab.

Index.php is always there by default, so I simply use the arrow keys on the right to move index.php to the top. I click OK.

This completes the post install steps.



M) I then Reboot the computer

N) I use a fresh install of Firefox, and make my homepage http://localhost/cacti/

O) I enter admin and cactipw -- This brings me to where I am now.

Am I missing anything?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest