[collectd] tail plugin - counter resets
vincent.mcintyre at gmail.com
Fri Feb 24 00:17:22 CET 2012
thanks for your prompt answers.
>> I looked at the other parts of the documentation tree and that seems
>> to suggest the counter is reset if there were no addtitions during an
>> Interval (ie if the rate was zero for the Interval);
> Can you tell me what parts of the documentation you were checking, so I
> can (try to) clarify the behavior there? Thanks :)
It took a while to find but I think I made an incorrect inference from
reading both 
and THRESHOLD CONFIGURATION in collectd.conf(5). There's no obvious passage
that maps on to my incorrect statement.
I think it would help to have a brief summary of the how the various
counters mentioned in the "Plugin tail" section of collectd.conf(5)
get reset. Perhaps pointing to types.db(5) and adding a little text
there would be appropriate, or a small COUNTERS section in
collect.conf(5)? The main thing that I was missing that types with a
max of 'U' will keep incrementing, until a reboot. I can't see that
explained anywhere in the documentation at present, but perhaps I
Something that confused me further was the issue of counter
wrap-around, discussed in .
We have a tail plugin set up to count SSH logins, as in the examples
on . This shows impossibly large positive values, eg 200e6. I think
this was discussed on the list before but  seems to suggest this
should not happen any more. Unless ... we had the rrd file created by
an older version of collectd ? We started with 4.3 I think.
The config looks like this (a few matches have been left out for brevity):
Instance "SSH Logins"
Regex "sshd[^:]*: Accepted
(password|publickey) for [^ ]+ from"
Instance "Successful Logins"
A separate thing I have found confusing in my reading was
notifications. In THRESHOLD CONFIGURATION it mentions that if a
threshold is exceeded a notification is dispatched.
I'm far from clear what 'dispatched' means, but it says at the top the
section that plugins
can be configured to receive notifications and do something in response.
I think it would help to mention (in THRESHOLD CONFIGURATION) the
names of a couple of plugins that are usually used like this,
particularly if there is one with a worked example.
 http://collectd.org/wiki/index.php/Derive. I found that page via 
More information about the collectd