Flapping Thresholds

Andreas Ericsson ae at op5.se
Mon Jan 24 14:35:39 CET 2005


Sand Philipp wrote:
>>Sand Philipp wrote:
>>
>>>Hi,
>>>
>>>In the Documentation it's said, that the flapping 
>>
>>functionality uses 
>>
>>>the last 21 check results to calculate the % of flapping. Is it 
>>>possible change that array into maybe 80 instead of 21 
>>
>>check results 
>>
>>>stored in an array?
>>
>>Yes, but with a rather violent increase in memory used by a 
>>running Nagios process. It's (sizeof(ptrdiff_t) * 59 * (hosts 
>>+ services)) byte increase in allocated memory only. The data 
>>PTE will grow even more (it's bloated already, but still).
> 
> Ok, i think I'll check it out. Can you please give a hint, where to look
> in the sourcecode?
> 

Just a wild guess off the top of my head, but base/flapping.c seems like 
a reasonable place to at least learn the variable names. You'll probably 
want to look at something in xdata/*.h to find the macro that defines 
the max number of preserved states for flapping reasons.

> 
>>>Is it safe to hack it into the sourcecode?
>>
>>Yes. It's a computer program we're talking about, not The Bomb.
> 
> You never know :-p
> 
> 
>>>Has anyone experiences with it?
>>
>>Kernighan & Ritchie have extensive, as does a couple of 
>>hundred million people worldwide. C is a very wellknown 
>>language, after all.
> 
> Ah..ok... :-/
> 
> 
> Thanks,
> Philipp
> 
> 
> ************************************************
> 
> sycor plastics - die neue Branchenlösung für die Kunststoffindustrie
> 
> www.sycor-plastics.de
> 
> ************************************************
> 
> 
> 
> 
> Diese E-Mail ist vertraulich und kann darüber hinaus persönliche Informationen beinhalten. Wenn Sie nicht der bestimmungsgemäße Empfänger sind, löschen Sie bitte die E-Mail und deren Anhänge sofort und benachrichtigen Sie uns darüber. Die Firma sycor willigt in keine Verträge oder vertragliche Verpflichtungen ein oder übermittelt rechtsverbindliche Angebote, die in Form von E-Mail versandt werden, sofern dies nicht ausdrücklich in schriftlicher Form zwischen den Parteien vereinbart wurde.
> 
> This e-mail is confidential and may contain personal and/or privileged information. If you are not the intended recipient please delete this e-mail and all attachments immediately and inform us. The company sycor does not agree with contracts or contract obligations sent by e-mail, neither do we transmit legally binding offers by e-mail, unless this is not expressly agreed upon between the parties and documented in written form.
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list