monit-general
[Top][All Lists]
Advanced

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

Re: Cannot open a connection to the mailserve 'localhost:25' -- Transpor


From: Martin Pala
Subject: Re: Cannot open a connection to the mailserve 'localhost:25' -- Transport endpoint is not connected
Date: Thu, 10 Jul 2014 22:01:52 +0200

Hello,

you need to set the mailserver to be used for alert delivery using the "set 
mailserver" statement - see manual for more details: 
http://www.mmonit.com/monit/documentation/monit.html#setting_a_mail_server_for_alert_delivery

Regards,
Martin


On 10 Jul 2014, at 18:58, GreenLantern <address@hidden> wrote:

> hello everyone, new monit user here.
> 
> I am trying to run a simple test program to monitor a simple test process
> and send me an email alert.
> 
> here is my monitrc file:
> 
> *set daemon 30  # Poll at 60 second intervals for testing purposes.
> set httpd port 2812 and use address localhost
>     allow localhost
> 
> set mail-format {
>        subject: $SERVICE $EVENT
>        message: $HOST $DATE
>        }
> 
> set alert address@hidden #receive all alerts to email
> 
> check process sleeper with pidfile "/monit/bin/sleeper.pid"
>   start program = "/monit/bin/sleepercontrol start &"
>   stop program = "/monit/bin/sleepercontrol stop"
>   alert address@hidden on { nonexist }
> *
> 
> the process it is running is called sleeper. monit does a fine job of
> restarting the sleeper process when I terminal $ kill -9 <sleeper pid>
> 
> but when i run: $ monit -vId 20 -c monitrc
> 
> i get this: 
> 
> *Starting monit daemon with http interface at [localhost:2812]
> Starting monit HTTP server at [localhost:2812]
> monit HTTP server started
> Monit started
> Monit instance changed notification is sent to address@hidden
> Cannot open a connection to the mailserver 'localhost:25' -- Transport
> endpoint is not connected
> No mail servers are available
> Aborting event
> *
> 
> any ideas? I can seem to figure this one out.
> 
> Thanks folks!
> 
> 
> 
> 
> --
> View this message in context: 
> http://nongnu.13855.n7.nabble.com/Cannot-open-a-connection-to-the-mailserve-localhost-25-Transport-endpoint-is-not-connected-tp186867.html
> Sent from the monit-general mailing list archive at Nabble.com.
> 
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general




reply via email to

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