A
A
Anton Medvedev2011-04-14 10:57:23
linux
Anton Medvedev, 2011-04-14 10:57:23

Monitoring with monit

Hello!
Help me understand why monit doesn't want to raise my daemon?
Created a file: /etc/monit/conf.d/deamon.monitrc However monit doesn't want to bring the daemon up when I stop it. Where is the mistake? Thanks in advance!

set daemon 10
check process php5 with pidfile "/var/run/elf-deamon.pid"
start program = "/etc/init.d/elf-deamon start"
stop program = "/etc/init.d/elf-deamon stop"

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
link0ln, 2011-04-14
@link0ln

Perhaps he checks from his rights.
But the right to execute
start program = "/etc/init.d/elf-deamon start"
stop program = "/etc/init.d/elf-deamon stop"
is enough for him??

V
Vladislav, 2011-04-14
@click0

Try to get started:
monit validate

N
nightfly, 2011-04-16
@nightfly

Sneaky monit loves the presence of stepping in start-stops and a+x rights :)
Check with your eyes using the echo "start/stop" >> /var/log/monit_debug.log method in the relevant sections of your init scripts and also check whether the pid is adequate to go to warran .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question