monit-general
[Top][All Lists]
Advanced

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

Re: 2 copies started at once


From: Nick Upson
Subject: Re: 2 copies started at once
Date: Tue, 31 Jul 2007 09:34:19 +0100

monit -v -c /opt/unb/cnf/monit.cnf start bs1
monit: Debug: Adding credentials for user 'root'.
monit: Debug: Adding credentials for user 'admin'.
Runtime constants:
 Control file       = /opt/unb/cnf/monit.cnf
 Log file           = /var/log/unb/monit.log
 Pid file           = /var/run/monit.pid
 Debug              = True
 Log                = True
 Use syslog         = False
 Is Daemon          = True
 Use process engine = True
 Poll time          = 120 seconds
 Mail server(s)     = localhost
 Mail from          = (not defined)
 Mail subject       = (not defined)
 Mail message       = (not defined)
 Start monit httpd  = True
 httpd bind address = Any/All
 httpd portnumber   = 2812
 httpd signature    = True
 Use ssl encryption = False
 httpd auth. style  = Basic Authentication

The service list contains the following entries:


Process Name          = bs1
 Pid file             = /var/run/bs1.pid
 Monitoring mode      = active
 Start program        = '/opt/unb/bin/bs.sh 1 restart' timeout 1 cycle(s)
 Stop program         = '/opt/unb/bin/bs.sh 1 stop' timeout 1 cycle(s)
 Pid                  = if changed 1 times within 1 cycle(s) then alert
 Ppid                 = if changed 1 times within 1 cycle(s) then alert

Process Name          = checkntpd
 Pid file             = /var/run/checkntpd.pid
 Monitoring mode      = active
 Start program        = '/opt/unb/bin/checkntpd.sh stop' timeout 1 cycle(s)
 Pid                  = if changed 1 times within 1 cycle(s) then alert
 Ppid                 = if changed 1 times within 1 cycle(s) then alert

-------------------------------------------------------------------------------
monit -v -c /opt/unb/cnf/monit.cnf start checkntpd
monit: Debug: Adding credentials for user 'root'.
monit: Debug: Adding credentials for user 'admin'.
Runtime constants:
 Control file       = /opt/unb/cnf/monit.cnf
 Log file           = /var/log/unb/monit.log
 Pid file           = /var/run/monit.pid
 Debug              = True
 Log                = True
 Use syslog         = False
 Is Daemon          = True
 Use process engine = True
 Poll time          = 120 seconds
 Mail server(s)     = localhost
 Mail from          = (not defined)
 Mail subject       = (not defined)
 Mail message       = (not defined)
 Start monit httpd  = True
 httpd bind address = Any/All
 httpd portnumber   = 2812
 httpd signature    = True
 Use ssl encryption = False
 httpd auth. style  = Basic Authentication

The service list contains the following entries:

Process Name          = bs1
 Pid file             = /var/run/bs1.pid
 Monitoring mode      = active
 Start program        = '/opt/unb/bin/bs.sh 1 restart' timeout 1 cycle(s)
 Stop program         = '/opt/unb/bin/bs.sh 1 stop' timeout 1 cycle(s)
 Pid                  = if changed 1 times within 1 cycle(s) then alert
 Ppid                 = if changed 1 times within 1 cycle(s) then alert

Process Name          = checkntpd
 Pid file             = /var/run/checkntpd.pid
 Monitoring mode      = active
 Start program        = '/opt/unb/bin/checkntpd.sh stop' timeout 1 cycle(s)
 Pid                  = if changed 1 times within 1 cycle(s) then alert
 Ppid                 = if changed 1 times within 1 cycle(s) then alert

-------------------------------------------------------------------------------


On 30/07/07, Martin Pala <address@hidden> wrote:
> please start monit deamon in debug mode (-v option) and send the log output
>
> Thanks,
> Martin
>
> Martin Pala wrote:
> > ... and what about the configuration of services 'bs1' and 'checkntpd'?
> >
> > Some dependency between them? ('depends on ...' statement?)
> >
> > Thanks,
> > Martin
> >
> > Nick Upson wrote:
> >> ok, I think I now have a predictable test case, if I'm correct it
> >> should happen to anyone. Just have a single command line that calls
> >> monit twice in quick succession.
> >>
> >> Mine says
> >>
> >> "monit start bs1; monit start checkntpd"
> >>
> >> when I run it like this I always get 2 copies of bs1 started, if I run
> >> them as seperate command lines or put "sleep 1" in between them, then
> >> it's ok
> >>
> >>
> >> On 30/07/07, Nick Upson <address@hidden> wrote:
> >>> I'll try and do so, the problem is that it doesn't happen every time
> >>> and I haven't found any rules to predict when it will fail.
> >>>
> >>> On 29/07/07, Martin Pala <address@hidden> wrote:
> >>>> Can you please?:
> >>>>
> >>>> - try to run monit in debug mode (monit -v) and send output
> >>>> - send the configuration of the problematic service from monitrc and
> >>>> the start/stop scripts
> >>>>
> >>>> Thanks,
> >>>> Martin
> >>>>
> >>>> On Jul 28, 2007, at 11:21 PM, Nick Upson wrote:
> >>>>
> >>>>> I'm using 4.9
> >>>>>
> >>>>> On 27/07/07, Martin Pala <address@hidden> wrote:
> >>>>>> Yes, there was bug which was fixed in monit 4.9:
> >>>>>>
> >>>>>> --8<--
> >>>>>> * Fix the extra restart action which was called by monit
> >>>>>>   in addition to user requested start action of stopped
> >>>>>>   process. This didn't occured in the case that the 'every'
> >>>>>>   statement was used on the service definition as well. Thanks
> >>>>>>   to Aaron Scamehorn for help.
> >>>>>> --8<--
> >>>>>>
> >>>>>> Which version do you use?
> >>>>>>
> >>>>>> Thanks,
> >>>>>> Martin
> >>>>>>
> >>>>>> Jan-Henrik Haukeland wrote:
> >>>>>>> On 27. jul. 2007, at 16.39, Nick Upson wrote:
> >>>>>>>
> >>>>>>>> could I be seeing a problem with monit starting to monitor bs1
> >>>>>>>> again
> >>>>>>>> (so start 1) AND start bs1 (start 2) because I told it to, or
> >>>>>>>> something like that.
> >>>>>>> I see that there was a bug fix in the change log for 4.9 that may be
> >>>>>>> related. Martin has done most, if not all coding on monit for the
> >>>>>>> latest
> >>>>>>> releases and maybe he knows more. Anyway, make sure you run the
> >>>>>>> latest
> >>>>>>> version of monit, i.e. 4.9 or the CVS version I told you about
> >>>>>>> before.
> >>>>>>> Other than that I'm not sure how to help short of debugging the
> >>>>>>> program
> >>>>>>> on location. Maybe you know someone who can run gdb on monit or
> >>>>>>> trace it?
> >>>>>>>
> >>>>>>>
> >>>>>>> --
> >>>>>>> To unsubscribe:
> >>>>>>> http://lists.nongnu.org/mailman/listinfo/monit-general
> >>>>>>
> >>>>>> --
> >>>>>> To unsubscribe:
> >>>>>> http://lists.nongnu.org/mailman/listinfo/monit-general
> >>>>>>
> >>>>>
> >>>>> --
> >>>>> To unsubscribe:
> >>>>> http://lists.nongnu.org/mailman/listinfo/monit-general
> >>>>
> >>>>
> >>>> --
> >>>> To unsubscribe:
> >>>> http://lists.nongnu.org/mailman/listinfo/monit-general
> >>>>
> >>
> >>
> >> --
> >> To unsubscribe:
> >> http://lists.nongnu.org/mailman/listinfo/monit-general
> >
> >
> > --
> > To unsubscribe:
> > http://lists.nongnu.org/mailman/listinfo/monit-general
>
>
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general
>




reply via email to

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