monit-general
[Top][All Lists]
Advanced

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

Monitoring status and every x cycles


From: Jeffrey Grace (CITEC)
Subject: Monitoring status and every x cycles
Date: Mon, 16 Jul 2012 19:45:09 +1000

Hi,

I've got several checks defined, critical tests are run every cycle, while most 
checks are run every 5 cycles.

Under monit 5.2.5, if you ran "monit summary" you would see the last status of 
the test in between checks.

Under monit 5.4, you can have one of two statuses depending on the timing of 
when you run "monit summary".
If you run the summary on the same cycle as when the tests have run, you see 
"Running/Accessible/etc", if you run the summary on a cycle in between checks 
you see "Waiting".  

Eg:
I have two files included from /etc/monit.d/

Rsyslog.conf:
-------------
check process rsyslog with pidfile /var/run/syslogd.pid
        start program  "/etc/init.d/rsyslog start"
        stop program  "/etc/init.d/rsyslog stop"
        if 5 restarts within 5 cycles then timeout
--------

Snmpd.conf:
-----------
check process snmpd with pidfile /var/run/snmpd.pid
  start program  "/etc/init.d/snmpd start"
  stop program  "/etc/init.d/snmpd stop"
  if 3 restarts within 5 cycles then timeout
  every 5 cycles
------

If I run monit summary on a cycle that happens to be a 5th cycle, monit summary 
would show:
--------------
# monit summary
The Monit daemon 5.4 uptime: 23m 

Process 'snmpd'                     Running
Process 'rsyslog'                   Running
--------------

If I run monit summary on any other cycle, it will show:
-------------
# monit summary
The Monit daemon 5.4 uptime: 24m 

Process 'snmpd'                     Waiting
Process 'rsyslog'                   Running
-------------

Monit 5.2.5 will always show the 1st example, even between checks.

Is this intended behaviour, or a bug in 5.4?

Jeffrey


***************************** Disclaimer *****************************

The contents of this electronic message and any attachments are intended only 
for the addressee and may contain privileged or confidential information. They 
may only be used for the purposes for which they were supplied. If you are not 
the addressee, you are notified that any transmission, distribution, 
downloading, printing or photocopying of the contents of this message or 
attachments is strictly prohibited. The privilege of confidentiality attached 
to this message and attachments is not waived, lost or destroyed by reason of 
mistaken delivery to you. If you receive this message in error please notify 
the sender by return e-mail or telephone.

Please note: the Department of Science, Information Technology, Innovation and 
the Arts carries out automatic software scanning, filtering and blocking of 
E-mails and attachments (including emails of a personal nature) for detection 
of viruses, malicious code, SPAM, executable programs or content it deems 
unacceptable. All reasonable precautions will be taken to respect the privacy 
of individuals in accordance with the Information Privacy Act 2009 (Qld). 
Personal information will only be used for official purposes, e.g. monitoring 
Departmental Personnel's compliance with Departmental Policies. Personal 
information will not be divulged or disclosed to others, unless authorised or 
required by Departmental Policy and/or law.





reply via email to

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