monit-general
[Top][All Lists]
Advanced

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

Re: monit alerts sent to a log rather than email?


From: Noel
Subject: Re: monit alerts sent to a log rather than email?
Date: Wed, 05 Jun 2013 12:44:50 -0500
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6

On 6/5/2013 11:29 AM, Chris Sanner wrote:
> Can I have monit alerts written out to a log file instead of sent
> in an email?

I don't believe there's an option to send only alerts to a separate
log file.  I suppose you could not set any alerts (or suppress all
alerts) and parse the monit log file for interesting entries, but
that seems like a lot of duplicated effort as there will likely be
lots of entries you don't want to be notified about.

>
> I already have monitoring systems that check log files, send
> messages to places, etc, but I don't have outbound email
> configured on these systems and don't want to have that headache.

monit doesn't require any mail software on the system it's running
on.  A network accessible mail server anywhere will do fine.  It can
also send to an alternate port if you like to firewall outgoing
connections to port 25.

# monitrc
...
set mailserver smtp.example.com   # primary, default to port 25
                        smtp2.example.net port 11125  # fallback if
primary unavailable



  -- Noel Jones



reply via email to

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