Welcome, Guest. Please login or register.
Did you miss your activation email?
Saturday 02 November 2024, 12:35:30 am

Login with username, password and session length

Get the new Updates directly from Endian  HERE
14248 Posts in 4376 Topics by 6515 Members
Latest Member: hulteends
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  General Support
| | |-+  2.3RC BUG: /var/log/messages filled up with collectd errors
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: 2.3RC BUG: /var/log/messages filled up with collectd errors  (Read 18290 times)
mrkroket
Hero Member
*****
Offline Offline

Posts: 495


« on: Wednesday 21 October 2009, 04:00:57 am »

See http://bugs.endian.com/view.php?id=2220.

 There is some kind of error on collectd that gives out a lot of errors on /var/log/messages log file. Each 5 seconds it writes something like that:

Oct 20 11:33:58 efw-1256003424 collectd[3166]: uc_update: Value too old: name = 1de80e83-a505-45c5-b8c2-48db29ed9ed2/ntpd/time_offset-201.155.229.129; value time = 1256063638; last cache update = 1256063638;
Oct 20 11:33:58 efw-1256003424 collectd[3166]: rrdtool plugin: (rc->last_value = 1256063638) >= (value_time = 1256063638)
Oct 20 11:33:58 efw-1256003424 collectd[3166]: Filter subsystem: Built-in target `write': Dispatching value to all write plugins failed with status -1.
Oct 20 11:33:58 efw-1256003424 collectd[3166]: uc_update: Value too old: name = 1de80e83-a505-45c5-b8c2-48db29ed9ed2/ntpd/time_dispersion-201.155.229.129; value time = 1256063638; last cache update = 1256063638;
Oct 20 11:33:58 efw-1256003424 collectd[3166]: rrdtool plugin: (rc->last_value = 1256063638) >= (value_time = 1256063638)
Oct 20 11:33:58 efw-1256003424 collectd[3166]: Filter subsystem: Built-in target `write': Dispatching value to all write plugins failed with status -1.
Oct 20 11:33:58 efw-1256003424 collectd[3166]: uc_update: Value too old: name = 1de80e83-a505-45c5-b8c2-48db29ed9ed2/ntpd/delay-201.155.229.129; value time = 1256063638; last cache update = 1256063638;
Oct 20 11:33:58 efw-1256003424 collectd[3166]: rrdtool plugin: (rc->last_value = 1256063638) >= (value_time = 1256063638)
Oct 20 11:33:58 efw-1256003424 collectd[3166]: Filter subsystem: Built-in target `write': Dispatching value to all write plugins failed with status -1.
Oct 20 11:33:58 efw-1256003424 collectd[3166]: uc_update: Value too old: name = 1de80e83-a505-45c5-b8c2-48db29ed9ed2/ntpd/time_offset-200.23.51.205; value time = 1256063638; last cache update = 1256063638;
Oct 20 11:33:58 efw-1256003424 collectd[3166]: rrdtool plugin: (rc->last_value = 1256063638) >= (value_time = 1256063638)
Oct 20 11:33:58 efw-1256003424 collectd[3166]: Filter subsystem: Built-in target `write': Dispatching value to all write plugins failed with status -1.
Oct 20 11:33:58 efw-1256003424 collectd[3166]: uc_update: Value too old: name = 1de80e83-a505-45c5-b8c2-48db29ed9ed2/ntpd/time_dispersion-200.23.51.205; value time = 1256063638; last cache update = 1256063638;
Oct 20 11:33:58 efw-1256003424 collectd[3166]: rrdtool plugin: (rc->last_value = 1256063638) >= (value_time = 1256063638)
Oct 20 11:33:58 efw-1256003424 collectd[3166]: Filter subsystem: Built-in target `write': Dispatching value to all write plugins failed with status -1.
Oct 20 11:33:58 efw-1256003424 collectd[3166]: uc_update: Value too old: name = 1de80e83-a505-45c5-b8c2-48db29ed9ed2/ntpd/delay-200.23.51.205; value time = 1256063638; last cache update = 1256063638;
Oct 20 11:33:58 efw-1256003424 collectd[3166]: rrdtool plugin: (rc->last_value = 1256063638) >= (value_time = 1256063638)
Oct 20 11:33:58 efw-1256003424 collectd[3166]: Filter subsystem: Built-in target `write': Dispatching value to all write plugins failed with status -1.

Each 5 seconds! That means that on one day we'll have: 18 lines x 12 each minute x 60 each hour x 24 each day = 311040 lines of log each day only on collectd errors. That bloated my system when using GUI Log Viewer (AMD Phenom with 3GB RAM, not so bad). In bytes that means about 50MB of logs each day only with collectd errors!
Tested both on physical hard and on virtual one. The same error. I don't see the fix on Mantis, peter mentioned that was solved but I didn't see a quickfix.

Logged
mrkroket
Hero Member
*****
Offline Offline

Posts: 495


« Reply #1 on: Wednesday 21 October 2009, 04:12:32 am »

QuickFix:
1- Remove ntp from collectd: mv /etc/collectd.d/ntp.conf /etc/collectd.d/ntp.conf.backup
2- Restart collectd /etc/init.d/collectd restart

Clean up /var/log/messages from collectd errors:
As an addition you can clean up your actual messages file from that collectd error:
1- cat /var/log/messages | grep -v collectd >/tmp/messages
2- cat /tmp/messages >/var/log/messages
3- rm /tmp/messages
I saved about 99% with that (from 31MB to 240Kb).
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Page created in 0.047 seconds with 18 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com