From: Ben C. <Be...@cl...> - 2004-07-19 12:24:32
|
William, The documentation, as you say, states: 'label'=value[UOM];[warn];[crit];[min];[max] However, PerfParse is very flexible. As so many 'official' plugins don't provide the correct syntax, it will accept just about anything. Eg: "label=value" or even "label = value" With any unit (time/seconds/space/latency/users etc) you want, or none. However, PerfParse does not support the '' escapement. Eg, label = "metric's" should -> "'metric''s'" But PerfParse will read this as "'metric''s'" and not "metric's". :) This is not a problem as no plugins currently use this. It is on our TODO list for future versions. However if you plan to use other tools than PerfParse, you may wish to stick to the official where ever possible. I hope this is of some use, Regards, Ben. Williams, P. Lane wrote: > I guess that's what I get for not following coding guidelines. Easy enough > though. > > In the nagios performance guidelines, the data should look like > > 'label'=value[UOM];[warn];[crit];[min];[max] > > Based on your example below....lets say with my disk data....My performance > output should look like > > 'C-total'=value 'C-free'=value 'C-used'=value;warn;crit;min;max > > Which I can exclude everything to the right of the semi-colon, if I wish? > > Is this correct? > > Thanks, > > Lane > > -----Original Message----- > From: Ben Clewett [mailto:Be...@cl...] > Sent: Monday, July 19, 2004 4:13 AM > To: Williams, P. Lane > Subject: Re: Coding perfdata > > > You can include as many metrics as you like in the performance data. > You do have to use the correct syntax, which si explained here: > > http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN185 > > In it's simplest form, use: > > plugin output | metric1=12 metric2=54 metric3=43512.23432seconds > > I am glad you enjoy the product, > > Regards, > > Ben. > > > Williams, P. Lane wrote: > > >>Is there a certain way I should format the output of the performance >>data. My performance data output contains more than just one value. >>Such as my diskspace contains ....total=500,free=300,used=200. Is only >>one value allowed when using perfparse? Would it be possible to include >>in the perfparse code a means for the code to detect multiple values and >>process accordingly. I am not a big C coder, but I believe it could be >>done. >> >>This is a neat concept for Nagios. I see a lot of potential for this >>app. Thanks, Lane >> > > |