On Monday, Apr 26, 10, at 13:00:02, [email protected] wrote: > Send collectd mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://mailman.verplant.org/listinfo/collectd > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of collectd digest..." > > > Today's Topics: > > 1. Re: rrd2flot: Client side canvas based charting of collectd > rrd data (Florian Forster) > 2. baffled by tail regex (Clay Loveless) > 3. Newbie questions: type_instance (Alexey Lobanov) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 25 Apr 2010 15:49:23 +0200 > From: Florian Forster <[email protected]> > Subject: Re: [collectd] rrd2flot: Client side canvas based charting of > collectd rrd data > To: Richard Wall <[email protected]> > Cc: collectd <[email protected]> > Message-ID: <[email protected]> > Content-Type: text/plain; charset="utf-8" > > Hi Richard, > > On Mon, Apr 19, 2010 at 02:40:19AM +0100, Richard Wall wrote: >> I've been writing a graphical reporting tool for Collectd using >> JavascriptRRD, jQuery and Flot (and MochiKit) and thought I'd >> announce >> it here and get some feedback. > > sounds very interesting :) It's be great if you could create a > "rrd2flot" wiki page and add your front-end to the list of front- > ends in > the wiki [0]. You need to create an accout for uploading screenshots; > everything else you can create / change without logging in. > > Regards, > ?octo > > [0] <http://collectd.org/wiki/index.php/List_of_front-ends> > -- > Florian octo Forster > Hacker in training > GnuPG: 0x91523C3D > http://verplant.org/ > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: not available > Type: application/pgp-signature > Size: 189 bytes > Desc: Digital signature > Url : > http://mailman.verplant.org/pipermail/collectd/attachments/20100425/9ea4c13f/attachment-0001.pgp > > ------------------------------ > > Message: 2 > Date: Sun, 25 Apr 2010 11:46:21 -0700 > From: Clay Loveless <[email protected]> > Subject: [collectd] baffled by tail regex > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=us-ascii > > Hi folks, > > I'm running collectd 4.9.2. > > I'm tailing a log file, looking for a number. My tail config looks > like this: > > LoadPlugin tail > <Plugin tail> > <File "/opt/splunk/var/log/splunk/scheduler.log"> > Instance "splunk-scheduler-log" > <Match> > Regex "monitor_lighty_hosts__splunkalerts.*result_count=(\d+)" > DSType "CounterSet" > Type "counter" > Instance "lighty_hostcount" > </Match> > </File> > </Plugin> > > > The log file in question contains a lot of entries, but the ones I'm > looking for look like this: > > 04-25-2010 18:35:14.087 INFO SavedSplunker - > savedsearch_id > ="nobody;FooSearch;monitor_lighty_hosts__splunkalerts", > user="nobody", app="FooSearch", > savedsearch_name="monitor_lighty_hosts__splunkalerts", > status=success, scheduled_time=1272220500, dispatch_time=1272220504, > run_time=8.064, result_count=31, alert_actions="", > sid > = > "scheduler__nobody__FooSearch_bW9uaXRvcl9saWdodHlfaG9zdHNfX3NwbHVua2FsZXJ0cw_at_1272220500_317731676 > > ", thread_id="AlertNotifierWorker-0" > > > Every flavor of regular expression I've tried for picking out the > result_count seems to be failing. Variants I've tried, all of which > work outside of collectd, are: > > monitor_lighty_hosts__splunkalerts.*result_count=(\d+) > monitor_lighty_hosts__splunkalerts.+result_count=([0-9]+) > monitor_lighty_hosts__splunkalerts.+result_count.([0-9][0-9]) > monitor_lighty_hosts__splunkalerts.*result_count.([^,]+), > > > My threshold for alerts block is set up like this: > > <Threshold> > <Plugin "tail"> > <Type "counter"> > Instance "lighty_hostcount" > WarningMin 31 > </Type> > </Plugin> > </Threshold> > > > I want to get an email when the result_count of the log in question > drops below 31. Based on my understanding, this should be working as > configured above. However, I'm getting emails stating: > > > Message: Host i-ad3d7cc5, plugin tail (instance splunk-scheduler- > log) type counter (instance lighty_hostcount): Data source "value" > is currently 0.000000. That is below the warning threshold of > 31.000000. > > > > Why aren't any of my regex flavors matching? I've tested out many > different variants against this log file, and can get '31' as the > first subexpression match every time. Is there something about the > regex flavor that <Match> uses within Tail that I don't understand? > > Thanks in advance! > > Regards, > Clay > > > -- > Clay Loveless > Founder > w: http://killersoft.com > t: @claylo > > > > > > > ------------------------------ > > Message: 3 > Date: Mon, 26 Apr 2010 12:08:44 +0400 > From: Alexey Lobanov <[email protected]> > Subject: [collectd] Newbie questions: type_instance > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=UTF-8; format=flowed > > Hello all. > > I am writing a local plugin for Collectd, to make fancy display of > ambient conditions in monitored storage area. The monitored parameters > fit to standard types.db: just two "temperature" sensors in Celsius > ("floor" and "ceiling") and one relative humidity sensor. > > Everything works fine with this self-written plugin (based on > examples/myplugin.c) while I try to collect and display only one > temperature value. And one humidity. > > The question is how to deal with two (or more) same-type parameters in > one plugin and one colection.cgi web-page. I.e, two temperatures. In > one > graph with two colors, or in two graphs at a same page. > > I have meditated with the "df.c" code and the corresponding part of > collection.cgi, with no success: as soon as I start to submit non- > empty > "type_instance", collection.cgi displays a single (first) recorded > value > only in fresh-created "temperature-floor.rrd". I even do not quote my > code for detailed questions, because this had been written without > proper understanding. > > > Now the question. Can anyone point me at a some kind of *advanced* > plugin HOWTO decribing data submission in plugin and corresponding > data > interpretation in collection.cgi? A piece of commented code can be a > solution. > > Alexey > > > > ------------------------------ > > _______________________________________________ > collectd mailing list > [email protected] > http://mailman.verplant.org/listinfo/collectd > > > End of collectd Digest, Vol 55, Issue 18 > ****************************************
_______________________________________________ collectd mailing list [email protected] http://mailman.verplant.org/listinfo/collectd
