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 [email protected] #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 [email protected] 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 [email protected]
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