[collectd] threshold events for load only for shortterm, but I need midterm

Dieter Bloms dieter at bloms.de
Wed Apr 16 10:06:19 CEST 2008


Hallo Florian,

On Tue, Apr 15, Florian Forster wrote:

> On Wed, Apr 02, 2008 at 03:08:59PM +0200, Dieter Bloms wrote:
> > I want to get events for midterm, but I didn't see any of this.
> > I only see events from data source shortterm.
> 
> I've implemented a `ShortTerm' option that you can use to have threshold
> values apply only to certain data sources, such as `shortterm'. You can
> also use this option to have different threshold values for each data
> source.

How do I configure it ?
Did you mean DataSource option instead of `ShortTerm' option ?

> Since this is a new feature it will go into the 4.4 release which I hope
> to release soon. The changes are in the master branch of the Git
> repository, if you'd like to go ahead and give it a try.

I used the following config, but now I didn't get any notifications:

Mode        "local"
Hostname    "myserver"
BaseDir     "/var/lib/collectd"
PIDFile     "/tmp/collectd.pid"
PluginDir   "/usr/lib/collectd"
TypesDB     "/usr/lib/collectd/types.db"
LoadPlugin logfile
LoadPlugin cpu
LoadPlugin df
LoadPlugin disk
LoadPlugin exec
LoadPlugin interface
LoadPlugin iptables
LoadPlugin load
LoadPlugin memory
LoadPlugin network
LoadPlugin ntpd
LoadPlugin processes
LoadPlugin rrdtool
LoadPlugin swap
LoadPlugin syslog
<Plugin logfile>
  LogLevel debug
  File stdout
</Plugin>
<Threshold>
  <Plugin "load">
    <Type "load">
      DataSource "midterm"
      WarningMax    0.20
      FailureMax    0.40
      Persist false
    </Type>
  </Plugin>
</Threshold>
<Plugin exec>
  NotificationExec nobody "/usr/local/bin/collectd_notification.pl"
</Plugin>


-- 
Gruß

  Dieter

--
I do not get viruses because I do not use MS software.
If you use Outlook then please do not put my email address in your
address-book so that WHEN you get a virus it won't use my address in the
From field.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20080416/a3e5f30f/attachment.pgp 


More information about the collectd mailing list