I had posted sometime last week about MySQL errors that I was getting when loading pages, the problem is escalating as more devices are added into cacti. As of right now the program is nearly unusable.
We are currently polling 543 devices generating 657 graphs.
I was using Apache 2.0.48 but downgraded to 1.3.29 due to a coworkers advice, so I'm currently using 1.3.29.
Cacti 0.8.5
PHP 4.3.4.4
MySQL 4.0.18
Server is running Windows 2000 on an HP, 2.8ghz Dual Xeon, 2.5GB RAM and is dedicated soley to cacti
I'm using Cactid to poll the devices with the threadcount set to 1 (more than that caused the program to hang) This is the error that cactid returns when it runs (it happens at different points in the polling cycle):
Code: Select all
[14] SNMP v1: agad-15-c2950-01.tcom.purdue.edu, dsname: traffic_in, oid: .1.3.6.
1.2.1.2.2.1.10.49, value: 2422057254
[14] SNMP v1: agad-15-c2950-01.tcom.purdue.edu, dsname: traffic_out, oid: .1.3.6
.1.2.1.2.2.1.16.49, value: 1417058179
RRDCMD: update 'D:\htdocs\cacti\rra\agad15c295001_traffic_in_53.rrd' --template
traffic_in:traffic_out N:2422057254:1417058179
OK
Connecting to MySQL database 'cacti' on '127.0.0.1'...
** Failed: Can't connect to MySQL server on '127.0.0.1' (112)
D:\htdocs\cacti>
Code: Select all
Warning: mysql_connect(): Can't connect to MySQL server on '127.0.0.1' (10048) in path-to-cacti\lib\adodb\drivers\adodb-mysql.inc.php on line 318
Cannot connect to MySQL server on '127.0.0.1'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
I moved the php scripts all over to a persistent connection, that seems to have elimiated a few of the errors on the website. I attempted to try and load balance cmd.php (by changing the devices it grabs from the SQL) and when I run the poll it seems to work successfully, but writes nothing into the RRDs and no data is graphed.
This graph is a result of the error, it was recently added and is near the bottom of the list.
I appreciate any and all advice you guys can throw my way