Page 1 of 1
Monitoring ActiveMQ using NCPA
Posted: Wed Dec 09, 2020 3:46 pm
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'?
Re: Monitoring ActiveMQ using NCPA
Posted: Thu Dec 10, 2020 1:42 pm
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:
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
Re: Monitoring ActiveMQ using NCPA
Posted: Thu Dec 10, 2020 4:43 pm
by meganwilliford
Perfect! Thank you so much. I'll follow up once we've tested it.
Re: Monitoring ActiveMQ using NCPA
Posted: Fri Dec 11, 2020 4:11 pm
by ssax
No problem! Sounds good, we'll keep an eye out for your updates.