[DRBD-user] Email Notfications
Andreas Kurz
andreas.kurz at linbit.com
Sun Mar 6 22:59:06 CET 2011
On 03/06/2011 09:55 PM, Matt Graham wrote:
> From: Gerald Brandt <gbr at majentis.com>
>> Is there a way to get email notifications when the servers are
>> syncing, similar to the way mdadm does?
you can use the before-resync-target, after-resync-target handlers to
send a notification on start/end of a sync
Regards,
Andreas
>
> Within DRBD? No. That's not DRBD's job. That job is best handled by
> something like Nagios. Nagios is a bit heavyweight for *just* monitoring
> DRBD, but if you have ~70 machines all running various services, Nagios can
> make your life a hell of a lot easier. If you just want to monitor DRBD sync
> status, put together a shell or Perl script that runs on both nodes every 10
> min via cron and mails a list of people when /proc/drbd matches
> /SyncSource|SyncTarget/ . You can search for "check-drbd" to find a Nagios
> plugin that does that; modify it for your needs.
>
>> On a side note, I'd also like email notification when HA switches
>> servers.
>
> Which HA system are you talking about? Pacemaker, Corosync, heartbeat? The
> answer to this will almost certainly be found in the Fine Manual for the HA
> system you're using.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 286 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20110306/b3295f28/attachment.pgp>
More information about the drbd-user
mailing list