monit-general
[Top][All Lists]
Advanced

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

Re: hearbeat


From: Jan-Henrik Haukeland
Subject: Re: hearbeat
Date: Tue, 8 Nov 2005 00:58:00 +0100

This hack should do what you want. The idea is to use a test that always will fail and only run this test every hour. Ugly, but should work.

set daemon 60
 ...
check file monit.pid path /var/run/monit.pid
       alert address@hidden with mail-format {see manual}
       if timestamp != 1 second then alert
       every 59 cycles



On 7. nov. 2005, at 17.50, Sorin S. wrote:

Hi Martin,
I wanted a heartbeat message to be sure the monit is
up and running as I can't open the firewalls to access
the monit console. The clients are particularly uneasy
to open firewalls externally for monitoring purposes.
But email is security friendly enough and can be
routed with ease.

The message can contain any text with some useful info
(for example:
<server_name>,`date`,`uptime`, etc
and the subject can be the actual FQDN of the box.

I can then parse the mbox for the heartbeat messages
and alert if I haven't got one from monit in a certain
time.
This is particularly usefull is one has hundreds of
machines to look after.
It might be strange, but in my experiece it is
usefull.
Let me know what you think about it...
Thanks,
Sorin




--- Martin Pala <address@hidden> wrote:

Hi,

can you explain the idea little bit more? (how it is
expected to work -
e.g. what should the mail contain, etc.)

Thanks,
Martin


Sorin S. wrote:
Hi,
Would be possible to have monit sending a
"heartbeat"
email (or something else) on a configurable
interval?
That would make it easy to monitor lots of
machines
without the need to open a port...
Thanks
Sorin


--
To unsubscribe:

http://lists.nongnu.org/mailman/listinfo/monit-general




--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general

--
Jan-Henrik Haukeland
Mobil +47 97141255





reply via email to

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