Monitoring ActiveMQ using NCPA

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
meganwilliford
Posts: 101
Joined: Tue Aug 06, 2019 7:49 am

Monitoring ActiveMQ using NCPA

Post by meganwilliford »

I came across this document to be able to monitor ActiveMQ: https://assets.nagios.com/downloads/nag ... ios-XI.pdf. It requires downloading the plugin from the Nagios XI script repository: https://assets.nagios.com/downloads/nag ... vemq_watch. However, the instructions are specific to using NRPE. Is this script also compatible with NCPA? If so I'm guessing the location of the script would have to be placed in the /usr/local/ncpa/plugin folder on the remote server, change permissions to nagios, and the check command would be something more like: -t '<token>' -P 5693 -M 'plugins/check_activemq.sh'?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Monitoring ActiveMQ using NCPA

Post by ssax »

The plugin is not a .sh script, it is a perl file, so if you want to add the extension on it, change it to .pl.

Yes, the script should work with NCPA. Make sure to install the dependencies though on the remote NCPA host:

Code: Select all

yum install -y perl-Switch perl-XML-Simple
Put the plugin in:

Code: Select all

/usr/local/ncpa/plugins
Then:

Code: Select all

chown nagios.nagios /usr/local/ncpa/plugins/activemq_watch
chmod +x /usr/local/ncpa/plugins/activemq_watch
Make sure you make the modifications listed in the guide:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Then call it:

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H X.X.X.X -t 'yourtoken' -P 5693 -M 'plugins/activemq_watch' -a -w 10 -c 20
meganwilliford
Posts: 101
Joined: Tue Aug 06, 2019 7:49 am

Re: Monitoring ActiveMQ using NCPA

Post by meganwilliford »

Perfect! Thank you so much. I'll follow up once we've tested it.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Monitoring ActiveMQ using NCPA

Post by ssax »

No problem! Sounds good, we'll keep an eye out for your updates.
Locked