So near and yet so far

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

Moderators: Developers, Moderators

Post Reply
Gak
Posts: 16
Joined: Mon Jul 31, 2006 12:54 pm

So near and yet so far

Post by Gak »

I'm installing Cacti (latest available as of a couple weeks ago) under WinXP with Apache 2 and PHP 5. Some stumbles along the way, but I've got everything set, I can log in, create devices, etc. What I'm trying to monitor is bandwidth on Cisco device interfaces - certainly not anything unusual.

I can create a device, and the SNMP query comes back with the interfaces, their MAC and IP addresses and all that, so I'm OK there. So my next step is to create a graph, right? I select the interfaces I want to graph, keep the default "In/Out Bits" graph type, and hit "Create". At the top of the screen I get back "+ Created graph:" So far so good.

Yet then I go to "Graph Management", filter by the host I just created, and get "No Graphs Found". I generally consider myself capable of reading and following instructions, and have been through the Install guide and the manual, but they seem to assume that at this stage it Just Works. Chapter 6 of the doc is what, 2 pages? This step should have been simple, no?

I was eventually able to create some graphs by some long and involved procedure I don't understand myself and probably couldn't repeat, involving creating data sources corresponding to some of the interfaces, but it just seems too complex for doing more than one router, let alone scores.

What am I missing here?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Sounds like you've gotten a lot further than many of the posters in here ;-).

As for your problem, very weird. When you're in that cisco device and go back to the 'create graphs for this host' screen, are the existing interfaces which you previously told it to graph, grayed out (signifying they're already being graphed) ?

In graph management, if you don't select any host and instead select All, do you see any devices?

Have you applied all the patches for Cacti?
Gak
Posts: 16
Joined: Mon Jul 31, 2006 12:54 pm

Post by Gak »

BSOD2600 wrote: As for your problem, very weird. When you're in that cisco device and go back to the 'create graphs for this host' screen, are the existing interfaces which you previously told it to graph, grayed out (signifying they're already being graphed) ?
No, they are not.
BSOD2600 wrote:In graph management, if you don't select any host and instead select All, do you see any devices?
I only see the one device for which I went through that whole creating-a-data-source song and dance.
BSOD2600 wrote: Have you applied all the patches for Cacti?
No I haven't. I'll do that tomorrow.

Thanks for taking the time to respond.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

If you're using MySQL 5 and haven't patched cacti, that is likely your problem. After patching cacti, you should drop the cacti database, reimport the cacti.sql file (it got patched too), and then redo the MySQL stuff.
Gak
Posts: 16
Joined: Mon Jul 31, 2006 12:54 pm

Post by Gak »

BSOD2600 wrote:If you're using MySQL 5 and haven't patched cacti, that is likely your problem. After patching cacti, you should drop the cacti database, reimport the cacti.sql file (it got patched too), and then redo the MySQL stuff.
No joy.

I am using MySQL 5. I applied the patches, except the one with the cacti.sql changes complained about applying them, saying that the patches had been reversed or already applied. Did all the SQL stuff over anyway. But now I've gone backwards, as loading cacti/index.php gives me a completely blank page. It's not an Apache or PHP problem, since I can load the standard php test file and it looks normal.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Gak wrote:I applied the patches, except the one with the cacti.sql changes complained about applying them, saying that the patches had been reversed or already applied.
I suggest you use the pre-patched files instead then. http://www.cacti.net/downloads/patches/ ... e-patched/

After patching, it seems it messes with NTFS security. Double check on all the files that were patched that they're correct.
Gak
Posts: 16
Joined: Mon Jul 31, 2006 12:54 pm

Post by Gak »

BSOD2600 wrote: I suggest you use the pre-patched files instead then. http://www.cacti.net/downloads/patches/ ... e-patched/

After patching, it seems it messes with NTFS security. Double check on all the files that were patched that they're correct.
Tried that, still no joy.

index.php comes up completely blank, so I can't very well configure things. I can run cactid.exe from the command line, but not poller.php, since it seems to try to pass '-' to the command interpreter somewhere (tells me '-' is not recognized as an internal or external command, etc.)

I think I may blow everything away and start over.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Sounds like php isn't properly set up if the page isn't loading at all. Did you try the php test page under the cacti folder? You back to apache or iis with these problems?

Yea, that error you're getting about the - is very weird. Sounds like a complete reinstall is in order.
Knight_DKN
Posts: 3
Joined: Thu Aug 10, 2006 12:58 am
Location: Melbourne, Australia

Post by Knight_DKN »

hrmm, I'm on the exact same path as you, the only thing different is that I couldn't get a graph at all. I did manage to get some interesting sql errors in the cacti log before I patched the install and ended up where you are with a blank index.php. I'm going to do a fresh install from the prepatched files and see if I can get it working.
Knight_DKN
Posts: 3
Joined: Thu Aug 10, 2006 12:58 am
Location: Melbourne, Australia

Post by Knight_DKN »

:D

Well it worked, as near as I can figure all I did different was intergrated the prepatched files before I started the installation... however I was pretty hyped up on several cans of coke and half watching a pirated copy of Click so...
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Knight_DKN wrote:Well it worked, as near as I can figure all I did different was intergrated the prepatched files before I started the installation...
That did it. As I've tried to iterate before, it's IMPERATIVE that cacti is patched before you try to set it up if you're using MySQL 5. That is why my install guide has you do this first.
Knight_DKN
Posts: 3
Joined: Thu Aug 10, 2006 12:58 am
Location: Melbourne, Australia

Post by Knight_DKN »

Definatly, the problem is though, I originally used the wget and patch tools in Cygwin to update the files, all that did was result in a corrupted install. It wasn't until I intergrated the prepatched files that I was able to get a functional installation.
Abandon all hope.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests