Scheduled downtime functionality
Has anyone considered adding a Scheduled downtime function to mon. Why? Summary Don't do what I could get the machines to do. Detail Invariably, when doing planned maintenance, I forget to. Log into mon and disable what I'm working on before the alerts start flying. Log into mon and re-enable what I was working on, so the alerts will fly. I'm currently planning to implement this as a second process that continuously reads a flat csv file containing what,when,how long\n. Then issues the appropriate disable or enable commands to the mon server. Would implementing such functionality in the mon server itself be more efficient? signature.asc Description: OpenPGP digital signature ___ mon mailing list mon@linux.kernel.org http://linux.kernel.org/mailman/listinfo/mon
Re: Scheduled downtime functionality
On Fri, 16 Oct 2009, Nathan Gibbs wrote: Has anyone considered adding a Scheduled downtime function to mon. Invariably, when doing planned maintenance, I forget to. Log into mon and disable what I'm working on before the alerts start flying. Log into mon and re-enable what I was working on, so the alerts will fly. Don't we all :) I'm currently planning to implement this as a second process that continuously reads a flat csv file containing what,when,how long\n. Then issues the appropriate disable or enable commands to the mon server. Would implementing such functionality in the mon server itself be more efficient? Absolutely yes, IMHO it is the only place to add such a function, since it is the governing process. -- Res Time to change the Australian Data Cable and Wiring Laws. Help get the Digital Data Exemption back so we can legally make ethernet cables. http://forums.ausics.net/./viewtopic.php?f=1t=61 ___ mon mailing list mon@linux.kernel.org http://linux.kernel.org/mailman/listinfo/mon
Re: Scheduled downtime functionality
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. i already have something which can do that, with minor mods. i doubt anyone knows about it, though :) 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. from the pod: Schedule::Oncall provides methods to manipulate an on-call schedule. One or more tables of schedules can be maintained, loaded, and searched. An on-call table is composed of seven days, where each day has a list of minute ranges which correspond to a particular person. Information such as email address, pager number, etc. may be stored in the schedule configuration file. Simple variable assignments may also be made. Other textual information may be stored in the schedule in order to assist other applications (e.g., html headers or email body text), and variables substitution may occur within the text blocks. Schedule files may be chosen based on weekly or monthly rotations, relative to the first week or month of the year. Weekly schedules begin on a Monday and end on a Sunday, the same as strftime(3)'s %W format. Each rotation is stored in a separate file, and the appropriate rotation is chosen at load time. also there is some discussion of it here: http://www.kernel.org/pub/software/admin/mon/mon-talk-1.2.pdf ___ mon mailing list mon@linux.kernel.org http://linux.kernel.org/mailman/listinfo/mon