[Xymon] MQ monitoring on Windows
Ribeiro, Glauber
glauber.ribeiro at experian.com
Tue Jan 14 16:43:17 CET 2014
OK, I misunderstood. You should be able to send “data” messages. Same place in http://xymon.com/xymon/help/manpages/man1/xymon.1.html
data HOSTNAME.DATANAME<newline><additional text>
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.
You would have to use bbwincmd for this, since the temp dir method hardcodes a “status” message.
g
From: Neil Simmonds [mailto:Neil.Simmonds at express-gifts.co.uk]
Sent: Tuesday, January 14, 2014 01:55
To: Ribeiro, Glauber
Subject: RE: [Xymon] MQ monitoring on Windows
Hi Glauber,
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.
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.
Regards,
Neil.
> -----Original Message-----
> From: Ribeiro, Glauber [mailto:glauber.ribeiro at experian.com]
> Sent: 13 January 2014 20:15
> To: Neil Simmonds
> Cc: xymon at xymon.com<mailto:xymon at xymon.com>
> Subject: RE: [Xymon] MQ monitoring on Windows
>
> OK, here’s what it needs to be:
>
>
> 1) If you put the text file in the tmp directory (which is what I do in Windows with
> BBWin):
>
>
> color timestamp, etc
> Rest of your data
>
> So, the first line has to be the “color” (the word green, red, or yellow), a space, and
> the timestamp, plus optionally some short text you want to display in big font. But
> definitely the color has to be the first word on the first line, or it won’t work. After
> the first line, come whatever detail lines you want to send. The file name must be
> the column name for xymon server, i.e, you name the file “mq” (not mq.txt, just
> mq).
>
>
> 2) In Unix, I use the xymon utility, and I suppose bbwincmd works the same way. In
> that case, the format is documented in
> http://xymon.com/xymon/help/manpages/man1/xymon.1.html under “XYMON
> MESSAGE SYNTAX”. The message type you want is status.
>
> Assuming your client name is set to client.domain.com, your data must look like
> this:
>
> status client,domain,com.mq green timestamp, etc Rest of the data
>
>
> Notice the hostname has commas instead of dots. Notice the column name after
> the host. Notice that the data MUST start with the word “status”, or it won’t work.
> As you can see in the URL above, there are a few optional things. The Lifetime
> parameter is very useful for tests that run less often than every 5 minutes. If
> lifetime is 40 minutes, the format would be
>
> status+40 ... ... ...
>
>
> I think with this information, you’ll be able to make it work. Good luck, and let us
> know!
>
> Like I said above, with BBWin I always use the method of dropping a text file in the
> tmp directory.
>
>
> glauber
>
>
Name & Registered Office: EXPRESS GIFTS LIMITED, 2 GREGORY ST, HYDE, CHESHIRE, ENGLAND, SK14 4TH, Company No. 00718151.
Express Gifts Limited is authorised and regulated by the Financial Conduct Authority
________________________________
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20140114/14add1ff/attachment.html>
More information about the Xymon
mailing list