Home Directory Plugins Cloud Monitoring AzureStack Alerts

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Monitoring AzureStack Alerts

Rating
0 votes
Favoured:
0
Current Version
1.0.1
Last Release Date
2017-03-06
Compatible With
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
License
MIT
Hits
8356
Files:
FileDescription
azurestack_plugin.pyAzureStack plugin file
azurestack_handler.shAzureStack handler file
azurestack_commands.cfgSample Nagios config file for commands
azurestack_contacts.cfgSample Nagios config file for contacts
azurestack_hosts.cfgSample Nagios config file for hosts
azurestack_services.cfgSample Nagios config file for services
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Third party plugin written in python used to monitor AzureStack alerts.
* Installation and Configuration

The plugin can be used with either the Nagios enterprise edition or the free edition. Below are the steps to install and configure it:

- Copy the plugin file to the plugins directory and make sure you set it as executable:

sudo cp azurestack_plugin.py PLUGINS_DIR
sudo chmod +x PLUGINS_DIR/azurestack_plugin.py

NOTE: For Nagios enterprise PLUGINS_DIR location is /usr/local/nagios/libexec and for the free edition, the location is /usr/lib/nagios/plugins.

- Install the msrestazure python dependency:

sudo pip install msrestazure

- Copy the sample configuration files to the Nagios configuration directory. On Nagios enterprise, the configuration directory location is /usr/local/nagios/etc/static, while on the free edition it is /etc/nagios3/conf.d.

NOTE: Make sure you edit the files and add the parameters specific to your AzureStack environment.

- Reload the Nagios service:

sudo nagios reload

* Manually close an active AzureStack alert

Active AzureStack alerts can be manually closed using Nagios custom notification functionality. The azurestack_handler.sh (configured in the sample configuration files) processes all the custom notifications. If the notification comment has the form /close-alert , the handler will close an AzureStack alert with the uuid , otherwise it falls back to the normal behavior and it sends an e-mail notification.

The azurestack_handler.sh must be copied to PLUGINS_DIR (specified above) similar how azurestack_plugin.py was copied.