MQ monitoring on Windows
list Neil Simmonds
I've got a number of MQ monitors currently running on Aix and Linux but I now have a requirement to add one on a Windows client.
My script for Linux looks something like this,
TMPFILE="$XYMONTMP/mq-$MACHINE.$$"
touch $TMPFILE
echo "client $MACHINE.mqcollect mqcollect" >$TMPFILE
#
while [ $# != 0 ]
do
QMGR=$1; shift
sudo -u mqm mqsc $QMGR 'display qlocal(*) curdepth' >> $TMPFILE
done
#
$XYMON $XYMSRV "@" < $TMPFILE
I'm pretty sure I can do the necessary to get the MQ data out into a temporary file, however I've only ever sent data to the server as external tests (by creating a file in the tmp directory) before whereas this seems to send it as Client data.
Has anyone done anything with sending data from BBWin as client data rather than as an external test.
Regards,
Neil Simmonds
Senior Operations Analyst (Operations Support Group)
Express Gifts Limited
Express House
Clayton Business Park
Accrington
Lancashire
BB5 5JY
T: 01254 303092 | E: user-8188d25e65e4@xymon.invalid<mailto:user-8188d25e65e4@xymon.invalid>
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
list Henrik Størner
▸
Den 07.01.2014 12:42, Neil Simmonds skrev:
I'm pretty sure I can do the necessary to get the MQ data out into a temporary file, however
I've only ever sent data to the server as external tests (by creating a file in the tmp directory) before whereas this seems to send it as Client data.
Has anyone done anything with sending data from BBWin as client data rather than as an external test.
I think the BBwin client includes a commandline utility like the "xymon" tool in the Unix version. You can use this like the Unix tool to send a message to the Xymon server. Unfortunately, it won't let you send "client" messages. But you can send a status with "client" as the colorname (instead of 'green' or 'red'), and the Xymon server will then handle it as if it were a "client" data message. This was in fact done for exactly the purpose you describe - getting MQ client data from a Windows box. Regards, Henrik
list Neil Simmonds
Thanks Henrik. That’s even easier than I thought. I’ve had issues before trying to use the command line to send data so I usually just build the file with the colour as the first word and drop it in tmp. I’m so glad I can do the same with this.
▸
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of user-ce4a2c883f75@xymon.invalid
Sent: 07 January 2014 13:00
To: xymon at xymon.com
Subject: Re: [Xymon] MQ monitoring on Windows
Den 07.01.2014 12:42, Neil Simmonds skrev:
I’m pretty sure I can do the necessary to get the MQ data out into a temporary file, however I’ve only ever sent data to the server as external tests (by creating a file in the tmp directory) before whereas this seems to send it as Client data.
Has anyone done anything with sending data from BBWin as client data rather than as an external test.
I think the BBwin client includes a commandline utility like the "xymon" tool in the Unix version. You can use this like the Unix tool to send a message to the Xymon server.
Unfortunately, it won't let you send "client" messages. But you can send a status with "client" as the colorname (instead of 'green' or 'red'), and the Xymon server will then handle it as if it were a "client" data message.
This was in fact done for exactly the purpose you describe - getting MQ client data from a Windows box.
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 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
list Neil Simmonds
I've been working on getting MQ monitoring on Windows working. I've got a bat file that is running and creating a file for the MQ Queue data however I'm not seeing the data in Xymon. I have got a MQ column on the server in question but all it shows is the word "data". I'm pretty sure this is something to do with the data format but I can't see what. If I look at the file on a Linux box before it is sent to Xymon it looks like this, client ukclapimprb01.mqcollect mqcollect 5724-H72 (C) Copyright IBM Corp. 1994, 2009. ALL RIGHTS RESERVED. Starting MQSC for queue manager PBKR01. My file on the Windows box before it is dropped into the tmp directory looks like this, client ukaccmtx001.mqcollect mqcollect 5724-H72 (C) Copyright IBM Corp. 1994, 2009. ALL RIGHTS RESERVED. Starting MQSC for queue manager PMTX01. However, when I display client data from the two servers on Xymon the Linux one 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. While the Windows one looks like this, [collector:mq] status UKACCMTX001.mq client ukaccmtx001.mqcollect mqcollect 5724-H72 (C) Copyright IBM Corp. 1994, 2009. ALL RIGHTS RESERVED. Starting MQSC for queue manager PMTX01. Has anyone any idea where I'm going wrong?
▸
Regards,
Neil Simmonds
Senior Operations Analyst (Operations Support Group)
Express Gifts Limited
Express House
Clayton Business Park
Accrington
Lancashire
BB5 5JY
T: 01254 303092 | E: user-8188d25e65e4@xymon.invalid<mailto:user-8188d25e65e4@xymon.invalid>
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
list Henrik Størner
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
list Neil Simmonds
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 user-ce4a2c883f75@xymon.invalid
Sent: 10 January 2014 08:11
To: 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 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
list Neil Simmonds
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: user-ce4a2c883f75@xymon.invalid; 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 user-ce4a2c883f75@xymon.invalid<mailto:user-ce4a2c883f75@xymon.invalid>
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
list Glauber Ribeiro
This it BBWin, right? (which version?) Can you put an example of the file you’re dropping in the tmp directory? (Make a copy of the actual file before it gets deleted. Mask information if there is anything sensitive.) With Powershell, I found out the hard way that in some cases if you don’t use out-string when capturing output of a command, it doesn’t do what you expect, and the behavior is different when running a script versus the powershell command line. g
▸
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Neil Simmonds
Sent: Friday, January 10, 2014 09:27
To: xymon at xymon.com
Subject: Re: [Xymon] MQ monitoring on Windows
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: user-ce4a2c883f75@xymon.invalid<mailto:user-ce4a2c883f75@xymon.invalid>; xymon at xymon.com<mailto: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 user-ce4a2c883f75@xymon.invalid<mailto:user-ce4a2c883f75@xymon.invalid>
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 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
list Glauber Ribeiro
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
list Glauber Ribeiro
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:user-8188d25e65e4@xymon.invalid] 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:user-59d088777028@xymon.invalid] 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