Nagios object resources render object definitions through the shared Nagios model.
nagios_commandnagios_contactnagios_contactgroupnagios_hostnagios_hostdependencynagios_hostescalationnagios_hostgroupnagios_resourcenagios_servicenagios_servicedependencynagios_serviceescalationnagios_servicegroupnagios_timeperiod
:create:delete
options: hash orChef::DataBagItemcontaining Nagios object options.
nagios_command 'check_http' do
options(
'command_line' => '$USER1$/check_http -H $HOSTADDRESS$'
)
end
nagios_host 'web01' do
options(
'address' => '192.0.2.10',
'use' => 'server'
)
end
nagios_service 'http-web01' do
options(
'host_name' => 'web01',
'service_description' => 'HTTP',
'check_command' => 'check_http'
)
end