[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Plans for the next release
From: |
Jan-Henrik Haukeland |
Subject: |
Re: Plans for the next release |
Date: |
02 Jul 2002 14:00:37 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Civil Service) |
Jani Mikkonen <address@hidden> writes:
> At the moment, only way to get alerts is to mail them. How about
> making user defined alerts. I would like to see a feature that monit
> runs a certain userdefinet program and possibly pass information to
> it for example, what monitored program made this alert.
>
> In this way, i could get alerts via sms if something bad occurs or even
> send in snmp or mon trap to centralized location..
Interesting. A possible solution could maybe be something like this in
the control file (keywords in capital):
NOTIFY program on {RESTART, TIMEOUT, CHECKSUM} with ARGUMENTS {
arg1= "Apache restarted"
arg2= $DATE
arg3= $DATE
..
argN="this is the last argument"
}
In other words the NOTIFY statement will work like the alert statement
except that monit will start the mentioned notify "program" with
arguments given in the ARGUMENT block and where the standard alert
variables will be available:
$EVENT A string describing the event that occured. The
values are fixed and are, "restarted", "timed out" and
"checksum error"
$PROGRAM The program entry name in monitrc
$DATE The current time and date (C time style).
$HOST The name of the host monit is running on
How does this sound?
--
Jan-Henrik Haukeland
- Re: Plans for the next release, (continued)
RE: Plans for the next release, Greg_Cope, 2002/07/02
Re: Plans for the next release, Jani Mikkonen, 2002/07/02
- Re: Plans for the next release,
Jan-Henrik Haukeland <=
- Re: Plans for the next release, Martin Pala, 2002/07/02
- Re: Plans for the next release, Jan-Henrik Haukeland, 2002/07/02
- Re: Plans for the next release, Jani Mikkonen, 2002/07/02
- Re: Plans for the next release, Jan-Henrik Haukeland, 2002/07/02
- Re: Plans for the next release, Martin Pala, 2002/07/02
Re: Plans for the next release, Martin Pala, 2002/07/02
Re: Plans for the next release, rory, 2002/07/02
RE: Plans for the next release, Greg_Cope, 2002/07/02
Re: Plans for the next release, Igor Homyakov, 2002/07/02