I'm trying to mask monit instance restarts (because you restart it every Chef run) but this doesn't work:
monit_check 'localhost' do
check_type 'system'
alert '[email protected]'
but_not_on true
alert_events ['instance']
end
================================================================================
Error executing action `create` on resource 'monit_check[localhost]'
================================================================================
Chef::Exceptions::ValidationFailed
----------------------------------
Required argument check_id is missing!
check_id is only used by the template when id_type is set... which isn't true in this situation. From your own resource:
def check_pairs
{
'process' => %w( pidfile matching ), 'procmatch' => %w( matching ),
'file' => %w( path ), 'fifo' => %w( path ),
'filesystem' => %w( path ), 'directory' => %w( path ),
'host' => %w( address ), 'system' => %w(),
'program' => %w( path )
}
end