Flapping Thresholds

Andreas Ericsson ae at op5.se
Sun Jan 23 21:04:47 CET 2005


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).

> Is it safe to hack it into the sourcecode?

Yes. It's a computer program we're talking about, not The Bomb.

> 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.

> Is there any other way to configure it?
> 

No. The proper way to do it would probably be to add it as a macro so it 
can be easily tweaked. The size of the a result array should ofcourse be 
determined by the same macro.

> Thanks in advance! Philipp
> 

-- 
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