Send events from your Nagios-monitored infrastructure to StackState for richer alerting and to help correlate Nagios events with metrics from your StackState-monitored infrastructure.
This check watches your Nagios server’s logs and sends events to your StckState event stream: track service flaps, host state changes, passive service checks, host and service downtimes, and more. The check can also send Nagios Perfdata as metrics to StackState.
The check emits events for service flaps, host state changes, passive service checks, host and service downtimes, and more. It can also send Nagios Perfdata to StackState as metrics.
This check is packaged with the Agent, so simply install the agent.
The Nagios integration requires the StackState Agent.
Find the Nagios configuration file on your server (usually /etc/nagios3/nagios.cfg)
sudo find /etc -type f -name nagios.cfg
Configure the StackState Agent to access Nagios, edit
init_config: instances: - nagios_conf: /etc/nagios3/nagios.cfg collect_events: True
Restart the Agent
Note:To integrate with the Icinga fork of Nagios, you should be able to use the Nagios integration to pull in Icinga events. Just link to the Icinga configuration instead of the Nagios one.
With a default configuration, the Nagios check doesn’t collect any metrics. But if you set
True, the check watches for perfdata and sumbits it as gauge metrics to StackState.
The check watches the Nagios events log for log lines containing these string, emitting an event for each such line: