On 9/17/07, <b class="gmail_sendername">A JM</b> &lt;<a href="mailto:vbtalent@gmail.com">vbtalent@gmail.com</a>&gt; 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&#39;s that been treating you? Could you possibly post your config?</blockquote><div><br>I have Ubuntu.&nbsp; I had to install Exim to get email working.&nbsp; <br></div><br>
</div># Monit control file<br>#<br># Comments begin with a &#39;#&#39; and extend through the end of the line.<br># Blank lines between program entries are ignored. Keywords are case<br># insensitive. All path&#39;s MUST BE FULLY QUALIFIED, starting with &#39;/&#39;
<br>#<br>set daemon&nbsp; 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>&nbsp; # Send alert to system admin on any event<br>set httpd port 2812 and<br>#&nbsp;&nbsp;&nbsp; allow <a href="http://ash.mydomain.com">ash.mydomain.com
</a><br>#&nbsp;&nbsp;&nbsp; allow <a href="http://10.0.0.90">10.0.0.90</a><br>&nbsp;&nbsp;&nbsp; allow <a href="http://127.0.0.1">127.0.0.1</a><br>&nbsp;&nbsp;&nbsp; allow admin:monit&nbsp;&nbsp;&nbsp;&nbsp; # user &#39;admin&#39; with password &#39;monit&#39;<br><br><br>check process mythbackend with pidfile /var/run/mythtv/mythbackend.pid
<br>&nbsp;group mythtv<br>&nbsp;start program = &quot;/bin/sh /etc/init.d/mythtv-backend start&quot;<br>&nbsp;stop program&nbsp; = &quot;/bin/sh /etc/init.d/mythtv-backend stop&quot;<br>&nbsp;if failed port 6544 proto http then restart<br>&nbsp;mode manual
<br>&nbsp;depends on mysql<br><br>check process mysql with pidfile /var/run/mysqld/mysqld.pid<br>&nbsp;group mythtv<br>&nbsp;start program = &quot;/etc/init.d/mysql start&quot;<br>&nbsp;stop program = &quot;/etc/init.d/mysql stop&quot;<br>&nbsp;if failed port 3306 then restart
<br>&nbsp;mode manual<br><br><br><br><br>