Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 108254

Summary: app-admin/mon - a patch is missing in portage
Product: Gentoo Linux Reporter: Voltairien <voltairien>
Component: Current packagesAssignee: Michael Cummings (RETIRED) <mcummings>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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!