[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: {Disarmed} Re: [monit] Is this possible?
From: |
Dimitri Yioulos |
Subject: |
Re: {Disarmed} Re: [monit] Is this possible? |
Date: |
Thu, 31 Jul 2008 17:52:40 -0400 |
User-agent: |
KMail/1.9.3 |
Pierrick,
I thought of using rc.local, but idmissed it as running my script prior to
MySQL starting. I went ahead and added a line at the end of rc.local and, of
course, it worked. And, I call myself a sysadmin. Yeesh. Thanks for the
tip, and for sticking with me.
Given the possible race condition that a dependency might create, is it worth
it?
Dimitri
On Thursday 31 July 2008 5:29 pm, Pierrick Grasland wrote:
> Hi,
>
> You could also append a dependency between check process mysql and check
> file mysqlpid.
>
> Append something like :
>
> depends on <namemysqlprocesscheck>
>
> at the end of check file ....
>
> It will forced monit to wait for the start of mysql before checking itself
> (note : beware of race condition, it's actually something tricky to make
> good use of dependencies between check. Hopefully, it will soon change,
> from the current item in todo list)
>
> On Thu, Jul 31, 2008 at 10:14 PM, Scott Silva <address@hidden> wrote:
> > on 7-31-2008 1:05 PM Dimitri Yioulos spake the following:
> >
> > On Thursday 31 July 2008 3:52 pm, Dimitri Yioulos wrote:
> >>> On Thursday 31 July 2008 3:17 pm, Scott Silva wrote:
> >>>> on 7-31-2008 12:05 PM Tomich,John spake the following:
> >>>>> If I understand log correctly, monit detected PID file change, but
> >>>>> did not attempt to execute restart.sh, yes? I'm afraid you'll have
> >>>>> to seek further guidance elsewhere, I'm stumped. Also, must leave
> >>>>> office on business trip, and will be out of touch for a few days.
> >>>>> Good luck!
> >>>>
> >>>> Does the restart script have absolute paths to everything?
> >>>>
> >>>> Monit passes a very sparse environment to scripts it runs.
> >>>
> >>> Hi, Scott.
> >>>
> >>> That was it! I changed
> >>>
> >>> #! /bin/bash
> >>> mysql test1 < restart.sql
> >>>
> >>> to
> >>>
> >>> #! /bin/bash
> >>> mysql test1 < /root/restart.sql
> >>>
> >>> And, voila.
> >>>
> >>> Arrrgh, I should know better. Thanks so much to you, John, and
> >>> Pierrick for your help.
> >>>
> >>> Now to test that it works if I restart the OS.
> >>>
> >>> BTW, I know your name from the MS list. Small virtual world :-) . You
> >>> may
> >>> remember my name from some of the dumb mistakes I post about there.
> >>> Anyway, again thanks.
> >>>
> >>> Dimitri
> >>
> >> I'm back :-( .
> >>
> >> Well, it didn't work upon system restart. And, why would it, since
> >> there's no previous timestamp to compare against, what with a pid being
> >> a transitory type of file. Anyone got any ideas how I can accomplish
> >> that (if I haven't worn you out already)?
> >>
> >> Dimitri
> >>
> >> Do you need it to happen always after a system restart?
> >
> > Just stick a line at the end of rc.local to run your script.
> >
> > --
> > MailScanner is like deodorant...
> > You hope everybody uses it, and
> > you notice quickly if they don't!!!!
> >
> >
> > --
> > To unsubscribe:
> > http://lists.nongnu.org/mailman/listinfo/monit-general
>
> --
> Pierrick Grasland
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
- RE: {Disarmed} Re: [monit] Is this possible?, (continued)
- RE: {Disarmed} Re: [monit] Is this possible?, Tomich,John, 2008/07/31
- Re: {Disarmed} Re: [monit] Is this possible?, Dimitri Yioulos, 2008/07/31
- RE: {Disarmed} Re: [monit] Is this possible?, Tomich,John, 2008/07/31
- Re: {Disarmed} Re: [monit] Is this possible?, Dimitri Yioulos, 2008/07/31
- RE: {Disarmed} Re: [monit] Is this possible?, Tomich,John, 2008/07/31
- Re: {Disarmed} Re: [monit] Is this possible?, Scott Silva, 2008/07/31
- Re: {Disarmed} Re: [monit] Is this possible?, Dimitri Yioulos, 2008/07/31
- Re: {Disarmed} Re: [monit] Is this possible?, Dimitri Yioulos, 2008/07/31
- Re: {Disarmed} Re: [monit] Is this possible?, Scott Silva, 2008/07/31
- Re: {Disarmed} Re: [monit] Is this possible?, Pierrick Grasland, 2008/07/31
- Re: {Disarmed} Re: [monit] Is this possible?,
Dimitri Yioulos <=
- Re: {Disarmed} Re: [monit] Is this possible?, Scott Silva, 2008/07/31
- Re: {Disarmed} Re: [monit] Is this possible?, Dimitri Yioulos, 2008/07/31
- Re: [monit] Is this possible?, Scott Silva, 2008/07/31