Installing nagios plugin

Hi

I am trying to install this plugin in checkMk

https://exchange.nagios.org/directory/Plugins/Cloud/Monitoring-AzureStack-Alerts/details

I have copies this in the following directory of a slave : ~/local/lib/nagios/plugins

Hi @nvnbs

OK, great. Now you need to setup a rule which uses the plugin. Go to “Setup” → “Rule search” and search
for “classic”. There you can create a corresponding rule.

HTH,
Thomas

1 Like

Hi,
you should read these articles in the manual:
https://docs.checkmk.com/latest/en/active_checks.html#mrpe
https://docs.checkmk.com/latest/en/agent_windows.html#_executing_plug_ins_via_mrpe
https://docs.checkmk.com/latest/en/agent_linux.html#_executing_plug_ins_over_mrpe

Karl

I am getting this error when i tried executing the script directly on the master

./azurestack_plugin.py
Traceback (most recent call last):
File “./azurestack_plugin.py”, line 33, in
import adal
ImportError: No module named adal

Hi @nvnbs

From the README.md inside of the tarball of the check you want to use, and I quote:

“Install the required python dependencies:
sudo pip install adal pyyaml six
…”

HTH,
Thomas

1 Like

The only modification you need to do is, remove the sudo from the command and it must be executed as site user. If you use CMK 2 then you need to use pip3. And you have to control that the right python interpreter is called from the script :slight_smile:

2 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.