Notifier::Nagios

notify_by Nagios do |nagios|
  nagios.on_success = true
  nagios.on_warning = true
  nagios.on_failure = true

  nagios.nagios_host  = 'nagioshost'
  nagios.nagios_port  = 5667
  nagios.service_name = 'My Backup'
  nagios.service_host = 'backuphost'
end

The Nagios Notifier allows you to send notifications to a central monitoring server running Nagios. It uses the NSCA (Nagios Service Check Acceptor) addon, available from the Nagios SourceForge project page. The Notifier sends service_host, service_name, the model’s exit status code and a message to the nagios_host.

Model exit status codes are: