On 03/06/2011 09:55 PM, Matt Graham wrote:
> From: Gerald Brandt <[email protected]>
>> 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.
> 


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
drbd-user mailing list
[email protected]
http://lists.linbit.com/mailman/listinfo/drbd-user

Reply via email to