Methods

Class/Module Index [+]

Quicksearch

Backup::Notifier::Nagios

Attributes

nagios_host[RW]

Host of Nagios server to notify on backup completion.

nagios_port[RW]

Port of Nagios server to notify on backup completion.

service_host[RW]

Host name in Nagios for the backup check.

service_name[RW]

Name of the Nagios service for the backup check.

Public Class Methods

new(model, &block) click to toggle source
# File lib/backup/notifier/nagios.rb, line 22
def initialize(model, &block)
  super
  instance_eval(&block) if block_given?

  @nagios_host  ||= Config.hostname
  @nagios_port  ||= 5667
  @service_name ||= "Backup #{ model.trigger }"
  @service_host ||= Config.hostname
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.