Page 1 of 1

check_mq plugin issues

Posted: Wed Mar 30, 2016 5:40 pm
by mdusanapudi
Hi
I am trying to make check_mq work and spent lot of time in troubleshooting but no luck.
MQSeries perl module installation not working inspite of installing all the pre requistites(MQClient[*]MQRuntime,MQ SDK)
Has anybody did it before and able to make it work?Any help is appreciated ..thanks.

Re: check_mq plugin issues

Posted: Wed Mar 30, 2016 7:16 pm
by Box293
What is the specific download URL of the plugin?

What guides have you already tried?

What is the command that you are executing and the output produced?

Re: check_mq plugin issues

Posted: Thu Mar 31, 2016 6:13 am
by mdusanapudi
Thanks for the response.
below is the URL of the plugin I am using
https://exchange.nagios.org/directory/P ... mq/details

I installed mqclient on the nagios server and trying to install MQSeries perl module using cpan.
constants.o: In function `MQ_CERT_STR':
/opt/mqm/inc/cmqstrc.h:7354: multiple definition of `MQ_CERT_STR'
MQSeries.o:/opt/mqm/inc/cmqstrc.h:7354: first defined here
constants.o: In function `MQ_MQTT_STR':
/opt/mqm/inc/cmqstrc.h:7366: multiple definition of `MQ_MQTT_STR'
MQSeries.o:/opt/mqm/inc/cmqstrc.h:7366: first defined here
constants.o: In function `MQ_SUITE_STR':
/opt/mqm/inc/cmqstrc.h:7377: multiple definition of `MQ_SUITE_STR'
MQSeries.o:/opt/mqm/inc/cmqstrc.h:7377: first defined here
constants.o:(.data.rel.ro.local+0x0): multiple definition of `MQI_BY_VALUE_STR'
MQSeries.o:(.data.rel.ro.local+0x0): first defined here
constants.o:(.data.rel.ro.local+0x13700): multiple definition of `MQI_BY_NAME_STR'
MQSeries.o:(.data.rel.ro.local+0x13700): first defined here
collect2: ld returned 1 exit status
make[1]: *** [../blib/arch/auto/MQClient/MQSeries/MQSeries.so] Error 1
make[1]: Leaving directory `/root/.cpan/build/MQSeries-1.34-hAYtLk/MQClient'
make: *** [subdirs] Error 2

this is the error I am getting when try to make the perl module.

Thanks.

Re: check_mq plugin issues

Posted: Thu Mar 31, 2016 12:23 pm
by tmcdonald
Box293 wrote:What guides have you already tried?
Was there a specific guide you followed for installing the perm modules, or did you do this by hand? If there was a guide, can you please post the URL here? If you ran it by hand, can you please post the full steps you took to install it?

Also, what XI version are you installing this on?

Re: check_mq plugin issues

Posted: Thu Mar 31, 2016 2:41 pm
by mdusanapudi
First I tried installing MQSeries.pm using cpan
install MQSeries
I was not able to do a successful install because this was searching for mqclient installation on /opt/mqm/
hence I downloaded MQClient and its pre requisites from IBM portal and installed the Client
[root@nagiosxi tmp]# rpm -ivh MQSeriesRuntime-8.0.0-4.x86_64.rpm
Preparing... ########################################### [100%]
1:MQSeriesRuntime ########################################### [100%]
[root@nagiosxi tmp]# rpm -ivh MQSeriesSDK-8.0.0-4.x86_64.rpm
Preparing... ########################################### [100%]
1:MQSeriesSDK ########################################### [100%]
[root@nagiosxi tmp]# rpm -ivh MQSeriesClient-8.0.0-4.x86_64.rpm
Preparing... ########################################### [100%]
1:MQSeriesClient ########################################### [100%]

After that I tried to run the install of perl module using cpan and got the below error

MQSeries.o:/opt/mqm/inc/cmqstrc.h:7377: first defined here
constants.o:(.data.rel.ro.local+0x0): multiple definition of `MQI_BY_VALUE_STR'
MQSeries.o:(.data.rel.ro.local+0x0): first defined here
constants.o:(.data.rel.ro.local+0x13700): multiple definition of `MQI_BY_NAME_STR'
MQSeries.o:(.data.rel.ro.local+0x13700): first defined here
collect2: ld returned 1 exit status
make[1]: *** [../blib/arch/auto/MQClient/MQSeries/MQSeries.so] Error 1
make[1]: Leaving directory `/root/.cpan/build/MQSeries-1.34-7NTYKe/MQClient'
make: *** [subdirs] Error 2
MQSERIES/MQSeries-1.34.tar.gz
/usr/bin/make -- NOT OK


nagios version I am using is XI 2014R2.7



Thanks.

Re: check_mq plugin issues

Posted: Thu Mar 31, 2016 5:11 pm
by ssax
Please post the entire output of the cpan install (in code tags) so that we can look through it.

Thank you

Re: check_mq plugin issues

Posted: Thu Mar 31, 2016 5:13 pm
by hsmith
Also, can you link to the page with the prereqs, download, etc? This is what I found, but I don't know how relevant it is. http://www-01.ibm.com/support/docview.w ... wg24037500
Installation Instructions

To install a Unix Client:
1. Logon as root, create an empty directory (with sufficient space to receive the download file) and make it current.
2. Download mqc8_platform to this directory. (Where 'platform' is replaced with a specific platform name e.g. AIX, Linux-x86)
3. Uncompress mqc8_platform.
4. Execute tar -xvf mqc8_platform.
5. Execute rm mqc8_platform.
6. Follow the instructions provided in the WebSphere MQ v8 Information Center to complete the installation of the client.