-
Notifications
You must be signed in to change notification settings - Fork 16
Description
I'd like a way to have minmon 'dump' all of its current state. That is, it would tell me the "OK", "alarm" or whatever of all the checks it has configured. It could either do this periodically (like reports), or possibly more usefully on some sort of prompt (eg. a SIGUSR1 signal).
The aim here is to be able to get a complete view of the current system, which I could then subsequently parse and display or render in some way. I'd use this when working on the system. For example, I do some sort of work, which causes a number of alarms to trigger and reset several times. When the work is finished, I'd like to ensure that all alarms are reset and that all the services on the machine are "green" (if not, then I've got some more work to do!).
It feels like the current reports mechanism could be extended to do this, perhaps with a magic variable (that the report Action could consume) that contains the whole state in some sort of serialised form. Alternatively, I guess its possible that every action could could be told to 'fire', so that you get updates for everything so could see from that what wasn't yet 'green'.