From: Ben C. <Be...@cl...> - 2004-07-20 15:45:42
|
Yves, Thanks for the work. This is about to be released. Can I ask all to check their 'drop' file to ensure no valid, or nearly valid, plugin's end up here. If they do, please report this to this groups. Ben Yves Mettier wrote: > Hi Garry, William... ! > > I just sent Ben my patch 0.99.01ym5 that should become 0.99.02 tomorrow. > It has some bugs fixed, and a new feature: the quotes are now handled as specified in > nagios doc. > label=value > 'label'=value -> correct > 'label with spaces ''nd quotes'=value -> correct > "label"=value -> correct, but notice that "label" is equivalent to '"label"' and not to > label :) > > For Garry who maintains the documentation, there is a new option in the config file: > Accept_Odd_Chars_in_Label: if you say yes, this is nagios behaviour. If you say no > (default answer), characters below ' ' are illegal characters. > In previous versions of perfparse, they were already illegal characters. Because this is > not specified in nagios doc, I added this option. > > Now, what is not done: > 1: "label = value" > 2: 'label' = value > 3: label = value > > I think that 'label'= value should work. The code allow this with a space char after the > label. > The 2/ and 3/ should be allowed. Maybe I will work on this one day. > The 1/ has no interest, hasn't it ? You are supposed to quote texts, not expressions. > Expressions are usually inside brackets or parens. But what is the interest to have it > here ? > > Now, if someone needs another syntax, it is possible to implement it: we want perfparse > flexible ! > > Yves > > > >>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 >>>> >>> >>> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by BEA Weblogic Workshop >>FREE Java Enterprise J2EE developer tools! >>Get your free copy of BEA WebLogic Workshop 8.1 today. >>http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click >>_______________________________________________ >>Perfparse-devel mailing list >>Per...@li... >>https://lists.sourceforge.net/lists/listinfo/perfparse-devel >> >> > > > |