# # Config file for resource.d/msg # # Where the message is sent to DEST="philip@awale.qc.ca" # DEST="$DEST 8195708305@txt.bell.ca" # The following variables define what is sent by this module # The variables have the following format # __ # is one of # WALL - Message sent via wall. If it is missing, MSG is used # SUBJ - Subject of the e-mail. # MSG - Text of the e-mail . # is either 'start' or 'stop' # is what you specified in haresources or drbd.cfg # It could be pretty much anything. Any char that # can't be used as a bash var name is converted to _. # # So msg::some-thing::longer (in haresources) would use # the following variables : # $WALL_start_some_thing_longer # $SUBJ_start_some_thing_longer # $MSG_start_some_thing_longer # # In drbd.conf # incon-degr-cmd "/etc/ha.d/resource.d/msg '!DRBD! pri on incon-degr'" # would use the following variables # $WALL_DRBD_pri_on_incon_degr. # $SUBJ_DRBD_pri_on_incon_degr. # $MSG_DRBD_pri_on_incon_degr. # # If you do not define a variable, the text will be sent as-is. # WALL_start_first="Switching to this node" SUBJ_start_first="Starting switch" MSG_start_first="Starting to switch to this node." WALL_start_last="Switched to this node" SUBJ_start_last="Completed switch" MSG_start_last="Completed switching to this node." WALL_stop_last="Switching to the other node" SUBJ_stop_last="Starting switch away" MSG_stop_last="Starting to switch away from this node." WALL_stop_first="Switched to other node" SUBJ_stop_first="Completed switch away" MSG_stop_first="Completed switching away from this node." # incon-degr-cmd in drbd.cfg would use this: MSG_start_incon_degr="DRBD Degraded startup. Inconsistant data. FAIL!" # Status messages MSG_running="msg is running" MSG_stopped="msg is stopped"