Skip to content

Instantly share code, notes, and snippets.

@blkperl
Last active December 24, 2015 13:29
Show Gist options
  • Select an option

  • Save blkperl/6805540 to your computer and use it in GitHub Desktop.

Select an option

Save blkperl/6805540 to your computer and use it in GitHub Desktop.
include collectd
include collectd::plugin::tail
collectd::plugin::tail::fragment { '/var/log/exim4/mainlog':
instance => "exim",
matches => [
{
regex => "S=([1-9][0-9]*)",
dstype => "CounterAdd",
type => "ipt_bytes",
instance =>"total",
},
{
regex => "\\<R=local_user\\>",
dstype => "CounterInc",
type => "counter",
instance =>"local_user",
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment