EFW Support

Support => General Support => Topic started by: mrkroket on Wednesday 21 October 2009, 04:00:57 am



Title: 2.3RC BUG: /var/log/messages filled up with collectd errors
Post by: mrkroket on Wednesday 21 October 2009, 04:00:57 am
See http://bugs.endian.com/view.php?id=2220 (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.



Title: Re: 2.3RC BUG: /var/log/messages filled up with collectd errors
Post by: mrkroket 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).