On Wed, 26 Dec 2001, Ed Ravin wrote:

> As an alternative to this, how about a syntax in mon.cf that
> would let us stuff arbitrary variables into the mon structure?
> Like:
> 
>       service ftp
>       depend SELF:inetd
>       interval 5m
>       monitor ftp.monitor
>       var downmessage "Production FTP has failed, fix it now!"
>       var upmessage   "Production FTP is back"

unfortunately i neglected to add it to the man page, but there is already
a similar capability. for example:

watch something
    service ftp
        interval 5m
        monitor ftp.monitor
        MON_VAR=this is the value

when the monitor or alert for that service is called it sets 
the environment variable "MON_VAR" to "this is the value".

it's up to the monitor or the alert to provide meaning.

is that what you're asking for?


Reply via email to