nagios_command

July 28, 2026 ยท View on GitHub

Declares a Nagios command object.

Actions

ActionDescription
:createAdds or updates the command (default).
:deleteRemoves the command.

Properties

PropertyTypeDefaultDescription
optionsHash, Chef::DataBagItem{}Nagios command directives.

Examples

nagios_command 'check_http' do
  options 'command_line' => '$USER1$/check_http -H $HOSTADDRESS$'
end