[Xymon] Master/slave server configuration.

Root, Paul Paul.Root at CenturyLink.com
Fri Jun 1 19:19:07 CEST 2012


This will be your only alert in alerts.cfg on the slave server


HOST=primary  COLOR=red SERVICE=bbd,conn DURATION>2
        SCRIPT /usr/local/scripts/xymSecondaryTakeOver $NG-ONCALL
        MAIL $NG-ADMIN



Take over:

echo "`date  '+%a %D %T'` :: $BBHOSTNAME . $BBSVCNAME" >/var/log/messages
MESSAGE="Xymon: $BBHOSTNAME's $BBSVCNAME service is $BBCOLORLEVEL. Secondary taking over"
export USER=xymon
export HOST=$HOSTNAME
if [ "$RCPT" = "" ]; then
        export RCPT=$1
fi
echo "mailing: $RCPT \"$MESSAGE\"" >> /var/log/messages
echo  $MESSAGE | /bin/mail $RCPT
XETC="/etc/xymon"

cp ${XETC}/alerts.cfg.primary ${XETC}/alerts.cfg

Release:

echo "`date '+%a %D %T'` :: $BBHOSTNAME . $BBSVCNAME" >/var/log/messages
MESSAGE="Xymon: $BBHOSTNAME's $BBSVCNAME service is $BBCOLORLEVEL. Secondary turning down"
export USER=xymon
if [ "$RCPT" = "" ]; then
        export RCPT=$1
fi
echo "mailing: $RCPT \"$MESSAGE\"" >> /var/log/messages
echo $MESSAGE | /bin/mail $RCPT
XETC="/etc/xymon"

cp ${XETC}/alerts.cfg.secondary ${XETC}/alerts.cfg



I guess I should  update that to not use BBHOSTNAME, etc.


Then I have a cron job that copies (rdists) the pertinent files from the primary to the secondary. I also have logic in the scripts that make sure they are only run on the proper system.


Paul Root    - Senior Engineer
Managed Services Systems - CenturyLink


From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Kevin Kelly
Sent: Friday, June 01, 2012 10:27 AM
To: xymon at xymon.com
Subject: [Xymon] Master/slave server configuration.

I am trying to setup a Xymon master/slave configuration.

Is it possible to set them up so that we only get alerts from the master, unless that is down, and then get them from the slave server?
And if so, could you provide a document and an example of the configuration.

Both servers are Xymon 4.3.7, running on RHEL 6.2

Thanks


Kevin

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
_____________________________________________________________________

________________________________
This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20120601/85d84076/attachment.html>


More information about the Xymon mailing list