Monitoring ActiveMQ using NCPA
-
meganwilliford
- Posts: 101
- Joined: Tue Aug 06, 2019 7:49 am
Monitoring ActiveMQ using NCPA
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
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:
Put the plugin in:
Then:
Make sure you make the modifications listed in the guide:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Then call it:
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
Code: Select all
/usr/local/ncpa/pluginsCode: Select all
chown nagios.nagios /usr/local/ncpa/plugins/activemq_watch
chmod +x /usr/local/ncpa/plugins/activemq_watchhttps://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
Perfect! Thank you so much. I'll follow up once we've tested it.
Re: Monitoring ActiveMQ using NCPA
No problem! Sounds good, we'll keep an eye out for your updates.