Constant Recaching Loop
Moderators: Developers, Moderators
Constant Recaching Loop
This morning, I discovered that there are 2 hosts that are constantly being re-cached. Is this normal, for a host to be recached this frequently? I thought this was abnormal, and decided to run php -q poller_reindex_hosts.php -id=148 (after disabling the poller first). However, this didn't appear to resolve the problem, and the hosts are still being recached on every run.
05/28/2010 10:40:26 AM - PCOMMAND: Poller[0] Host[148] RECACHE: Re-cache successful.
05/28/2010 10:40:26 AM - PCOMMAND: Poller[0] Host[148] RECACHE: Re-cache for Host, data query #6
05/28/2010 10:40:26 AM - PCOMMAND: Poller[0] Host[148] WARNING: Recache Event Detected for Host
05/28/2010 10:35:25 AM - PCOMMAND: Poller[0] Host[148] RECACHE: Re-cache successful.
05/28/2010 10:35:24 AM - PCOMMAND: Poller[0] Host[148] RECACHE: Re-cache for Host, data query #6
05/28/2010 10:35:24 AM - PCOMMAND: Poller[0] Host[148] WARNING: Recache Event Detected for Host
05/28/2010 10:30:26 AM - PCOMMAND: Poller[0] Host[148] RECACHE: Re-cache successful.
05/28/2010 10:30:26 AM - PCOMMAND: Poller[0] Host[148] RECACHE: Re-cache for Host, data query #6
05/28/2010 10:30:26 AM - PCOMMAND: Poller[0] Host[148] WARNING: Recache Event Detected for Host
Any insight is appreciated.
-Rob
05/28/2010 10:40:26 AM - PCOMMAND: Poller[0] Host[148] RECACHE: Re-cache successful.
05/28/2010 10:40:26 AM - PCOMMAND: Poller[0] Host[148] RECACHE: Re-cache for Host, data query #6
05/28/2010 10:40:26 AM - PCOMMAND: Poller[0] Host[148] WARNING: Recache Event Detected for Host
05/28/2010 10:35:25 AM - PCOMMAND: Poller[0] Host[148] RECACHE: Re-cache successful.
05/28/2010 10:35:24 AM - PCOMMAND: Poller[0] Host[148] RECACHE: Re-cache for Host, data query #6
05/28/2010 10:35:24 AM - PCOMMAND: Poller[0] Host[148] WARNING: Recache Event Detected for Host
05/28/2010 10:30:26 AM - PCOMMAND: Poller[0] Host[148] RECACHE: Re-cache successful.
05/28/2010 10:30:26 AM - PCOMMAND: Poller[0] Host[148] RECACHE: Re-cache for Host, data query #6
05/28/2010 10:30:26 AM - PCOMMAND: Poller[0] Host[148] WARNING: Recache Event Detected for Host
Any insight is appreciated.
-Rob
Oh geez. I can't believe I omitted that from the post. Here ya go!
Cacti Version - 0.8.7e
Plugin Architecture - 2.6
Poller Type - Cactid v
Server Info - Linux 2.6.18.8
Web Server - Apache/2.0.52 (Oracle)
PHP - 5.2.5
PHP Extensions - xmlwriter, libxml, dom, xmlreader, xml, wddx, tokenizer, sysvshm, sysvsem, session, pcre, SimpleXML, SPL, PDO, sockets, snmp, SQLite, shmop, standard, Reflection, pspell, posix, pdo_sqlite, json, iconv, hash, gmp, gettext, gd, ftp, filter, exif, dba, date, curl, ctype, calendar, bz2, bcmath, zlib, openssl, apache2filter, ldap, mysql
MySQL - 5.0.18
RRDTool - 1.2.15
SNMP - 5.1.2
Plugins
- Update Checker (update - v0.4)
Global Plugin Settings (settings - v0.5)
Thresholds (thold - v0.4.1)
Device Monitoring (monitor - v0.8.2)
Uptime (uptime - v0.3)
Host Info (hostinfo - v0.2)
Login Page Mod (loginmod - v1.0)
Sadly, it didn't resolve the problem. I still get the recaching messages:
05/28/2010 03:30:24 PM - PCOMMAND: Poller[0] Host[148] RECACHE: Re-cache successful.
05/28/2010 03:30:24 PM - PCOMMAND: Poller[0] Host[148] RECACHE: Re-cache for Host, data query #6
05/28/2010 03:30:24 PM - PCOMMAND: Poller[0] Host[148] WARNING: Recache Event Detected for Host
05/28/2010 03:30:24 PM - PCOMMAND: Poller[0] Host[148] RECACHE: Re-cache successful.
05/28/2010 03:30:24 PM - PCOMMAND: Poller[0] Host[148] RECACHE: Re-cache for Host, data query #6
05/28/2010 03:30:24 PM - PCOMMAND: Poller[0] Host[148] WARNING: Recache Event Detected for Host
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please replace the script by the one I've attached. Again, press the green circle. This should resolve the issue.
You know, that this script will only work on localhost, not on remotes machines?
R.
You know, that this script will only work on localhost, not on remotes machines?
R.
- Attachments
-
- query_unix_partitions.pl.gz
- (500 Bytes) Downloaded 79 times
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
But again: that script executes "df" on localhost. Even though the host it is assigned to is a remote host, the script will always report "df" results from localhost. The results will make no sense for a remote host.
Use "net/snmp ..." data queries instead for remote hosts.
The Data Query/Scripts will be renamed in 088 to avoid confusion.
But for sake of debugging the script, please run following SQLand post results.
R.
Use "net/snmp ..." data queries instead for remote hosts.
The Data Query/Scripts will be renamed in 088 to avoid confusion.
But for sake of debugging the script, please run following SQL
Code: Select all
SELECT *
FROM `poller_reindex` WHERE host_id = 148 AND data_query_id=6
R.
Hi Gandalf,
Here's the output you requested:
Here's the output you requested:
Code: Select all
mysql> SELECT *
-> FROM `poller_reindex` WHERE host_id = 148 AND data_query_id=6;
+---------+---------------+--------+----+--------------+------------------------------------------------------------------------------+
| host_id | data_query_id | action | op | assert_value | arg1 |
+---------+---------------+--------+----+--------------+------------------------------------------------------------------------------+
| 148 | 6 | 1 | = | 3 | perl /var/www/html/cacti-0.8.7e/scripts/query_unix_partitions.pl num_indexes |
+---------+---------------+--------+----+--------------+------------------------------------------------------------------------------+
1 row in set (0.00 sec)
Per your instructions, I replaced the script, but it did not resolve the problem. It is possible that I checked out the wrong file. Just to confirm, I ran svn checkout svn://svn.cacti.net/cacti, and used the file cacti/cacti/branches/0.8.7/scripts/query_unix_partitions.pl.
Code: Select all
06/02/2010 11:40:19 AM - PCOMMAND: Poller[0] Host[148] RECACHE: Re-cache successful.
06/02/2010 11:40:19 AM - PCOMMAND: Poller[0] Host[148] RECACHE: Re-cache for Host, data query #6
06/02/2010 11:40:19 AM - PCOMMAND: Poller[0] Host[148] WARNING: Recache Event Detected for Host
06/02/2010 11:40:14 AM - SPINE: Poller[0] Host[148] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
If you use the index count changed function, it will always have to determine the number of indexes. The question becomes, how does it ask the script that question.
Somehow the fog is clearing on this issue now.
TheWitness
Somehow the fog is clearing on this issue 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?
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?
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please run with your new script. What does it return?
R.
Code: Select all
perl /var/www/html/cacti-0.8.7e/scripts/query_unix_partitions.pl num_indexes
R.
Who is online
Users browsing this forum: No registered users and 5 guests