0.8.6b cactid upgrade - graphs not updated

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Run poller.php at LOW from the command line and see what error messages are being generated from the RRDTool.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

All,

Ian found a significant problem with re-caching that was causing the poller to crash. It crashed my system at work as well. There are a few 0.8.6b fixes in the following location:

http://www.cacti.net/downloads/patches/ ... re-patched

As of this note, the only file missing was data_query.php, but the other files are. More information should follow soon from Ian.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

TheWitness wrote:As of this note, the only file missing was data_query.php, but the other files are. More information should follow soon from Ian.
I have upload the corrected patch. For reference, please apply the patch as follows in your Cacti directory:

Code: Select all

wget http://www.cacti.net/downloads/patches/0.8.6b/auto_reindex_poller_cache.patch
patch -p1 < auto_reindex_poller_cache.patch
Or use the following pre-patched lib/utility.php and lib/data_query.php files:

http://www.cacti.net/downloads/patches/ ... _query.php
http://www.cacti.net/downloads/patches/ ... tility.php

-Ian
guest

Apllied Patch

Post by guest »

I applied the patch and now I get the following error. I'm the guy who is getting graphs for everything except network stuff. My snmp querys run fine. When i create the graph with debug on its giving info. The actual file is never created.

Fatal error: Cannot redeclare update_poller_cache_from_query() (previously declared in /srv/www/htdocs/cacti/lib/utility.php:39) in /srv/www/htdocs/cacti/lib/utility.php on line 49
User avatar
Plissken
Posts: 11
Joined: Tue Nov 02, 2004 9:46 am
Location: Brussels BE

damn ... same problem.....

Post by Plissken »

Hi,

I'm using cacti since 0.6.5 and I was happy until 0.8.6.... Sorry guys it doesn't work anymore , but you are doing an excellent work :-)
Unfortunately, I hav the same problem, I've upgraded from 0.8.6 to 0.8.6b because I had problem with graphs which are not drawing correctly. I've read the "changelog" and I thought that the upgrade can be solve my problem.

So,

Since the upgrade, the process don't update the rrd files.... When I put the log in debug with all error messages, nothing strange appears. all permissions are correct.
lastlog with cmd.php :
"11/02/2004 04:09:35 PM - CMDPHP: Poller[0] Time: 144.2327 s, Theads: N/A, Hosts: 27"

But ...
when I'm going in the admin interface to clic on "system Utilites => view snmp cache" I see........... nothing.... I click a second time and......... my broswer is busy..... I need to restart apache

And sometimes, I receive this message
"Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0 (tried to allocate 32768 bytes) in /var/www/html/cacti-0.8.6b/lib/database.php on line 127

Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0 (tried to allocate 138 bytes) in Unknown on line 0"

My config is a Bi-proc PIII 1.2Ghz ( 512Kb cache )
RAM : 1Gb
HDD : 4x73Gb

linux : mandrake 9.2
cacti : 0.8.6b
mysql : 4.0.15
php : 4.3.3
rdtool : 1.0.45
apache : Apache-AdvancedExtranetServer/2.0.47

except cacti; all are mandrake packages and the problem never occurs since the upgrade to 0.8.6b

I'm trying different solutions : cactid - cmd.php trough the poller.php nothing change

clean poller cache : nothing change

I try a rollback to 0.8.6, backup in production mode is all the time good and......... don't work ..............

I apply the patch and ........... don't work

tx anybody for your cooperation
"The more things change, the more they stay the same."
User avatar
Plissken
Posts: 11
Joined: Tue Nov 02, 2004 9:46 am
Location: Brussels BE

Oooooops

Post by Plissken »

re-hi,

I'va changed the result of the log file to "low" and show only error and I receive a lot of

"1/02/2004 04:18:21 PM - CACTID: Poller[0] Host[17] WARNING: Result from SCRIPT not valid. Partial Result: U...
11/02/2004 04:18:22 PM - CACTID: Poller[0] Host[10] ERROR: The POPEN timed out
11/02/2004 04:18:22 PM - CACTID: Poller[0] Host[81] ERROR: The POPEN timed out
11/02/2004 04:18:23 PM - CACTID: Poller[0] Host[41] ERROR: The POPEN timed out
11/02/2004 04:18:23 PM - CACTID: Poller[0] Host[42] ERROR: The POPEN timed out
11/02/2004 04:18:23 PM - CACTID: Poller[0] Host[100] ERROR: The POPEN timed out
11/02/2004 04:18:23 PM - CACTID: Poller[0] Host[80] ERROR: The POPEN timed out
11/02/2004 04:18:23 PM - CACTID: Poller[0] Host[42] WARNING: Result from SCRIPT not valid. Partial Result: U...
11/02/2004 04:18:23 PM - CACTID: Poller[0] Host[10] WARNING: Result from SCRIPT not valid. Partial Result: U...
11/02/2004 04:18:23 PM - CACTID: Poller[0] Host[104] ERROR: The POPEN timed out
11/02/2004 04:18:24 PM - CACTID: Poller[0] Host[104] WARNING: Result from SCRIPT not valid. Partial Result: U...
11/02/2004 04:18:24 PM - CACTID: Poller[0] Host[81] WARNING: Result from SCRIPT not valid. Partial Result: U...
11/02/2004 04:18:24 PM - CACTID: Poller[0] Host[80] WARNING: Result from SCRIPT not valid. Partial Result: U...
11/02/2004 04:18:24 PM - CACTID: Poller[0] Host[41] WARNING: Result from SCRIPT not valid. Partial Result: U...
11/02/2004 04:18:24 PM - CMDPHP: Poller[0] Host[120] CMD: /usr/bin/php -q /var/www/html/cacti-test/scripts/query_host_partitions.php xxxxxxxxxx xxxxx 1 get total 1, output: 35071881216
11/02/2004 04:18:24 PM - CACTID: Poller[0] Host[100] WARNING: Result from SCRIPT not valid. Partial Result: U...
11/02/2004 04:18:28 PM - CACTID: Poller[0] Host[43] ERROR: The POPEN timed out
11/02/2004 04:18:28 PM - CACTID: Poller[0] Host[11] ERROR: The POPEN timed out
11/02/2004 04:18:28 PM - CACTID: Poller[0] Host[98] ERROR: The POPEN timed out
11/02/2004 04:18:28 PM - CACTID: Poller[0] Host[106] ERROR: The POPEN timed out
11/02/2004 04:18:28 PM - CACTID: Poller[0] Host[42] ERROR: The POPEN timed out
11/02/2004 04:18:28 PM - CACTID: Poller[0] Host[98] WARNING: Result from SCRIPT not valid. Partial Result: U...
11/02/2004 04:18:28 PM - CACTID: Poller[0] Host[107] ERROR: The POPEN timed out
11/02/2004 04:18:28 PM - CACTID: Poller[0] Host[10] ERROR: The POPEN timed out
11/02/2004 04:18:28 PM - CACTID: Poller[0] Host[105] ERROR: The POPEN timed out
11/02/2004 04:18:28 PM - CACTID: Poller[0] Host[111] ERROR: The POPEN timed out
11/02/2004 04:18:29 PM - CACTID: Poller[0] Host[96] WARNING: Result from SNMP not valid. Partial Result: U...
11/02/2004 04:18:29 PM - CACTID: Poller[0] Host[9] ERROR: The POPEN timed out
11/02/2004 04:18:29 PM - CACTID: Poller[0] Host[108] ERROR: The POPEN timed out
11/02/2004 04:18:29 PM - CACTID: Poller[0] Host[96] WARNING: Result from SNMP not valid. Partial Result: U...
11/02/2004 04:18:29 PM - CACTID: Poller[0] Host[40] ERROR: The POPEN timed out
11/02/2004 04:18:29 PM - CACTID: Poller[0] Host[79] ERROR: The POPEN timed out
11/02/2004 04:18:29 PM - CACTID: Poller[0] Host[11] WARNING: Result from SCRIPT not valid. Partial Result: U...
11/02/2004 04:18:29 PM - CACTID: Poller[0] Host[111] WARNING: Result from SCRIPT not valid. Partial Result: U...
11/02/2004 04:18:29 PM - CACTID: Poller[0] Host[81] ERROR: The POPEN timed out
11/02/2004 04:18:29 PM - CACTID: Poller[0] Host[80] ERROR: The POPEN timed out
11/02/2004 04:18:29 PM - CACTID: Poller[0] Host[10] WARNING: Result from SCRIPT not valid. Partial Result: U...
11/02/2004 04:18:29 PM - CACTID: Poller[0] Host[103] ERROR: The POPEN timed out
11/02/2004 04:18:29 PM - CACTID: Poller[0] Host[42] WARNING: Result from SCRIPT not valid. Partial Result: U...
11/02/2004 04:18:29 PM - CACTID: Poller[0] Host[16] ERROR: The POPEN timed out
11/02/2004 04:18:29 PM - CACTID: Poller[0] Host[105] WARNING: Result from SCRIPT not valid. Partial Result: U...
11/02/2004 04:18:29 PM - CACTID: Poller[0] Host[16] WARNING: Result from SCRIPT not valid. Partial Result: U...
11/02/2004 04:18:29 PM - CACTID: Poller[0] Host[80] WARNING: Result from SCRIPT not valid. Partial Result: U...
11/02/2004 04:18:29 PM - CACTID: Poller[0] Host[117] ERROR: The POPEN timed out
11/02/2004 04:18:29 PM - CACTID: Poller[0] Host[43] WARNING: Result from SCRIPT not valid. Partial Result: U...
11/02/2004 04:18:29 PM - CACTID: Poller[0] Host[79] WARNING: Result from SCRIPT not valid. Partial Result: U...
11/02/2004 04:18:29 PM - CACTID: Poller[0] Host[40] WARNING: Result from SCRIPT not valid. Partial Result: U...
"

Maybe it can help somebody ....

tx in advance
"The more things change, the more they stay the same."
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Plissken (aka Pirate Dude),

A couple of things

1) Bug in 0.8.6b Recache found apply the files located in the following folder: http://www.cacti.net/downloads/patches/ ... re-patched. Make sure you pick the right directory <webroot>/cacti vs. <webroot>/cacti/lib

2) Cactid has been updated since release. Download from CVS and remake. If you need a copy of the latest source via a zip or something, just repost.

Comments:
1) should solve RRD update problem. If not, just repost
2) should solve problems with Cactid (unless their is a script error)
3) if you have "non-host" based scripts, then you can't use CACTID (Yet). Please let me know if that is the case.
4) You can send me a copy of your database to verify 3) if you do not understand "mysqldump --user=root --password cacti > cactidump.sql"

TheWitness

Oh, last thing. With the "Major" changes in 0.8.6, we had more problems than we expected. Thanks for being patient.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
cdukes
Cacti User
Posts: 61
Joined: Tue Mar 26, 2002 1:25 pm
Location: Morrisville, NC
Contact:

Re: damn ... same problem.....

Post by cdukes »

This is a problem with your php.ini settings, edit php.ini and change:

Code: Select all

max_execution_time = 30     ; Maximum execution time of each script, in seconds
max_input_time = 60     ; Maximum amount of time each script may spend parsing request data
memory_limit = 8M      ; Maximum amount of memory a script may consume (8MB)
I usually change it to 120 seconds and 32M
Also, be sure to restart apache :-)




Plissken wrote:Hi,

I'm using cacti since 0.6.5 and I was happy until 0.8.6.... Sorry guys it doesn't work anymore , but you are doing an excellent work :-)
Unfortunately, I hav the same problem, I've upgraded from 0.8.6 to 0.8.6b because I had problem with graphs which are not drawing correctly. I've read the "changelog" and I thought that the upgrade can be solve my problem.

So,

Since the upgrade, the process don't update the rrd files.... When I put the log in debug with all error messages, nothing strange appears. all permissions are correct.
lastlog with cmd.php :
"11/02/2004 04:09:35 PM - CMDPHP: Poller[0] Time: 144.2327 s, Theads: N/A, Hosts: 27"

But ...
when I'm going in the admin interface to clic on "system Utilites => view snmp cache" I see........... nothing.... I click a second time and......... my broswer is busy..... I need to restart apache

And sometimes, I receive this message
"Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0 (tried to allocate 32768 bytes) in /var/www/html/cacti-0.8.6b/lib/database.php on line 127

Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0 (tried to allocate 138 bytes) in Unknown on line 0"

My config is a Bi-proc PIII 1.2Ghz ( 512Kb cache )
RAM : 1Gb
HDD : 4x73Gb

linux : mandrake 9.2
cacti : 0.8.6b
mysql : 4.0.15
php : 4.3.3
rdtool : 1.0.45
apache : Apache-AdvancedExtranetServer/2.0.47

except cacti; all are mandrake packages and the problem never occurs since the upgrade to 0.8.6b

I'm trying different solutions : cactid - cmd.php trough the poller.php nothing change

clean poller cache : nothing change

I try a rollback to 0.8.6, backup in production mode is all the time good and......... don't work ..............

I apply the patch and ........... don't work

tx anybody for your cooperation
User avatar
Plissken
Posts: 11
Joined: Tue Nov 02, 2004 9:46 am
Location: Brussels BE

Re: damn ... same problem.....

Post by Plissken »

Thanks!!!

It solves my problem to view the "snmp cache" but now it's Firefox which load high becauce the cache is very big :-))

I'm still busy to investigate and apply the change that Mr Witness gives to me


cdukes wrote:This is a problem with your php.ini settings, edit php.ini and change:

Code: Select all

max_execution_time = 30     ; Maximum execution time of each script, in seconds
max_input_time = 60     ; Maximum amount of time each script may spend parsing request data
memory_limit = 8M      ; Maximum amount of memory a script may consume (8MB)
I usually change it to 120 seconds and 32M
Also, be sure to restart apache :-)




Plissken wrote:Hi,

I'm using cacti since 0.6.5 and I was happy until 0.8.6.... Sorry guys it doesn't work anymore , but you are doing an excellent work :-)
Unfortunately, I hav the same problem, I've upgraded from 0.8.6 to 0.8.6b because I had problem with graphs which are not drawing correctly. I've read the "changelog" and I thought that the upgrade can be solve my problem.

So,

Since the upgrade, the process don't update the rrd files.... When I put the log in debug with all error messages, nothing strange appears. all permissions are correct.
lastlog with cmd.php :
"11/02/2004 04:09:35 PM - CMDPHP: Poller[0] Time: 144.2327 s, Theads: N/A, Hosts: 27"

But ...
when I'm going in the admin interface to clic on "system Utilites => view snmp cache" I see........... nothing.... I click a second time and......... my broswer is busy..... I need to restart apache

And sometimes, I receive this message
"Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0 (tried to allocate 32768 bytes) in /var/www/html/cacti-0.8.6b/lib/database.php on line 127

Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0 (tried to allocate 138 bytes) in Unknown on line 0"

My config is a Bi-proc PIII 1.2Ghz ( 512Kb cache )
RAM : 1Gb
HDD : 4x73Gb

linux : mandrake 9.2
cacti : 0.8.6b
mysql : 4.0.15
php : 4.3.3
rdtool : 1.0.45
apache : Apache-AdvancedExtranetServer/2.0.47

except cacti; all are mandrake packages and the problem never occurs since the upgrade to 0.8.6b

I'm trying different solutions : cactid - cmd.php trough the poller.php nothing change

clean poller cache : nothing change

I try a rollback to 0.8.6, backup in production mode is all the time good and......... don't work ..............

I apply the patch and ........... don't work

tx anybody for your cooperation
"The more things change, the more they stay the same."
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

cdukes,

Thanks for the catch, missed that entirely. I thought we had changed those directives in Cacti, but I guess not the memory one. Will make an option for it now.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
cdukes
Cacti User
Posts: 61
Joined: Tue Mar 26, 2002 1:25 pm
Location: Morrisville, NC
Contact:

Post by cdukes »

No problem,
I'm still having trouble getting cmd.php or cactid to work...
Cactid won't even run any more and when I try using cmd.php I just get:

Code: Select all

Result from SNMP not valid.  Partial Result:
I've set the concurrent poller sessions to 10 and it does complete the run now, however, I'm still unable to get any actual graph data.
I have a LOT of systems here (I work for an ISP) so in the past, cmd.php was not an option as it took more than 5 minutes to run.
I would prefer to use cactid and am willing to try anything you have.
Any ideas?

TheWitness wrote:cdukes,

Thanks for the catch, missed that entirely. I thought we had changed those directives in Cacti, but I guess not the memory one. Will make an option for it now.

TheWitness
User avatar
cdukes
Cacti User
Posts: 61
Joined: Tue Mar 26, 2002 1:25 pm
Location: Morrisville, NC
Contact:

Post by cdukes »

Scratch that, cmd.php is graphing the data now, but I still get the SNMP not valid error.

cdukes wrote:No problem,
I'm still having trouble getting cmd.php or cactid to work...
Cactid won't even run any more and when I try using cmd.php I just get:

Code: Select all

Result from SNMP not valid.  Partial Result:
I've set the concurrent poller sessions to 10 and it does complete the run now, however, I'm still unable to get any actual graph data.
I have a LOT of systems here (I work for an ISP) so in the past, cmd.php was not an option as it took more than 5 minutes to run.
I would prefer to use cactid and am willing to try anything you have.
Any ideas?

TheWitness wrote:cdukes,

Thanks for the catch, missed that entirely. I thought we had changed those directives in Cacti, but I guess not the memory one. Will make an option for it now.

TheWitness
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Turn on DEBUG for 1, and I repeat 1 polling cycle only. Then review your output for the error message details. You should then do an SNMP Walk of the OID and make sure it's valid.

We will talk after I Vote and have lunch with my family on the Cactid issue, I hope...

Larry
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
cdukes
Cacti User
Posts: 61
Joined: Tue Mar 26, 2002 1:25 pm
Location: Morrisville, NC
Contact:

Post by cdukes »

I'll run it when you get back, just let me know when you are ready :-)
TheWitness wrote:Turn on DEBUG for 1, and I repeat 1 polling cycle only. Then review your output for the error message details. You should then do an SNMP Walk of the OID and make sure it's valid.

We will talk after I Vote and have lunch with my family on the Cactid issue, I hope...

Larry
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

CDukes,

Does your poller have access to the Internet, can we NetMeeting? I have a port exposed for NetMeeting if you can on your side.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest