* Jim Trocki wrote:
> On Sat, 17 Oct 2009, Res wrote:
> 
>>> I'm currently planning to implement this as a second process that
>>> continuously reads a flat csv file containing what,when,how long\n.
>>
>> Absolutely yes, IMHO it is the only place to add such a function,
>> since it is the governing process.
> 

My thoughts exactly.
However, I won't touch the code to mon itself.
I've read some of it, even copied some of it into my current project,
but it is above my coding capabilities.
I refuse to mangle something that is so close to perfect.

On a conceptual level this is how I would go about it.
Create a data structure to hold scheduled downtime events.
Something like
qw ( StartTimeStamp Duration ObjType ( Watch|host|service ) ObjName )
Add a new maintenance state to the watchs|hosts|services
This would work like current Enabled,Disabled or OK, Failed, Failing states.
Add the appropriate functions to Mon::Client to access this state
Something like
list_maintenance
Modify the monitor logic so that if an object is in the maintenance
state, monitors for it don't run.
Could work like an exclusion period.

> i already have something which can do that, with minor mods. i doubt
> anyone knows about it, though :)

Please make them & put it into mon.

> 
> http://search.cpan.org/~trockij/
> 
> the ones named "schedule".
> 
> the config is kept in csv format so it can be edited easily with a
> spreadsheet.
> 
I'll see if I can leverage that in the current project.

> also there is some discussion of it here:
> 
> http://www.kernel.org/pub/software/admin/mon/mon-talk-1.2.pdf
> 
Nice paper!  That is so going into my reference file.!
I'd figured there was a way to escalate alerts, somewhere in the
configuration parameters just screaming to get out.
I never even thought of multiple periods.  Its so simple.
Time to hit myself in the head with a keyboard. :-)

-- 
Sincerely,

Nathan Gibbs

Systems Administrator
Christ Media
http://www.cmpublishers.com


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to