Clear poller cache -> Fatal error

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

Moderators: Developers, Moderators

SAS
Posts: 8
Joined: Fri Feb 25, 2005 5:05 am

Clear poller cache -> Fatal error

Post by SAS »

When I want to clear the poller cache, I have each time a fatal error because the maximum execution time exeted 30 secondes and cacti indicate the error at different php_file and line at each time.
Is anyone have the same probleme?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Increase you maximum execution time in your php.ini file.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
shadow1975
Posts: 32
Joined: Wed Mar 02, 2005 11:58 am

Post by shadow1975 »

I tried increasing the maximum execution time but still comes up with same error about taking more than 30secs. Is there anything more i need to do to this to increase maximum execution time
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please upgrade to 0.8.6c and apply the patches in http://www.cacti.net/downloads/patches/ ... re-patched Please patch using the file process unless you have hacked Cacti. Following these steps will correct your problems.

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?
shadow1975
Posts: 32
Joined: Wed Mar 02, 2005 11:58 am

Post by shadow1975 »

Sorry should have added that was already running ver 8.6c and using cactid as well. Tried changing the max execution time to 90 but still no difference. Quick question do i need to also stop scheduled task for php before doing this option?

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

Post by TheWitness »

I would recommend that you disable the poller from the UI under "Settings->Poller" and then verify that it is not running prior to execution.

If you are running all the latest patches, Cacti will wait indefinately for the poller cache to clear. Please review <path_cacti>/utilities.php for more information as this is the patched file. So, there may be something else going on.

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?
shadow1975
Posts: 32
Joined: Wed Mar 02, 2005 11:58 am

Post by shadow1975 »

Finally got it to clear the cache but this still has not rsolved the issue i was trying to resolve. Thanks for help with clearing poller cache.

Was graphing devices fine tell Tuesday night this week when suddenly Cacti stopped creating graphs for some of the devices graph templates. Here is a copy of log file.
Attachments
Errorlog.doc.txt
(35.5 KiB) Downloaded 227 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Hmm, that error document english? Doesn't look readable to me.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Host 7 is crapped. Please edit it and correct the hostname field.

Code: Select all

04/21/2005 02:30:16 PM - CACTID: Poller[0] Host[7] ERROR: Empty result [S “Server”.domainname.com]: 'cscript C:/cacti/scripts/memutils.vbs //nologo /S S “Server”.domainname.com /G PercentFree' 
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: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Host 4 also has issues with one of the scripts.

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?
shadow1975
Posts: 32
Joined: Wed Mar 02, 2005 11:58 am

Post by shadow1975 »

I edited the hostname it is correct in the original log file. That is exactly except for my editing of the domain name what the log file is showing. I can give you a bigger log file to look at today but this all just started happening other day. No new graph templates where added to these devices only thing new added prior to this issue is a couple more devices where added to Cacti. When go look at the data files it appears now that some of them are not updating their data. Any ideas what can cause devices to stop updating their data? If there is anything more you need to help me work this out just ask and will send you the relevent data.

thanks
shadow1975
Posts: 32
Joined: Wed Mar 02, 2005 11:58 am

Post by shadow1975 »

OK finally found out what has been causing all these issues with partial results and so forth. It appears some of the devices hvae lost their OIDs and therefore not able to poll these devices for information where there is no OID. Not sure what the cause of the missing random OIDs. Is there a way to clear SNMP cache as it appears there are quite a few devices which are missing OIDs? IF the SNMP cache is cleared will it recreate itself again? If not how can i recreate it with out loosing any of the data already gathered by Cacti


thanks
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

As far as I can tell, you have already done that by running the Clear Poller Cache. Yes, it needs to be renamed, it really clears and builds it again.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
shadow1975
Posts: 32
Joined: Wed Mar 02, 2005 11:58 am

Post by shadow1975 »

The problem is after clearing the poller cache it still shows devices with no OIDs for certain things that it is polling for and also now some of the graphs are showing -1 now when before they where actually graphing.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You have lost association with your templates. This is a bad thing. There must have been some change. I can look at it, but not until next week.

Send a dump to my private message area and I will look at it.

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 3 guests