[collectd] ExecNotify INTERVAL?
Scott M. Likens
scott at likens.us
Sat Nov 5 06:40:49 CET 2011
Ahh, quite interesting I had always assumed that with PUTVAL and INTERVAL it ran at that interval as well. Good to know!
Thanks!
--
Scott M. Likens
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
On Wednesday, October 26, 2011 at 11:15 AM, Mariusz Gronczewski wrote:
> Yes now its clear what u meant ;)
>
> Normal exec does not work in that way too.
> If your script exit after giving value (with interval=something) it
> will rerun it every 10s (or whatever is global interval set up) but
> resulting RRD file will have step equal to interval u've send in
> message (so if you set interval in PUTVAL to 60 it will run script
> every 10s but it will average values over 60s in RRD file
>
> So what you want is script like
> while sleep 120; do
> stuff
> done
>
>
>
> 2011/10/26 Scott M. Likens <scott at likens.us (mailto:scott at likens.us)>:
> > Actually I think I asked this incorrectly and that is partially why that made no sense.
> >
> > Currently using Exec to run a script that sends PUTNOTIF and it seems with that INTERVAL is not being honored.
> >
> > echo "PUTNOTIF time=$(date '+%s') INTERVAL=120 TYPE=derpl severity=broken message=\"derp de dee\"
> >
> > runs as often as other Exec resources even though the INTERVAL is specified otherwise.
> >
> > Does that help?
> >
> >
> > On Oct 22, 2011, at 10:03 AM, Mariusz Gronczewski wrote:
> >
> > > 2011/10/21 Scott M. Likens <scott at likens.us (mailto:scott at likens.us)>:
> > > > Hi,
> > > >
> > > > It does not appear that ExecNotify supports INTERVAL like the Exec plugin does? http://collectd.org/documentation/manpages/collectd-exec.5.shtml
> > > >
> > > > Is there a reason for that?
> > > Why it would need it ? Notifications are supposed to be sent when
> > > something happens, not every x seconds so interval does not make any
> > > sense.
> > >
> >
> >
>
>
> !DSPAM:4ea84e4a95801804284693!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20111104/d6b86737/attachment.html>
More information about the collectd
mailing list