Re: [collectd] Curl output value threshold
Florian, Thanks for the response. I've tried to change the Type and DSType to gauge and GaugeLast since it should just look for the last value it received. However now it records 0.0 instead of 1 in the csv output file. It should just record 1. Also, I did a test of the regex against the specific test of the web page using egrep, which should be using the extended POSIX regular expression capabilities, and it matched. So it should be matching. Maybe I'm on my way to getting it working, but it seems like the value in the csv should be a 1 and the threshold should see the 1. Jeremy On Mar 9, 2010, at 4:13 PM, Florian Forster wrote: > Hi Jeremy, > > On Mon, Mar 08, 2010 at 11:27:25AM -0600, Jeremy Hanna wrote: >> >> Regex "Live Nodes.*?([0-9]+)> DSType "CounterSet" >> Type "counter" >> Instance "live-nodes" >> > > this looks like the information you're collecting here is "the number of > nodes currently running". That's a number that can go up when a host is > added and down if one is removed. > > For this kind of data you should use a GAUGE based data set, for example > the data set named "gauge". The "DSType" option should then be set to > one of the "Gauge*" settings, for example "GaugeAverage". > > I'm also surprised the regular expression compiles and returns anything: > We're using the "Extended POSIX Regular Expressions", and as far as I > know they don't support the non-greedy "*?" operator. The regex(7) > manual page should be able to tell you in detail. > > Regards, > --octo > -- > Florian octo Forster > Hacker in training > GnuPG: 0x91523C3D > http://verplant.org/ ___ collectd mailing list collectd@verplant.org http://mailman.verplant.org/listinfo/collectd
[collectd] Curl output value threshold
I have a collectd metric that bases off of the curl plugin. It gets a numeric value from a webpage through a regex that writes to the output, in my case, csv for now. I check the output file and I verify that the output, e.g. "1268065305,1" so it does have a positive value. I configure a threshold to make sure it doesn't fall below 1 like this: Instance "live-nodes" FailureMin 1 However, in the log output, I see that it finds the output file but is getting the wrong value and gives this message: [2010-03-08 16:32:13] Notification: severity = FAILURE, host = gizmo, plugin = curl, plugin_instance = hdfs-status, type = counter, type_instance = live-nodes, message = Host gizmo, plugin curl (instance hdfs-status) type counter (instance live-nodes): Data source "value" is currently 0.00. That is below the failure threshold of 1.00. So it seems that it isn't getting the correct value. Here is the configuration of the curl plugin: URL "http://myserver:50070/dfshealth.jsp"; Regex "Live Nodes.*?([0-9]+) Any ideas why it is reading 0.0 instead of 1 for that value? Thanks a bunch. ___ collectd mailing list collectd@verplant.org http://mailman.verplant.org/listinfo/collectd
[collectd] Thresholds - nevermind
Disregard the previous questions about thresholds. I'm still learning about how things work. I had an incorrect value in my fstab file as well as a misunderstanding of what can go into the Threshold Type element. ___ collectd mailing list collectd@verplant.org http://mailman.verplant.org/listinfo/collectd
[collectd] Thresholds, updated
So after looking at the docs a little more I ended up with this as a configuration for the df threshold: FSType "ext3" Percentage true ReportReserved true FailureMin 2 Is that correct syntax? Should that fire if the ext3 type filesystems exceed 2% capacity? I'm still not sure if the Plugin wrapper is needed... Thanks. ___ collectd mailing list collectd@verplant.org http://mailman.verplant.org/listinfo/collectd
[collectd] Thresholds
I'm getting started using thresholds with collectd and had a couple of questions. I see in the examples that you can use a Type for stuff like cpu, but you need to use a Plugin for "memory" and "interface". Is there any set of base plugins that you can use without the Plugin tag or something? Also, I'm trying to do a threshold with df with a percentage and based only on ext3 type filesystems. I'm doing it like this currently: Instance "ext3" Percentage true FailureMin 2 I know it's a low number - I'm just trying to trigger a failure in the log file. Do I need to wrap the Type in a Plugin? Is ext3 something that needs to be an Instance or a DataSource? I ask because even taking out the Instance line, it doesn't trigger an error and I'm pretty sure it should. Thanks. ___ collectd mailing list collectd@verplant.org http://mailman.verplant.org/listinfo/collectd