On Wed, 14 Feb 2007 14:43:41 +0200
Maravelias Marios - Tophost Internal <[EMAIL PROTECTED]> wrote:

> Hello, I have monit running for check and monitoring http.
> It works fine.
> To day I tried to install monitor for mysql database too.
> I added these lines at /etc/monitrc file:
> 
> check process mysqld with pidfile /var/run/mysqld/mysqld.pid
>         group mysql
>         start "/etc/init.d/mysqld start"
>         stop  "/etc/init.d/mysqld stop"
>         if failed port 3306 then restart
>         if 5 restarts within 5 cycles then timeout
> 
> in the web interface I see this:
[snip]
> mysqld <http://grserver.gr:2828/mysqld>       Connection failed
>       37m     3.4% 5.8% [122288 kB]
> 
> Why do I get connection failed? how do I fix that?

Try "if failed host localhost port 3306 protocol mysql then restart"

-- 
Marshal Newrock
Ideal Solution, LLC - http://www.idealso.com


--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to