monit-general
[Top][All Lists]
Advanced

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

monit won't seem to start the processes


From: Christopher Biltoft
Subject: monit won't seem to start the processes
Date: Sun, 01 Jul 2012 13:58:35 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1

Hi

I'm new to monit and having some issues getting started.

Running version 5.4 (64 bit) Debian from a user.

monit -V produces:
Runtime constants:
 Control file       = /home/qltop/.monitrc
 Log file           = /home/qltop/.monit.log
 Pid file           = /home/qltop/.monit.pid
 Id file            = /home/qltop/.monit.id
 Debug              = True
 Log                = True
 Use syslog         = False
 Is Daemon          = True
 Use process engine = True
 Poll time          = 120 seconds with start delay 0 seconds
 Expect buffer      = 256 bytes
 Mail from          = (not defined)
 Mail subject       = (not defined)
 Mail message       = (not defined)
 Start monit httpd  = False

The service list contains the following entries:

Process Name          = h1title
 Pid file             = /home/qltop/.pids/h1title.pid
 Monitoring mode      = active
 Start program        = '/home/qltop/bin/h1title.sh start' timeout 30 second(s)
 Stop program         = '/home/qltop/bin/h1title.sh stop' timeout 30 second(s)
 Existence            = if does not exist 1 times within 1 cycle(s) then restart else if succeeded 1 times within 1 cycle(s) then alert
 Pid                  = if changed 1 times within 1 cycle(s) then alert
 Ppid                 = if changed 1 times within 1 cycle(s) then alert

System Name           = xxxxxxxxxxxxxx.com

but will not run the script giving this log:

cat .monit.log
[PDT Jun 30 18:56:30] info     : monit daemon at 3236 awakened
[PDT Jun 30 18:56:58] error    : monit: error connecting to the monit daemon
[PDT Jun 30 19:01:42] info     : Starting monit daemon
[PDT Jun 30 19:01:42] info     : 'xxxxxxxxxxxxxxxxx' Monit started
[PDT Jun 30 19:01:42] error    : 'h1title' process is not running
[PDT Jun 30 19:01:42] info     : 'h1title' trying to restart
[PDT Jun 30 19:01:42] info     : 'h1title' start: /home/qltop/bin/h1title.sh
[PDT Jun 30 19:02:12] error    : 'h1title' failed to start

If I run /home/qltop/bin/h1title.sh start from the terminal window - no worries, it's all good. Similarly I can stop it as well.

monit status produces
monit: error connecting to the monit daemon
My .monitrc file is:
$cat .monitrc

set daemon 120
set logfile /home/qltop/.monit.log

check process h1title with pidfile /home/qltop/.pids/h1title.pid
        start program = "/home/qltop/bin/h1title.sh start"
        stop program = "/home/qltop/bin/h1title.sh stop"

Would appreciate some direction in solving this.

Thanks Ross

reply via email to

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