check_mq plugin issues

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mdusanapudi
Posts: 35
Joined: Tue Mar 15, 2016 1:31 pm

check_mq plugin issues

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: check_mq plugin issues

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mdusanapudi
Posts: 35
Joined: Tue Mar 15, 2016 1:31 pm

Re: check_mq plugin issues

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: check_mq plugin issues

Post 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?
Former Nagios employee
mdusanapudi
Posts: 35
Joined: Tue Mar 15, 2016 1:31 pm

Re: check_mq plugin issues

Post 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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: check_mq plugin issues

Post by ssax »

Please post the entire output of the cpan install (in code tags) so that we can look through it.

Thank you
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_mq plugin issues

Post 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.
Former Nagios Employee.
me.
Locked