Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108254 - app-admin/mon - a patch is missing in portage
Summary: app-admin/mon - a patch is missing in portage
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Michael Cummings (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-06 02:18 UTC by Voltairien
Modified: 2006-08-12 05:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Voltairien 2005-10-06 02:18:10 UTC
On startup, mon initializes the _1stfailtime variable to 0 for any
periods which are configured for alertafter <time interval>.
Subsequently, when a failure occurs, this variable gets set to the
current UNIX timestamp.  When the (current time - the 1stfailtime)
exceeds the configured time interval, a DOWN alert is thrown.

Problem is, since 1stfailtime is never cleared, ever subsequent
failure will cause a DOWN alert to be thrown immediately, because
1stfailtime is past the current time - <time interval>.

The patch has been publish in the mailing list by Adrian Chung the Thu, 05 Dec
2002 06:44:18 -0800, but never apply to portage.

Details here : http://www.mail-archive.com/mon@linux.kernel.org/msg00869.html

Reproducible: Always
Steps to Reproduce:
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2006-08-12 05:33:10 UTC
(don't remember inheriting this). all set, thanks!