Resource Type: nagios_command
NOTE: This page was generated from the Puppet source code on 2018-06-20 11:51:22 -0700
nagios_command
Description
The Nagios type command. This resource type is autogenerated using the model developed in Naginator, and all of the Nagios types are generated using the same code and the same library.
This type generates Nagios configuration statements in Nagios-parseable configuration
files. By default, the statements will be added to /etc/nagios/nagios_command.cfg
, but
you can send them to a different file by setting their target
attribute.
You can purge Nagios resources using the resources
type, but only
in the default file locations. This is an architectural limitation.
Attributes
nagios_command { 'resource title':
command_name => # (namevar) The name of this nagios_command...
ensure => # The basic property that the resource should be...
command_line => # Nagios configuration file...
group => # The desired group of the config file for this...
mode => # The desired mode of the config file for this...
owner => # The desired owner of the config file for this...
poller_tag => # Nagios configuration file...
provider => # The specific backend to use for this...
target => # The...
use => # Nagios configuration file...
# ...plus any applicable metaparameters.
}
command_name
(Namevar: If omitted, this attribute’s value defaults to the resource’s title.)
The name of this nagios_command resource.
(↑ Back to nagios_command attributes)
ensure
(Property: This attribute represents concrete state on the target system.)
The basic property that the resource should be in.
Valid values are present
, absent
.
(↑ Back to nagios_command attributes)
command_line
(Property: This attribute represents concrete state on the target system.)
Nagios configuration file parameter.
(↑ Back to nagios_command attributes)
group
The desired group of the config file for this nagios_command resource.
NOTE: If the target file is explicitly managed by a file resource in your manifest, this parameter has no effect. If a parent directory of the target is managed by a recursive file resource, this limitation does not apply (i.e., this parameter takes precedence, and if purge is used, the target file is exempt).
(↑ Back to nagios_command attributes)
mode
The desired mode of the config file for this nagios_command resource.
NOTE: If the target file is explicitly managed by a file resource in your manifest, this parameter has no effect. If a parent directory of the target is managed by a recursive file resource, this limitation does not apply (i.e., this parameter takes precedence, and if purge is used, the target file is exempt).
(↑ Back to nagios_command attributes)
owner
The desired owner of the config file for this nagios_command resource.
NOTE: If the target file is explicitly managed by a file resource in your manifest, this parameter has no effect. If a parent directory of the target is managed by a recursive file resource, this limitation does not apply (i.e., this parameter takes precedence, and if purge is used, the target file is exempt).
(↑ Back to nagios_command attributes)
poller_tag
(Property: This attribute represents concrete state on the target system.)
Nagios configuration file parameter.
(↑ Back to nagios_command attributes)
provider
The specific backend to use for this nagios_command
resource. You will seldom need to specify this — Puppet will usually
discover the appropriate provider for your platform.
Available providers are:
(↑ Back to nagios_command attributes)
target
(Property: This attribute represents concrete state on the target system.)
The target.
(↑ Back to nagios_command attributes)
use
(Property: This attribute represents concrete state on the target system.)
Nagios configuration file parameter.
(↑ Back to nagios_command attributes)
Providers
naginator
NOTE: This page was generated from the Puppet source code on 2018-06-20 11:51:22 -0700