[Nagiosplug-help] custom plugin and NagiosGrapher
Jon Angliss
jon at netdork.net
Wed May 6 16:05:01 CEST 2009
On Wed, 6 May 2009 15:28:04 +0200, Erik Wasser
<erik.wasser at iquer.net> wrote:
>On Tuesday 05 May 2009, eva.keane at tradeweb.com wrote:
>
>> I have a custom plugin that measure the memory. I am now to the point
>> that I would like to graph it.
>>
>> Plugin: check_mem_system
>>
>> I have output:
>>
>> Memory OK,
>> TOTAL=7970MB,FREE=7300MB,UTIL=11.89%|UTIL=11.89;80;90,0,7970
>
>Wouldn't match the regexp ";(\d+)$" only to the "7970"? That is a
>constant value, isn't it?
>
>Are you sure you want to log that value?
It actually wouldn't match anything. There are no ;<number><eol>
strings in the perf data. I'm guessing the regex should probably be:
=(\d+);
That will get the % used value.
--
Jonathan Angliss
<jon at netdork.net>
More information about the Help
mailing list