Class: Ansible::Ruby::Modules::Nagios

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/monitoring/nagios.rb

Instance Method Summary collapse

Methods inherited from Base

#to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#action:downtime, ...

Returns Action to take.,servicegroup options were added in 2.0.

Returns:

  • (:downtime, :enable_alerts, :disable_alerts, :silence, :unsilence, :silence_nagios, :unsilence_nagios, :command, :servicegroup_service_downtime, :servicegroup_host_downtime)

    Action to take.,servicegroup options were added in 2.0.



10
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/nagios.rb', line 10

attribute :action

#authorString?

Returns Author to leave downtime comments as. Only usable with the C(downtime) action.

Returns:

  • (String, nil)

    Author to leave downtime comments as. Only usable with the C(downtime) action.



22
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/nagios.rb', line 22

attribute :author

#cmdfileString?

Returns Path to the nagios I(command file) (FIFO pipe). Only required if auto-detection fails.

Returns:

  • (String, nil)

    Path to the nagios I(command file) (FIFO pipe). Only required if auto-detection fails.



18
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/nagios.rb', line 18

attribute :cmdfile

#commandString

Returns The raw command to send to nagios, which should not include the submitted time header or the line-feed B(Required) option when using the C(command) action.

Returns:

  • (String)

    The raw command to send to nagios, which should not include the submitted time header or the line-feed B(Required) option when using the C(command) action.



42
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/nagios.rb', line 42

attribute :command

#commentString?

Returns Comment for C(downtime) action.

Returns:

  • (String, nil)

    Comment for C(downtime) action.



26
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/nagios.rb', line 26

attribute :comment

#hostString?

Returns Host to operate on in Nagios.

Returns:

  • (String, nil)

    Host to operate on in Nagios.



14
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/nagios.rb', line 14

attribute :host

#minutesInteger?

Returns Minutes to schedule downtime for.,Only usable with the C(downtime) action.

Returns:

  • (Integer, nil)

    Minutes to schedule downtime for.,Only usable with the C(downtime) action.



30
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/nagios.rb', line 30

attribute :minutes

#servicegroupString?

Returns The Servicegroup we want to set downtimes/alerts for. B(Required) option when using the C(servicegroup_service_downtime) amd C(servicegroup_host_downtime).

Returns:

  • (String, nil)

    The Servicegroup we want to set downtimes/alerts for. B(Required) option when using the C(servicegroup_service_downtime) amd C(servicegroup_host_downtime).



38
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/nagios.rb', line 38

attribute :servicegroup

#servicesArray<String>, String

Returns What to manage downtime/alerts for. Separate multiple services with commas. C(service) is an alias for C(services). B(Required) option when using the C(downtime), C(enable_alerts), and C(disable_alerts) actions.

Returns:

  • (Array<String>, String)

    What to manage downtime/alerts for. Separate multiple services with commas. C(service) is an alias for C(services). B(Required) option when using the C(downtime), C(enable_alerts), and C(disable_alerts) actions.



34
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/nagios.rb', line 34

attribute :services