monit-general
[Top][All Lists]
Advanced

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

Help


From: Kiti Chigiri
Subject: Help
Date: Tue, 23 Nov 2010 19:09:30 +0300

On 11/19/10, address@hidden
<address@hidden> wrote:
> Send monit-general mailing list submissions to
>       address@hidden
>
> To subscribe or unsubscribe via the World Wide Web, visit
>       http://lists.nongnu.org/mailman/listinfo/monit-general
> or, via email, send a message with subject or body 'help' to
>       address@hidden
>
> You can reach the person managing the list at
>       address@hidden
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of monit-general digest..."
>
>
> Today's Topics:
>
>    1. Monit 5.2.n with mysql 5.5.7 (Karl-Heinz Wild)
>    2. Silencing Monit for a given amount of cycles (Julian Berkner)
>    3. Re: Silencing Monit for a given amount of cycles (Eric Pailleau)
>    4. Re: Silencing Monit for a given amount of cycles (Julian Berkner)
>    5. Re: Silencing Monit for a given amount of cycles (Eric Pailleau)
>    6. Re: Silencing Monit for a given amount of cycles (Eric Pailleau)
>    7. Re: Silencing Monit for a given amount of cycles (Eric Pailleau)
>    8. Alerts (Mark Olliver)
>    9. Re: Monit 5.2.n with mysql 5.5.7 (Jeremy Clarke)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 19 Nov 2010 08:27:26 +0100
> From: Karl-Heinz Wild <address@hidden>
> Subject: Monit 5.2.n with mysql 5.5.7
> To: address@hidden
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=us-ascii
>
> Hi List
>
> I've tried to add mysql 5.5.7 in monit and recognized
> that there has changed something.
>
> As far as I found out is, that the have changed the
> protocol.
>
> Is there a fix for this problem?
>
> Best regards.
>
> Karl-Heinz
>
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 19 Nov 2010 11:07:46 +0100
> From: Julian Berkner <address@hidden>
> Subject: Silencing Monit for a given amount of cycles
> To: address@hidden
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset="UTF-8"
>
> Hello again,
> here is the situation:
>
> set daemon 30
> #[...]
> check system localhost
>     if loadavg (1min) > 0.1 for 2 cycles then exec "/my/script"
> [...]
> I agree that all values are very low, but this is just for testing.
>
> The idea behind this is that the system is monitored, and in case
> the load goes above a given amount, several commands are issued to
> decrease the load (within my script) and inform the server
> administration ONCE that there is a problem.
>
> In fact, monit sends out an email every 2*30 Seconds, if the test
> continues to return true. (I know that is the correct behaviour, based
> on my config.)
>
> I thought about unmonitoring system, but this would be bad idea, as
> other tests need to continued and, when system is unmonitored, i cant
> attach the monitor to it again.
>
> Is there a possibilty to change this config, so the script gets
> executed once and not again until the test has returned false at least
> for one cycle?
>
> Kind regards,
> Julian
>
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Fri, 19 Nov 2010 11:27:43 +0100
> From: Eric Pailleau <address@hidden>
> Subject: Re: Silencing Monit for a given amount of cycles
> To: This is the general mailing list for monit
>       <address@hidden>
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
>
>> Is there a possibilty to change this config, so the script gets
>> executed once and not again until the test has returned false at least
>> for one cycle?
>>
>
> check system localhost
>      if loadavg (1min) > 0.1 for 2 cycles then exec "/usr/bin/test -f
> /tmp/ignore || /my/script"
>
> /my/script has simply to touch /tmp/ignore .
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Fri, 19 Nov 2010 12:03:28 +0100
> From: Julian Berkner <address@hidden>
> Subject: Re: Silencing Monit for a given amount of cycles
> To: This is the general mailing list for monit
>       <address@hidden>
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset="UTF-8"
>
>> check system localhost
>>      if loadavg (1min) > 0.1 for 2 cycles then exec "/usr/bin/test -f
>> /tmp/ignore || /my/script"
>>
>> /my/script has simply to touch /tmp/ignore .
>
> This does not work for me.
> According to monit log file, only '/usr/bin/test' is called, without neither
> any parameter, nor the OR part.
> But thanks to your idea i was able to make it work by myself, by simply
> moving your test inside my script.
> And i appended an
>   else if succeeded for 3 cycles then exec "/bin/rm /tmp/ignore"
> to monitrc,
> so after 3 cycles of "peace" emailing and caretaking will be switched back
> on.
>
> Thank you for your help!
>
> --
> Kind regards,
> Julian
>
>
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Fri, 19 Nov 2010 12:13:29 +0100
> From: Eric Pailleau <address@hidden>
> Subject: Re: Silencing Monit for a given amount of cycles
> To: This is the general mailing list for monit
>       <address@hidden>
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Le 19/11/2010 12:03, Julian Berkner a écrit :
>>> check system localhost
>>>       if loadavg (1min)>  0.1 for 2 cycles then exec "/usr/bin/test -f
>>> /tmp/ignore || /my/script"
>>>
>>> /my/script has simply to touch /tmp/ignore .
>>
>> This does not work for me.
>> According to monit log file, only '/usr/bin/test' is called, without
>> neither any parameter, nor the OR part.
>> But thanks to your idea i was able to make it work by myself, by simply
>> moving your test inside my script.
>> And i appended an
>>    else if succeeded for 3 cycles then exec "/bin/rm /tmp/ignore"
>> to monitrc,
>> so after 3 cycles of "peace" emailing and caretaking will be switched back
>> on.
>>
>> Thank you for your help!
>>
> May be 'test' is in /bin instead.
> do 'whereis test' to check...
>
> --
> Salutations - Best regards - mit freundlichen Grüssen
>
> ----------------- address@hidden ------------------------------------
> fr - Merci d'utiliser cette addresse pour le support ou question technique
> en - Please use this address for any support or technical question
> ----------------- https://support.numlog.fr --------------------------------
> fr - Privilégier la gestion de ticket d'incident  (Clients NUMLOG)
> en - Prefere our trouble ticket application   (NUMLOG's customers)
>
>
>
>
> ------------------------------
>
> Message: 6
> Date: Fri, 19 Nov 2010 12:18:36 +0100
> From: Eric Pailleau <address@hidden>
> Subject: Re: Silencing Monit for a given amount of cycles
> To: This is the general mailing list for monit
>       <address@hidden>
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
>
>>> else if succeeded for 3 cycles then exec "/bin/rm /tmp/ignore"
>
> Better using "/bin/rm -f /tmp/ignore" as it won't return non negative exit
> code if /tmp/ignore does not exist...
> You want that /tmp/ignore is deleted, so it must not be a error if something
> or someone deleted it manually before.
> Regards.
>
>
>
> ------------------------------
>
> Message: 7
> Date: Fri, 19 Nov 2010 12:21:56 +0100
> From: Eric Pailleau <address@hidden>
> Subject: Re: Silencing Monit for a given amount of cycles
> To: This is the general mailing list for monit
>       <address@hidden>
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Le 19/11/2010 12:18, Eric Pailleau a écrit :
>>
>>>> else if succeeded for 3 cycles then exec "/bin/rm /tmp/ignore"
>>
>> Better using "/bin/rm -f /tmp/ignore" as it won't return non negative
>> exit code if /tmp/ignore does not exist...
>> You want that /tmp/ignore is deleted, so it must not be a error if
>> something or someone deleted it manually before.
>> Regards.
>
> Sorry, by "non negative code" I mean "failure exit code", guessing you
> understood anyway ...
> Regards.
>
>
>
> ------------------------------
>
> Message: 8
> Date: Fri, 19 Nov 2010 11:47:59 +0000
> From: Mark Olliver <address@hidden>
> Subject: Alerts
> To: This is the general mailing list for monit
>       <address@hidden>
> Message-ID:
>       <address@hidden>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> Is the following valid:
>
> check process lighttpd
>     with pidfile "/var/run/lighttpd.pid"
>     start program = "/etc/init.d/lighttpd start"
>     stop program = "/etc/init.d/lighttpd stop"
>     if failed host 46.43.49.65 port 80 protocol HTTP and request
> '/index.html' hostheader localhost' then restart
>      if 5 restarts within 5 cycles then alert and timeout
>     group web
>
>
> Specifically the Alert and time out section. The alerts we send to mmonit.
>
> Thanks
>
> Mark
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.nongnu.org/archive/html/monit-general/attachments/20101119/b0082b55/attachment.html
>
> ------------------------------
>
> Message: 9
> Date: Fri, 19 Nov 2010 09:18:24 -0500
> From: Jeremy Clarke <address@hidden>
> Subject: Re: Monit 5.2.n with mysql 5.5.7
> To: This is the general mailing list for monit
>       <address@hidden>
> Message-ID:
>       <address@hidden>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Fri, Nov 19, 2010 at 2:27 AM, Karl-Heinz Wild <address@hidden> wrote:
>
>>
>> Is there a fix for this problem?
>>
>>
> I had a lot of issues getting my MySQL 5.0 installation to work the way I'd
> expect and ended up having it use the http protocol to check a super-basic
> PHP page that just tries to connect to a DB and returns a 500 Error if it
> can't (I set up a subdomain of my site for the script to live on, and am
> finding it's also a good way to test the Apache instance).
>
> So far it's working and it gives Monit a very realistic sense of whether
> MySQL is able to respond to queries or not.
>
> That said if MySQL 5.5.7 isn't working at all then I hope the developers can
> find time to fix it. I'll get there one day!
>
> --
> Jeremy Clarke | http://jeremyclarke.org
> Code and Design | http://globalvoicesonline.org
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.nongnu.org/archive/html/monit-general/attachments/20101119/8ab5e772/attachment.html
>
> ------------------------------
>
> _______________________________________________
> monit-general mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/monit-general
>
>
> End of monit-general Digest, Vol 94, Issue 13
> *********************************************
>

-- 
Sent from my mobile device



reply via email to

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