<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@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;}
/* 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;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Courier New";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></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 lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New";color:#1F497D">OK, I misunderstood. You should be able to send “data” messages. Same place in
</span><a href="http://xymon.com/xymon/help/manpages/man1/xymon.1.html" target="_blank">http://xymon.com/xymon/help/manpages/man1/xymon.1.html</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:13.5pt;color:black">data HOSTNAME.DATANAME<newline><additional text></span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New";color:#1F497D">The first word is the literal “data” instead of “status”. I’ve used this in unix, but not windows. It should work, though. You may need to enable xymond_filestore on
 the server side (I did). I used this to build a poor-man’s tripwire system, where the clients report file hashes to the server, and the server compares them to a server-side database.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New";color:#1F497D">You would have to use bbwincmd for this, since the temp dir method hardcodes a “status” message.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New";color:#1F497D">g<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New";color:#1F497D"><o:p> </o:p></span></p>
<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""> Neil Simmonds [mailto:Neil.Simmonds@express-gifts.co.uk]
<br>
<b>Sent:</b> Tuesday, January 14, 2014 01:55<br>
<b>To:</b> Ribeiro, Glauber<br>
<b>Subject:</b> RE: [Xymon] MQ monitoring on Windows<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi Glauber,<br>
<br>
You're right if it was an external test as normal, unfortunately I want to send this data as client data that the server will then handle the tests on. Apparently (according to Henrik) if you send MQ data from a Linux client with the command like I had the
 BBWin command (i.e. replacing the colour with the word "client") then Xymon will handle it as if it was normal client data. That means I can then configure the queues I want to monitor on the server and not have to change the script if someone wants a new
 queue monitored.<br>
<br>
It doesn't look like that is going to work on BBWin. I think I'll have to rewrite it to do the checking of queue depth on the client and send the status to Xymon in the way you have described.<br>
<br>
Regards,<br>
Neil.<br>
<br>
> -----Original Message-----<br>
> From: Ribeiro, Glauber [<a href="mailto:glauber.ribeiro@experian.com">mailto:glauber.ribeiro@experian.com</a>]<br>
> Sent: 13 January 2014 20:15<br>
> To: Neil Simmonds<br>
> Cc: <a href="mailto:xymon@xymon.com">xymon@xymon.com</a> <br>
> Subject: RE: [Xymon] MQ monitoring on Windows<br>
> <br>
> OK, here’s what it needs to be:<br>
> <br>
> <br>
> 1) If you put the text file in the tmp directory (which is what I do in Windows with<br>
> BBWin):<br>
> <br>
> <br>
> color timestamp, etc<br>
> Rest of your data<br>
> <br>
> So, the first line has to be the “color” (the word green, red, or yellow), a space, and<br>
> the timestamp, plus optionally some short text you want to display in big font. But<br>
> definitely the color has to be the first word on the first line, or it won’t work. After<br>
> the first line, come whatever detail lines you want to send. The file name must be<br>
> the column name for xymon server, i.e, you name the file “mq” (not mq.txt, just<br>
> mq).<br>
> <br>
> <br>
> 2) In Unix, I use the xymon utility, and I suppose bbwincmd works the same way. In<br>
> that case, the format is documented in<br>
> <a href="http://xymon.com/xymon/help/manpages/man1/xymon.1.html" target="_blank">
http://xymon.com/xymon/help/manpages/man1/xymon.1.html</a> under “XYMON <br>
> MESSAGE SYNTAX”. The message type you want is status.<br>
> <br>
> Assuming your client name is set to client.domain.com, your data must look like<br>
> this:<br>
> <br>
> status client,domain,com.mq green timestamp, etc Rest of the data<br>
> <br>
> <br>
> Notice the hostname has commas instead of dots. Notice the column name after<br>
> the host. Notice that the data MUST start with the word “status”, or it won’t work.<br>
> As you can see in the URL above, there are a few optional things. The Lifetime<br>
> parameter is very useful for tests that run less often than every 5 minutes. If<br>
> lifetime is 40 minutes, the format would be<br>
> <br>
> status+40 ... ... ...<br>
> <br>
> <br>
> I think with this information, you’ll be able to make it work. Good luck, and let us<br>
> know!<br>
> <br>
> Like I said above, with BBWin I always use the method of dropping a text file in the<br>
> tmp directory.<br>
> <br>
> <br>
> glauber<br>
> <br>
> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.0pt">Name & Registered Office: EXPRESS GIFTS LIMITED, 2 GREGORY ST, HYDE, CHESHIRE, ENGLAND, SK14 4TH, Company No. 00718151.</span><o:p></o:p></p>
<div style="border:none;border-bottom:solid windowtext 1.5pt;padding:0in 0in 1.0pt 0in">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.0pt">Express Gifts Limited is authorised and regulated by the Financial Conduct Authority</span><o:p></o:p></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.0pt">NOTE: This email and any information contained within or attached in a separate file is confidential and intended solely for the Individual to whom
 it is addressed. The information or data included is solely for the purpose indicated or previously agreed. Any information or data included with this e-mail remains the property of Findel PLC and the recipient will refrain from utilising the information for
 any purpose other than that indicated and upon request will destroy the information and remove it from their records. Any views or opinions presented are solely those of the author and do not necessarily represent those of Findel PLC. If you are not the intended
 recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. No warranties or assurances are made in relation to the safety and content of this e-mail
 and any attachments. No liability is accepted for any consequences arising from it. Findel Plc reserves the right to monitor all e-mail communications through its internal and external networks. If you have received this email in error please notify our IT
 helpdesk on +44(0) 1254 303030</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.0pt"> </span><o:p></o:p></p>
</div>
</body>
</html>