[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[monit] Substituting System Variables in .monitrc

From: Kenneth Holcomb
Subject: [monit] Substituting System Variables in .monitrc
Date: Tue, 16 Sep 2008 19:02:38 -0400

I am rather new at using monit so if this question is dumb or redundant I beg forgiveness in advance.

I have a qa stack and I want to use the same control file for all of them.  In the alert message I would like to have the from: address@hidden (see below) substitute hostname in lieu of so that the email alerts would appear as from: address@hidden where address@hidden is the hostname.

Is this possible and if so, how does one accomplish this.

.monitrc code:
set mail-format { from: address@hidden
                  subject: Service Monitor Alert -- $SERVICE $EVENT

Date:            $DATE
Host:            $HOST
Description:   $DESCRIPTION

End .monitrc code


reply via email to

[Prev in Thread] Current Thread [Next in Thread]