Yes, another Install Problem :(

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

Moderators: Developers, Moderators

Post Reply
msnyder
Posts: 2
Joined: Wed Mar 15, 2006 6:49 pm

Yes, another Install Problem :(

Post by msnyder »

Hi all.

I have installed Cacti according to the great documents that I was able to get my hands on.

I installed:

Win2k3 SP1
Apache 2.0.55
PHP 5.1.2
MySQL 5.0.18
Cactid 0.8.6g
RRD Tool 1.2.9
and patched Cacti per the instructions via Cygwin

When I go to http://localhost/cacti

I get the dreaded:

Fatal error: Call to undefined function mysql_pconnect() in C:\apache\Apache2\htdocs\cacti\lib\adodb\drivers\adodb-mysql.inc.php on line 355

I had tried to be a good newbie :) and listened to the directions about the old password stuff. I have attempted to use mysqli and mysql with php -- neither seems to make a difference.

When I go into MySQL, here is the information for my users:

mysql> select host,user,password from mysql.user;
+-----------+-------+-------------------------------------------+
| host | user | password |
+-----------+-------+-------------------------------------------+
| localhost | root | *97F170E6A1AA8B3FEC55F3D9184ADC9708C35BA7 |
| localhost | cacti | 6524bd8e257546cb |
+-----------+-------+-------------------------------------------+

Does that look like the old password stuff is working right?

I'd appreciate any help you guys can provide. Please let me know if there is any additional data I can provide to give someone smarter than me :) the info they need.

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

Post by BSOD2600 »

Looks like its the old password. I ran into this problem last night on xp pro when doing a fresh install of the latest stuff (all in one installer coming soon!). Anyways, after I rebooted the computer, then I was able to login fine.

You rebooted yet?
msnyder
Posts: 2
Joined: Wed Mar 15, 2006 6:49 pm

Yes, Twice...

Post by msnyder »

Unfortunately, it didn't help.

Where can I look next?

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

Post by BSOD2600 »

Try reapplying the old password again:

shell> mysql --user=root --password mysql
shell> UPDATE mysql.user SET Password = OLD_PASSWORD('cactipw') WHERE Host = 'localhost' AND User = 'cactiuser';
mysql> FLUSH PRIVILEGES;
Land
Posts: 9
Joined: Thu Mar 16, 2006 12:45 am

I am lucky after a restart, but...

Post by Land »

Seems same version as you application. I installed it yesterday. After the reboot, I can login and do some work.

Do you have a problem when you import from cacti.sql? In 1857, have a error, I skip it by change the availability value from 100.00000 to 99.99999.

I have other problems too, got this message by run c:/cacti/cactid.exe:
CACTID: Using cactid config file [cactid.conf]
CACTID: Version 0.8.6f starting
No log handling enabled - turning on stderr logging
NOTIFICATION-LOG-MIB: Module not found
NET-SNMP-AGENT-MIB: Module not found
CACTID: ERROR: Problem with MySQL: 'Out of range value adjusted for column 'availability' at row 1'
CACTID: ERROR: Problem with MySQL: 'Out of range value adjusted for column 'availability' at row 1'
Also i can not create graph for device, :(, reading document then.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

To avoid any errors when importing cacti.sql you must:
1) patch cacti first!
2) do NOT have sql-mode strict enabled in my.ini

To get rid of those NET-SNMP-AGENT-MIB messages, copy all NET-SNMP-*.mib files from the net-snmp mib directory to the php one.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests