On 9/17/07, <b class="gmail_sendername">A JM</b> <<a href="mailto:vbtalent@gmail.com">vbtalent@gmail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Steve, I tried using monit but never got it going how's that been treating you? Could you possibly post your config?</blockquote><div><br>I have Ubuntu. I had to install Exim to get email working. <br></div><br>
</div># Monit control file<br>#<br># Comments begin with a '#' and extend through the end of the line.<br># Blank lines between program entries are ignored. Keywords are case<br># insensitive. All path's MUST BE FULLY QUALIFIED, starting with '/'
<br>#<br>set daemon 30<br>set logfile /var/log/monit.log<br>set mailserver localhost # primary mailserver<br><br>## Monit by default uses the following alert mail format:<br><br>#From: monit@$HOST # sender<br>#Subject: monit alert . $EVENT $SERVICE # subject
<br><br>#$EVENT Service $SERVICE<br><br>#Date: $DATE<br>#Action: $ACTION<br>#Host: $HOST # body<br>#Description: $DESCRIPTION<br><br>#Your faithful,<br>#monit<br><br>## You can override the alert message format or its parts such as subject
<br>## or sender using the MAIL-FORMAT statement. Macros such as $DATE, etc.<br>## are expanded on runtime. For example to override the sender:<br>#<br>set mail-format { from: <a href="mailto:monit@monitorserver.com">monit@monitorserver.com
</a> }<br><br>set alert <a href="mailto:yourusername@gmail.com">yourusername@gmail.com</a> # Send alert to system admin on any event<br>set httpd port 2812 and<br># allow <a href="http://ash.mydomain.com">ash.mydomain.com
</a><br># allow <a href="http://10.0.0.90">10.0.0.90</a><br> allow <a href="http://127.0.0.1">127.0.0.1</a><br> allow admin:monit # user 'admin' with password 'monit'<br><br><br>check process mythbackend with pidfile /var/run/mythtv/mythbackend.pid
<br> group mythtv<br> start program = "/bin/sh /etc/init.d/mythtv-backend start"<br> stop program = "/bin/sh /etc/init.d/mythtv-backend stop"<br> if failed port 6544 proto http then restart<br> mode manual
<br> depends on mysql<br><br>check process mysql with pidfile /var/run/mysqld/mysqld.pid<br> group mythtv<br> start program = "/etc/init.d/mysql start"<br> stop program = "/etc/init.d/mysql stop"<br> if failed port 3306 then restart
<br> mode manual<br><br><br><br><br>