PHP ERROR ON CACTI, NO GRAPH

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
cvillegas
Posts: 5
Joined: Mon Aug 04, 2008 3:40 pm

PHP ERROR ON CACTI, NO GRAPH

Post by cvillegas »

Hi, I upgrade cacti 0.8.6j to 0.8.7.2b and have this error when try to run manually php -q poller.php --force. and no have any graph

PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 35 bytes) in /var/www/html/cacti/lib/database.php on line 190

can you helpme about this error? what i can do?
Pulsar
Posts: 10
Joined: Wed Aug 06, 2008 3:49 pm

Post by Pulsar »

Not enough RAM. Consider buying some more.
cvillegas
Posts: 5
Joined: Mon Aug 04, 2008 3:40 pm

Post by cvillegas »

This server have 2GB on RAM,

at php.ini change to memory_limit = 512M
max_execution_time = 120
max_input_time = 120

then i try to repair the cacti database and get all ok

but, still no have any new graph. no graph any more.

but get this other error then to change this values:
Attachments
cacti_bancolombia.JPG
cacti_bancolombia.JPG (404.34 KiB) Viewed 1528 times
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

It looks like you didn't properly upgrade the database for the new version and/or you don't have the plugin architecture properly installed.
[b]Cacti Version[/b] - 0.8.7d
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
cvillegas
Posts: 5
Joined: Mon Aug 04, 2008 3:40 pm

Post by cvillegas »

what can I do to solve that problem?
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

Properly install the upgrade the database and install the plugin architecture per the documentation.

Since I don't know what you did or didn't do, and am making a guess based upon the error messages that's the best advice I can give.

The error is indicating it's looking for a table that doesn't exist.
[b]Cacti Version[/b] - 0.8.7d
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest