Send events from your Nagios-monitored infrastructure to Datadog for richer alerting and to help correlate Nagios events with metrics from your Datadog-monitored infrastructure.
This check watches your Nagios server’s logs and sends events to your Datadog event stream: track service flaps, host state changes, passive service checks, host and service downtimes, and more. This check can also send Nagios performance data as metrics to Datadog.
The Nagios check is included in the Datadog Agent package, so you don’t need to install anything else on your Nagios servers.
init_config: check_freq: 15 # default is 15 instances: - nagios_conf: /etc/nagios3/nagios.cfg # or wherever your main nagios conf is collect_events: True # default is True passive_checks_events: True # default is False collect_host_performance_data: True # default is False collect_service_performance_data: True # default is False
The Agent reads the main Nagios configuration file to get the locations of the Nagios log files it should watch.
This check also works with Icinga, a popular fork of Nagios. If you use Icinga, just set
nagios_conf to the location of your Icinga configuration file.
Restart the Agent to start sending Nagios events and (optionally) performance data metrics to Datadog.
Run the Agent’s
status subcommand and look for
nagios under the Checks section.
With the default configuration, the Nagios check doesn’t collect any metrics. But if you set
True, the check watches for Nagios performance data and submits it as gauge metrics to Datadog.
The check watches the Nagios events log for log lines containing these strings, emitting an event for each line:
The Nagios check does not include any service checks at this time.
Need help? Contact Datadog Support.
Mistake in the docs? Feel free to contribute!