SNMP CACHE

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

Moderators: Developers, Moderators

lwascher
Posts: 1
Joined: Fri Jan 14, 2005 4:38 pm

SNMP CACHE

Post by lwascher »

My SNMP Cache has 7511 items in it? What exactly does it do, and is there a way to clear it?? Also, everytime I hit the "Clear Ploller Cache" button, when I log out then back in, there are still the same number of items in the Poller cache.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

It's normal for the poller cache to have items in it.

When you clear it, it is accually rebuilding it too.

This is what the poller accually uses to poll the devices.
[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]
User avatar
skaminski
Cacti User
Posts: 92
Joined: Tue May 11, 2004 1:42 pm

Post by skaminski »

I get a timeout when I try to clear my poller cache. I'm thinking a corrupted poller cache is causing me issues with my graphs not updating. Is there a way to manually clear the cache?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Run the following query on the cacti database:

Code: Select all

DELETE FROM poller_item;
DELETE FROM poller_output;
Make sure you do this while a polling cycle is not running.

This will clear out the poller_cache, which you should run the Clear Poller Cache again, this will rebuild it.

I added the clearing of the poller_output table, just to make sure. This is where the pollers drop data that the poller.php comes back and writes to the rrd files.
[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]
User avatar
skaminski
Cacti User
Posts: 92
Joined: Tue May 11, 2004 1:42 pm

Post by skaminski »

MYSQL Newbie here...

Can you assist me with how to run that? I went to c:\mysql\bin and ran mysql
I'm trying to open the cacti database so i can run the commands. I've forgotten how to specify the database user

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

Post by rony »

Typically, you run:

Code: Select all

mysql -u cactiuser -p
This will prompt your for your password.

Then run the following inside the client.

Code: Select all

USE cacti;
DELETE FROM poller_item;
DELETE FROM poller_output;
When it comes to using mysql on windows, you have a one up on me, you are doing it. :)
[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]
User avatar
skaminski
Cacti User
Posts: 92
Joined: Tue May 11, 2004 1:42 pm

Post by skaminski »

I figured it out after a bunch of tries. Anyway, I did that and I'll see if it helps.

thanks
Sean
User avatar
skaminski
Cacti User
Posts: 92
Joined: Tue May 11, 2004 1:42 pm

Post by skaminski »

So, how do i recreate the poller cache now that it has 0 items in it?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

You run the Clear Poller Cache from the Utilities Section.
[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]
User avatar
skaminski
Cacti User
Posts: 92
Joined: Tue May 11, 2004 1:42 pm

Post by skaminski »

Well, i was hoping that this would fix the problem I'm having with the graphs not working. Unfortunately, it's not. I'm still not able to clear the poller cache from the web page.

Should the numbers of items in my poller cache roughly equal the items in the rra folder?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Correct, btw, "Clear Poller Cache" should read "Rebuild Poller Cache". It's named wrong, it clears the table, and then proceeds to rebuild it.

Can you turn your logging up to debug and post your cacti log for one polling cycle?
[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]
User avatar
skaminski
Cacti User
Posts: 92
Joined: Tue May 11, 2004 1:42 pm

Post by skaminski »

I have another thread that shows my log file.

http://forums.cacti.net/viewtopic.php?t=6356

If you need another one, let me know.

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

Post by TheWitness »

Hey, spongebob, what version of Cacti are you running? You need to make an alteration and then be patient. Provide you version and I will provide the fix.

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
skaminski
Cacti User
Posts: 92
Joined: Tue May 11, 2004 1:42 pm

Post by skaminski »

Server Is
DL380G3 (Dual Processor 2.8Ghz with 3GB of RAM)
Windows 2003 Enterprise Edition
Apache
Cacti 0.8.6c
php 4.3.6
MySQL 3.23.58-nt
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Ski,

Try this version of <webroot>/cacti/utilities.php. Please let me know how it goes.

TheWitness

http://cvs.cacti.net/cgi-bin/viewcvs.cg ... text/plain
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 0 guests