<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word"><head><META content="text/html; charset=utf-8" http-equiv="Content-Type">

<STYLE><!--         /* Style Definitions */         p.91595065-c0ec-47be-9704-a424ca75d2ac, li.91595065-c0ec-47be-9704-a424ca75d2ac, div.91595065-c0ec-47be-9704-a424ca75d2ac, table.91595065-c0ec-47be-9704-a424ca75d2acTable         {margin:0cm;    margin-bottom:.0001pt;}        div.Section1        {page:Section1;}        --> <!--          #91595065-c0ec-47be-9704-a424ca75d2acexcontact a{color:white;text-decoration:none;}          #91595065-c0ec-47be-9704-a424ca75d2acexcontact a:hover{text-decoration:underline;}          --></STYLE>
<meta content="text/html; charset=utf-8" http-equiv=Content-Type><meta content="Microsoft Word 14 (filtered medium)" name=Generator><style><!--
/* Font Definitions */
@font-face
        {font-family:PMingLiU;
        panose-1:2 2 3 0 0 0 0 0 0 0;}
@font-face
        {font-family:PMingLiU;
        panose-1:2 2 3 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@PMingLiU";
        panose-1:2 2 3 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1149634826;
        mso-list-template-ids:1896933130;}
@list l0:level1
        {mso-level-text:%1;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.5in;}
@list l0:level2
        {mso-level-start-at:2;
        mso-level-text:"%1\.%2";
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        margin-left:.5in;
        text-indent:-.5in;}
@list l0:level3
        {mso-level-start-at:3;
        mso-level-text:"%1\.%2\.%3";
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        margin-left:.5in;
        text-indent:-.5in;}
@list l0:level4
        {mso-level-start-at:4;
        mso-level-text:"%1\.%2\.%3\.%4";
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        margin-left:.5in;
        text-indent:-.5in;}
@list l0:level5
        {mso-level-text:"%1\.%2\.%3\.%4\.%5";
        mso-level-tab-stop:.75in;
        mso-level-number-position:left;
        margin-left:.75in;
        text-indent:-.75in;}
@list l0:level6
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6";
        mso-level-tab-stop:.75in;
        mso-level-number-position:left;
        margin-left:.75in;
        text-indent:-.75in;}
@list l0:level7
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7";
        mso-level-tab-stop:1.0in;
        mso-level-number-position:left;
        margin-left:1.0in;
        text-indent:-1.0in;}
@list l0:level8
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8";
        mso-level-tab-stop:1.0in;
        mso-level-number-position:left;
        margin-left:1.0in;
        text-indent:-1.0in;}
@list l0:level9
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8\.%9";
        mso-level-tab-stop:1.0in;
        mso-level-number-position:left;
        margin-left:1.0in;
        text-indent:-1.0in;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><BODY><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I have a couple of “traditional” active/passive clusters.  For items that need to be present on all nodes, I sue the standard monitoring available with xymon and it’s client.  For things that need to only appear on the active node,  I handle in one of two ways. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Way #1 -  I created striped down Xymon clients which runs with the application within the cluster.  I have HP service Guard clusters, so this is easy to do within their frame work of scripts handling most everything.   I create a new client within the disks which migrate within the cluster, edit the  xymonclient-<O/S>.sh script within this new client directory structure and assign an IP/host in the hosts.cfg which matches the IP which floats within the cluster.  I pull all the CPU, memory, etc. stuff out of the new xymonclient.sh and focus on the disks, procs, ports, etc. which tend to be very application specific.   I let standard Xymon take care of the rest.   <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Way #2 – I setup the IP/Host which matches the floating IP under cluster control and run scripts from the Xymon server pointing at the floating IP.  The scripts report status to the Xymon server using the Name  associated with the floating IP, so to the outside observer it looks like a new server, but its just an application running where it needs to under cluster control.  <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>For check just SMTP the second might be the way to go, as you could just use the standard Xymon SMTP test to see that SMTP is running on the IP which floats.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>            ……Bruce<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>  <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div></div></div> 
<P CLASS="91595065-c0ec-47be-9704-a424ca75d2ac"> </P>
<P CLASS="91595065-c0ec-47be-9704-a424ca75d2ac"><FONT FACE="Arial"><FONT SIZE="2"><FONT COLOR="#999999"><FONT COLOR="#000000"><STRONG>Bruce<FONT COLOR="#808080"><FONT COLOR="#000000"> White</FONT></FONT></STRONG></FONT></FONT></FONT></FONT></P>
<P CLASS="91595065-c0ec-47be-9704-a424ca75d2ac"><FONT FACE="Arial"><FONT SIZE="2"><FONT COLOR="#808080">Senior Enterprise Systems Engineer | Phone: 1-630-671-5169 | Fax: 630-893-1648 | bewhite@fellowes.com | <A HREF="http://www.fellowes.com/">www.fellowes.com</A></FONT></FONT></FONT></P>
<P CLASS="91595065-c0ec-47be-9704-a424ca75d2ac"><FONT FACE="Arial" SIZE="2"></FONT> </P>
<P CLASS="91595065-c0ec-47be-9704-a424ca75d2ac"><IMG ALIGN="baseline" ALT="" BORDER="0" HSPACE="0" SRC="cid:fellbrand1.jpg@bfae461f.de9347eb"> </P>
<P CLASS="91595065-c0ec-47be-9704-a424ca75d2ac"><FONT FACE="Arial" SIZE="2"></FONT> </P>
<P CLASS="91595065-c0ec-47be-9704-a424ca75d2ac"><FONT SIZE="+0"></FONT><STRONG></STRONG><FONT SIZE="+0"></FONT><FONT SIZE="+0"></FONT><FONT SIZE="+0"></FONT><FONT COLOR="#808080" FACE="Arial" SIZE="1">Disclaimer: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Fellowes, Inc.</FONT></P>
<P CLASS="91595065-c0ec-47be-9704-a424ca75d2ac"><FONT FACE="Arial" SIZE="2"></FONT> </P>
<P CLASS="91595065-c0ec-47be-9704-a424ca75d2ac"><FONT FACE="Arial" SIZE="2"><div class=WordSection1><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> xymon-bounces@xymon.com [mailto:xymon-bounces@xymon.com] <b>On Behalf Of </b>Dan Smith<br><b>Sent:</b> Thursday, June 21, 2012 12:17 PM<br><b>To:</b> xymon@xymon.com<br><b>Subject:</b> [Xymon] Monitoring a simple cluster<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Red Hat 5.8 server, 5.5 clients.  Xymon 4.3.7 clients and server. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I am trying to put together a quick cluster monitor using depend and combos, but I think I’m stuck.  Has anyone else done this?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I have two servers: smtp01 and smtp02 that are in an active/passive cluster.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>The smtpd process only runs on the server that is active, but there are other processes that need to be monitored on both hosts (e.g. clurgmgrd).<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I would like to go red and have an alert if one of the required processes goes down on either server, but I only want an alert if the active node of the cluster has a problem with the smtpd process.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>My initial idea was to have procs go red for clurgmgrd and yellow on smtpd, use NOPROPYELLOW, and then use a combo so I could see what host was active…<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>hosts.cfg:<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in;text-indent:-.5in;mso-list:l0 level4 lfo2'><![if !supportLists]><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><span style='mso-list:Ignore'>1.2.3.4<span style='font:7.0pt "Times New Roman"'>   </span></span></span><![endif]><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>smtp01 # NOPROPYELLOW:procs<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in;text-indent:-.5in;mso-list:l0 level4 lfo2'><![if !supportLists]><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><span style='mso-list:Ignore'>1.2.3.5<span style='font:7.0pt "Times New Roman"'>   </span></span></span><![endif]><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>smtp02 # NOPROPYELLOW:procs<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in;text-indent:-.5in;mso-list:l0 level4 lfo2'><![if !supportLists]><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><span style='mso-list:Ignore'>1.2.3.6<span style='font:7.0pt "Times New Roman"'>   </span></span></span><![endif]><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>smtpHA # smtp<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>analysis.cfg:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>HOST=smtp01<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>            PROC   clurgmgrd<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>            PROC   smtpd<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>HOST=smtp02<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>            PROC   clurgmgrd<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>            PROC   smtpd<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>combo.cfg:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>smtpHA.procs = (smtp01.conn && smtp01.procs) || (smtp02.conn && smtp02.procs)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Unfortunately a yellow status is equal to a 1 for the combo, so even if both sides of the cluster were down, the combo would still show as up (green&&yellow is 1&&1).<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Then I thought I could cover the scenario by making a “depends” test, but depends seems to be focused on disabling tests if another status is red…which doesn’t work either since I don’t want the page to go red.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>This isn’t a huge issue because the smtp poll on smtpHA will trigger red if both nodes are down, but it seems like there should be an easy way to do this.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Am I making it more complicated than it needs to be, or am I better writing a custom monitor?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Thanks!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>-dan<o:p></o:p></span></p></div></FONT></P></BODY></HTML>