<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>collectd &#8211; Diary of an Emacs tragic</title>
	<atom:link href="https://emacstragic.net/tag/collectd/feed/" rel="self" type="application/rss+xml" />
	<link>https://emacstragic.net</link>
	<description>Jason Lewis</description>
	<lastBuildDate>Mon, 20 Aug 2012 07:02:27 +0000</lastBuildDate>
	<language>en-AU</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://emacstragic.net/wp-content/uploads/2018/12/cropped-jason-lewis-profile-picture-square-150x150.jpg</url>
	<title>collectd &#8211; Diary of an Emacs tragic</title>
	<link>https://emacstragic.net</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">38469313</site>	<item>
		<title>Collectd causing rrd illegal attempt to update using time errors</title>
		<link>https://emacstragic.net/uncategorized/collectd-causing-rrd-illegal-attempt-to-update-using-time-errors/</link>
					<comments>https://emacstragic.net/uncategorized/collectd-causing-rrd-illegal-attempt-to-update-using-time-errors/#comments</comments>
		
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Mon, 20 Aug 2012 07:02:27 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[collectd]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[rrd]]></category>
		<guid isPermaLink="false">http://emacstragic.net/?p=356</guid>

					<description><![CDATA[I found collectd causing rrd illegal attempt to update using time errors. I was seeing a whole load of lines like this in my syslog: Aug 20 16:27:12 mythbox collectd[32167]: rrdtool plugin: rrd_update_r (/var/lib/collectd/rrd/mythbox/df-root/df_complex-free.rrd) failed: /var/lib/collectd/rrd/mythbox/df-root/df_complex-free.rrd: illegal attempt to update using time 1345444032 when last update time is 1345444032 (minimum one second step) It was [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I found collectd causing rrd illegal attempt to update using time errors. I was seeing a whole load of lines like this in my syslog:<br />
<code>Aug 20 16:27:12 mythbox collectd[32167]: rrdtool plugin: rrd_update_r (/var/lib/collectd/rrd/mythbox/df-root/df_complex-free.rrd) failed: /var/lib/collectd/rrd/mythbox/df-root/df_complex-free.rrd: illegal attempt to update using time 1345444032 when last update time is 1345444032 (minimum one second step)<br />
</code><br />
It was adding one message like that every second so my logs were completely full of it. Google didn&#8217;t reveal much except that this sort of error is either because there are two instances of RRD trying to write the RRD database at the same time, or that my server&#8217;s date and time are way out of sync. Neither of these were true in my case.<br />
I asked on #collectd on freenode and a very nice person by the name of tokkee told me that it&#8217;s a known issue of sorts. The df plugin for collectd uses /proc/mount to determine which drives to check free space on and if / is in there twice, it tries to update the entry for / twice and causes the problem.<br />
The solution is to add the following to the /etc/collectd/collectd.conf file:</p>
<pre lang="LANGUAGE">
<plugin df>
        FSType "rootfs"
        IgnoreSelected true
</plugin>
</pre>
<p>Then I restarted collectd and my logs were peaceful again.<br />
Update 2014-04-10:<br />
I was getting these errors again on one of my VPS hosts. In this instance, / only appeared once in /proc/mounts but /run was in there multiple times:</p>
<pre lang="LANGUAGE">
root@new:/etc/collectd# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
devtmpfs /dev devtmpfs rw,relatime,size=1085360k,nr_inodes=271340,mode=755 0 0
tmpfs /run tmpfs rw,nosuid,noexec,relatime,size=217328k,mode=755 0 0
tmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /run/shm tmpfs rw,nosuid,nodev,noexec,relatime,size=460860k 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
root@new:/etc/collectd#
</pre>
<p>The solution is to ignore tmpfs instead of rootfs:</p>
<pre lang="LANGUAGE">
<plugin df>
        FSType "tmpfs"
        IgnoreSelected false
</plugin>
</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://emacstragic.net/uncategorized/collectd-causing-rrd-illegal-attempt-to-update-using-time-errors/feed/</wfw:commentRss>
			<slash:comments>13</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">356</post-id>	</item>
	</channel>
</rss>
