Hi Martin, Thank you for answering my question.
On Wed, Jun 18, 2014 at 2:47 PM, Martin Pala <[email protected]> wrote: > Hello, > > no, Monit never reloads itself automatically ... according to the log > snip, it received the SIGHUP signal (which causes Monit to reload the > configuration). I saw the SIGHUP to, but I can asure you that nobody has reloaded the process manually. > This can be because the system administrator trigger reload via "monit > reload" or the HTTP GUI or he sent the SIGHUP directly (using "kill" > command for example). I'm the sysadmin of this server and nobody but myself has logged in into the server in a week. > It is also possible that you have Monit's log integrated in logrotate or > something this and it's set to reload Monit when the log is rotated. > You're right about this, I don't even think about the log rotation, I feel silly. /etc/logrotate.d/monit /var/log/monit.log { rotate 4 weekly minsize 1M missingok create 640 root adm notifempty compress delaycompress postrotate invoke-rc.d monit reload > /dev/null endscript } And also, ls -lh /var/log/monit* -rw-r----- 1 root adm 40K Jun 18 12:05 monit.log -rw-r----- 1 root adm 1.0M Jun 18 06:46 monit.log.1 Thank you again. Guido.- > Regards, > Martin > > > On 18 Jun 2014, at 14:39, Guido Accardo <[email protected]> wrote: > > > Hi everyone, > > > > I have a question regarding what I presume is a weird behavior or a > least unexpected. > > > > This morning I've received an alert about monit changed it pid. First > I've checked that all monitored processes were alive and they were, but in > /var/log/monit.log.1 I see: > > > > [UTC Jun 18 06:46:08] info : Awakened by the SIGHUP signal > > [UTC Jun 18 06:46:08] info : Reinitializing monit - Control file > '/etc/monit/monitrc' > > [UTC Jun 18 06:46:08] info : Shutting down monit HTTP server > > [UTC Jun 18 06:46:08] info : monit HTTP server stopped > > > > So, this confirms that monit has been reloaded but I can't see why. I've > taken a look into bash_history of all users just in case one of them has > restarted it intentionally, but nothing appeared. > > > > Is there an expected situation in what monit could reinitialize itself? > I've been using monit for more than 1 year in this server and this is the > first time that something like this occurs. Also, cpu use, memory use, load > and disk space are fine. > > > > Some more information: > > > > * This is Monit version 5.3.2 > > * Ubuntu 12.04.4 64bits (AMI running in amazon EC2) > > > > Thank you. > > > > Best, Guido.- > > > > -- > > --- > > Guido Accardo > > -- > > To unsubscribe: > > https://lists.nongnu.org/mailman/listinfo/monit-general > > > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general > -- --- Guido Accardo
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
