All Projects → alerta → Nagios Alerta

alerta / Nagios Alerta

Licence: mit
Forward nagios alerts to the alerta monitoring system

Programming Languages

c
50402 projects - #5 most used programming language

Labels

Projects that are alternatives of or similar to Nagios Alerta

nagiosplugin
A Python class library which helps with writing Nagios (Icinga) compatible plugins.
Stars: ✭ 19 (+35.71%)
Mutual labels:  nagios
lmd
Livestatus Multitool Daemon - Create livestatus federation from multiple sources
Stars: ✭ 38 (+171.43%)
Mutual labels:  nagios
Thruk
Thruk is a multibackend monitoring webinterface for Naemon, Nagios, Icinga and Shinken using the Livestatus API.
Stars: ✭ 357 (+2450%)
Mutual labels:  nagios
statusengine
New PHP based MySQL Backend for Naemon and Nagios 4 + responsive web frontend
Stars: ✭ 16 (+14.29%)
Mutual labels:  nagios
nagios-plugins-openshift
Nagios/Icinga 2 Plugins for monitoring OpenShift clusters
Stars: ✭ 24 (+71.43%)
Mutual labels:  nagios
Nagstamon
Nagios status monitor for your desktop.
Stars: ✭ 270 (+1828.57%)
Mutual labels:  nagios
Monitoring-Livestatus
Livestatus Perl API to access runtime data from Nagios, Naemon, Icinga and Shinken.
Stars: ✭ 26 (+85.71%)
Mutual labels:  nagios
Goss
Quick and Easy server testing/validation
Stars: ✭ 4,550 (+32400%)
Mutual labels:  nagios
weixin-alert
企业微信告警发送
Stars: ✭ 51 (+264.29%)
Mutual labels:  nagios
Awesome Monitoring
INFRASTRUCTURE、OPERATION SYSTEM and APPLICATION monitoring tools for Operations.
Stars: ✭ 356 (+2442.86%)
Mutual labels:  nagios
docker-nagios
Docker image for Nagios Core in Alpine Linux with basic plugins, available for x86, x64 , ARM v6, ARM v7 and ARM64.
Stars: ✭ 33 (+135.71%)
Mutual labels:  nagios
nagrestconf
Nagios REST Interface
Stars: ✭ 12 (-14.29%)
Mutual labels:  nagios
Searchlight
🔦 Alerts for Kubernetes
Stars: ✭ 273 (+1850%)
Mutual labels:  nagios
grafana-pnp-datasource
PNP4Nagios/RRD Datasource for Grafana
Stars: ✭ 27 (+92.86%)
Mutual labels:  nagios
Shell
Infrastructure Management Shell - Linux
Stars: ✭ 381 (+2621.43%)
Mutual labels:  nagios
check nextcloud
Nagios/Centreon plugin for nextcloud serverinfo API (https://github.com/nextcloud/serverinfo)
Stars: ✭ 22 (+57.14%)
Mutual labels:  nagios
checkmk-telegram-notify
Get alerted by Check_MK via Telegram bash script
Stars: ✭ 28 (+100%)
Mutual labels:  nagios
Sendsmsviasmppapi
Python code to send SMS via SMPP API for Nagios monitored servers
Stars: ✭ 11 (-21.43%)
Mutual labels:  nagios
Check postgres
Nagios check_postgres plugin for checking status of PostgreSQL databases
Stars: ✭ 438 (+3028.57%)
Mutual labels:  nagios
Adagios
Adagios - Web Based Nagios Configuration
Stars: ✭ 317 (+2164.29%)
Mutual labels:  nagios

Nagios-to-Alerta Gateway

Build Status

Consolidate Nagios alerts from across multiple sites into a single "at-a-glance" console. Nagios 3 and Nagios 4 are now supported.

Transform this ...

nagios

Into this ...

alerta

System Requirements

You'll need the following system packages to Install nagios-alerta:

In RedHat/CentOS/Fedora:

yum install -y git curl gcc make libcurl-devel jansson-devel

In Debian/Ubuntu:

apt-get install -y git curl gcc make libcurl-dev libjansson-dev

Installation (Nagios 3)

$ git clone https://github.com/alerta/nagios-alerta.git
$ cd nagios-alerta
$ make
$ sudo make install
$ sudo service nagios restart

Installation (Nagios 4)

$ git clone https://github.com/alerta/nagios-alerta.git
$ cd nagios-alerta
$ make nagios4
$ sudo make install
$ sudo service nagios restart

Alerts

To forward host and service check results to Alerta, modify /etc/nagios/nagios.cfg as follows:

broker_module=/usr/lib/nagios/alerta-neb.o http://localhost:8080

To specify the environment name:

broker_module=/usr/lib/nagios/alerta-neb.o http://localhost:8080 env=ENV_NAME_HERE

To specify the customer name:

broker_module=/usr/lib/nagios/alerta-neb.o http://localhost:8080 customer=CUSTOMER_NAME_HERE

To provide the API key if authentication is enabled on the alerta server:

broker_module=/usr/lib/nagios/alerta-neb.o http://localhost:8080 key=INSERT_API_KEY_HERE

To forward check results in Hard state only:

broker_module=/usr/lib/nagios/alerta-neb.o http://localhost:8080 hard_only=1

And to enable debug mode:

broker_module=/usr/lib/nagios/alerta-neb.o http://localhost:8080 debug=1

Note: The default environment is Production and the default service is Platform.

Setting Environment & Service Per-Check

Use custom object variables _Environment and _Service to set environment and service on a per-check basis:

define host{
        use                     generic-host            ; Name of host template to use
        host_name               localhost
        alias                   localhost
        address                 127.0.0.1
        _Environment            Development
        _Service                Network
        }
define service{
        use                             generic-service         ; Name of service template to use
        host_name                       localhost
        service_description             Total Processes
        _Environment                    Production
        _Service                        Web
        check_command                   check_procs!250!400
        }

Setting Customer Per-Check

Use custom object variables to set customer_views

define host{
        use                     generic-host            ; Name of host template to use
        host_name               localhost
        alias                   localhost
        address                 127.0.0.1
        _Customer               Customer1
        }
define service{
        use                             generic-service         ; Name of service template to use
        host_name                       localhost
        service_description             Total Processes
        _Customer                       Customer1
        check_command                   check_procs!250!400
        }

Heartbeats

To configure the Nagios server to send regular heartbeats to Alerta to ensure that Nagios and the event broker are still forwarding alerts configure a dummy service check as follows:

  1. Define a heartbeat command and add it to /etc/nagios/commands.cfg:
define command{
        command_name    check_heartbeat
        command_line    /usr/lib/nagios/plugins/check_dummy 0
}
  1. Define a hostgroup for the Nagios servers that have the Alerta event broker installed and add it to /etc/nagios3/conf.d/hostgroups_nagios2.cfg:
define hostgroup {
        hostgroup_name  nagios-servers
        alias           Nagios servers
        members         localhost
}
  1. Define a Heartbeat service check to execute every minute and add it to /etc/nagios/conf.d/services_nagios2.cfg:
define service {
        hostgroup_name                  nagios-servers
        service_description             Heartbeat
        check_command                   check_heartbeat
        use                             generic-service
        notification_interval           0 ; set > 0 if you want to be renotified
        normal_check_interval           1
}

License

Copyright (c) 2013-2019 Nick Satterly. Available under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].