monit-general
[Top][All Lists]
Advanced

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

Re: [monit] monit mail-format options


From: Simon Christian
Subject: Re: [monit] monit mail-format options
Date: Wed, 31 Oct 2007 12:28:41 +1100
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)

This would be an option if I had control over the system/software that generates the sms message. However this service is provided by out telecommunications provider and sms messages are only sent for high priority emails.

For now my simple solution does the job. Although it would be nice to be able to have a priority variable that can be set in monitrc.

Cheers,
Simon

Martin Pala wrote:
Alternatively - Monit has native support for multiple alerts (global and/or per service) and event filters + customizable mail-format.

Usually i add the sms recipient on selected events directly to monit configuration.


Martin



Simon Christian wrote:
I've looked further at the documentation and played with monitrc and not been able to find the option to add a priority. So I edited sendmail.c of the monit source to include the following lines:

do_send(&S, "X-Priority: 1\n");
do_send(&S, "X-MSMail-Priority: High\n");

These lines are written in after line 135. I'm aware this isn't ideal, but it solves my problem for the moment.
Just thought I'd let everyone know

Cheers,
Simon

Simon Christian wrote:
Hi,

Is it possible to have monit give the alert emails it sends a priority header such as "X-Priority = 1"? I am asking because I'm looking at getting the monit emails sent to an address that will trigger an sms message to be sent for high priority messages.

Cheers,
Simon


--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general




--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general


--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general






reply via email to

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