[Xymon] MQ monitoring on Windows
Neil Simmonds
Neil.Simmonds at express-gifts.co.uk
Fri Jan 10 16:27:00 CET 2014
After much trial and error, I’ve got a powershell script that successfully sends the data even including newlines so that the format is correct, however it’s still not being seen correctly by Xymon.
When I look at client data from a linux server it looks like this,
[collector:]
client ukclapimprb01.mqcollect mqcollect
5724-H72 (C) Copyright IBM Corp. 1994, 2009. ALL RIGHTS RESERVED.
Starting MQSC for queue manager PBKR01.
1 : display qlocal(*) curdepth
AMQ8409: Display Queue details.
When I look at the client data from the Windows server it looks like this,
[collector:mqcollect]
status ukclaocs006523.mqcollect client
5724-H72 (C) Copyright IBM Corp. 1994, 2009. ALL RIGHTS RESERVED.
Starting MQSC for queue manager PMTX01.
1 : display qlocal(*) curdepth
AMQ8409: Display Queue details.
However when I run the command the powershell console clearly shows that it is sending the correct command,
Sending to ukclamon02 :
status ukclaocs006523.mqcollect client
5724-H72 (C) Copyright IBM Corp. 1994, 2009. ALL RIGHTS RESERVED.
Starting MQSC for queue manager PMTX01.
1 : display qlocal(*) curdepth
AMQ8409: Display Queue details.
I’m not sure if this is because Xymon is not correctly interpreting the data or because BBWin is not correctly sending the data and I’m sure the problem is something to do with the difference between
client ukclapimprb01.mqcollect mqcollect
and
status ukclaocs006523.mqcollect client
Unfortunately, I’ve now run out of ideas for getting this working so if anyone has any it would be appreciated.
Regards,
Neil.
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Neil Simmonds
Sent: 10 January 2014 09:14
To: henrik at hswn.dk; xymon at xymon.com
Subject: Re: [Xymon] MQ monitoring on Windows
I’ve tried the “drop a text file in tmp directory” with no success so I’m currently trying the send a status message option but I can’t find a way to pass the results of the runmqsc command to the bbwincmd.
I’ve tried redirecting from a file and I’ve also tried to get the contents into a variable but that doesn’t seem possible in DOS.
Next attempt is going to be a mix of powershell and DOS.
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of henrik at hswn.dk<mailto:henrik at hswn.dk>
Sent: 10 January 2014 08:11
To: xymon at xymon.com<mailto:xymon at xymon.com>
Subject: Re: [Xymon] MQ monitoring on Windows
Den 10.01.2014 08:38, Neil Simmonds skrev:
Could you tell me which version of Xymon the ability to send a status with “client” instead of colour was introduced?
Essentially, was it after 4.3.4?
It's been there since (before) 4.3.0.
I don't know if the "drop a text file in the tmp directory" way of sending such a status works with BBWin, I have only used it with a commandline utility so sending the data was done as on a Unix box.
For it to work, your data must mimic that which is generated by the "client/mq.sh" script on Unix. And in order to get "mqcollect" as the collector ID, the test name that you use in the status message must be "mqcollect".
So a status message with
status myhost.mqcollect client
... output from the runmqsc commands ...
should work. If you want to try the "drop file in tmp directory", then the file must be called "mqcollect" and have "client" as the first word on line 1.
Regards,
Henrik
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
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
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 Services 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/20140110/915d3d01/attachment.html>
More information about the Xymon
mailing list