# Handy wsrep\_notify\_cmd email script

**URL:** <https://forums.percona.com/t/handy-wsrep-notify-cmd-email-script/2840>\
**Category:** Percona XtraDB Cluster 5.x\
**Created:** [July 25, 2013, 12:56pm UTC](https://forums.percona.com/t/handy-wsrep-notify-cmd-email-script/2840 "2013-07-25T12:56:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabeguillen](https://avatars.discourse-cdn.com/v4/letter/g/d07c76/32.png) [@gabeguillen](https://forums.percona.com/u/gabeguillen)\
**Post date:** [July 25, 2013, 12:56pm UTC](https://forums.percona.com/t/handy-wsrep-notify-cmd-email-script/2840/1 "2013-07-25T12:56:24Z")

</div>

I wrote a python script to notify me via e-mail whenever something noteworthy is happening in the cluster. You can set up it up on as many of your cluster nodes as you like (with the minimum, of course, being 1), but be aware that it can get a bit chatty when something happens. I also threw in an selinux rule (which only works if your mail server uses port 25) just for kicks.

I’m not recommending that this be your primary means of cluster health information, but I have found it quite useful for when I am performing maintenance and also serves as a secondary emergency notification system.

Feel free to use or modify it in any form.

EDIT: Added to GitHub: [url][https://github.com/gguillen/galeranotify[/url]](https://github.com/gguillen/galeranotify%5B/url%5D)

Gabe

---

<div class="post-metadata">

**Author:** ![gabeguillen](https://avatars.discourse-cdn.com/v4/letter/g/d07c76/32.png) [@gabeguillen](https://forums.percona.com/u/gabeguillen)\
**Post date:** [July 25, 2013, 4:21pm UTC](https://forums.percona.com/t/handy-wsrep-notify-cmd-email-script/2840/2 "2013-07-25T16:21:02Z")

</div>

Edit: Original script was posted here. Please visit the GitHub in the original post to get the latest version.

---

<div class="post-metadata">

**Author:** ![gabeguillen](https://avatars.discourse-cdn.com/v4/letter/g/d07c76/32.png) [@gabeguillen](https://forums.percona.com/u/gabeguillen)\
**Post date:** [July 25, 2013, 4:28pm UTC](https://forums.percona.com/t/handy-wsrep-notify-cmd-email-script/2840/3 "2013-07-25T16:28:06Z")

</div>

OK, file attachment and formatted script file posting failed. If you want me to send you the zip, send me an email: [gguillen&#64;gesa.com](mailto:gguillen&#64;gesa.com)

---

<div class="post-metadata">

**Author:** ![gabeguillen](https://avatars.discourse-cdn.com/v4/letter/g/d07c76/32.png) [@gabeguillen](https://forums.percona.com/u/gabeguillen)\
**Post date:** [September 26, 2013, 1:04pm UTC](https://forums.percona.com/t/handy-wsrep-notify-cmd-email-script/2840/4 "2013-09-26T13:04:39Z")

</div>

Added to GitHub: [url][https://github.com/gguillen/galeranotify[/url]](https://github.com/gguillen/galeranotify%5B/url%5D)

Will edit original post to reflect this.
