monit-general
[Top][All Lists]
Advanced

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

[monit] A couple of general questions after setting up monit, daemon, bi


From: Jake Conk
Subject: [monit] A couple of general questions after setting up monit, daemon, binary checksum, restarting services
Date: Tue, 11 Dec 2007 02:43:06 -0800

Hello,

So just a few questions after configuring and fiddling around with
some of monit's features.

I have configured in my `/etc/monitrc` for monit to run as daemon mode
"set daemon 120" which I would believe is equivelant to passing "-d
120" on the command line when starting up. So then I wanted to reload
my monit configuration after editing but when I tried doing that monit
complained about not finding a process.


# sudo monit reload
Reinitializing monit daemon
monit: No daemon process found


I don't know why this is if I can load the monit server page and
according to "/etc/init.d/monit status" its running. Just for kicks
`ps aux` also shows monit running so I don't know why monit can't find
it's daemon process running and reload its config?

My next question is regarding checking the checksum files of binary
files. Looking at the examples what's the point of checking if the
checksum of lets say httpd binary is still the same and if not then
unmonitor it? Here is an example that I'm talking about:


check file httpd with path /usr/local/apache/bin/httpd
   if failed checksum then unmonitor


Lastly, I tried restarting all services with "sudo monit restart all"
and all I currently have configured is apache2 and a check system.
When I invoked the command it stopped apache and brought it back up
but it added " -D NOSSL" which it never does when I start it up
manually or with chkconfig when the server starts. Here is the output:


# sudo monit restart all
'incommming.myserv.net' trying to restart
'httpd2-prefork' trying to restart
'apache' stop: /etc/init.d/apache2
Shutting down httpd2 (waiting for all children to terminate) ..done
'apache' start: /etc/init.d/apache2
'apache' failed to start
Sendmail error: 571 Remote sending only allowed with authentication!
Starting httpd2 (prefork) [Tue Dec 11 02:29:21 2007] [warn] module
deflate_module is already loaded, skipping
[Tue Dec 11 02:29:21 2007] [warn] module headers_module is already
loaded, skipping
address@hidden:/srv/www/htdocs>

An SSL passphrase has not been entered within 2 seconds.
To increase this timeout, adjust APACHE_START_TIMEOUT in
/etc/sysconfig/apache2 .
Trying to start the server without SSL (-D NOSSL).
Starting httpd2 (prefork) [Tue Dec 11 02:29:24 2007] [warn] module
deflate_module is already loaded, skipping
[Tue Dec 11 02:29:24 2007] [warn] module headers_module is already
loaded, skipping
..done


Here is the output I get from apache when I start it up myself
manually and when I check it with "ps aux" it doesn't have " -D NOSSL"
appended to the end of it.


# sudo /etc/init.d/apache2 start
Starting httpd2 (prefork) [Tue Dec 11 02:34:05 2007] [warn] module
deflate_module is already loaded, skipping
[Tue Dec 11 02:34:05 2007] [warn] module headers_module is already
loaded, skipping
                                                                      done


Any insight on any of my questions would be appreciated :) Sorry I'm a
noob still and maybe the answers aren't very clear as they probably
are to some of you elites.

Thanks,
- Jake




reply via email to

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