```ruby
template "/etc/monit.d/elasticsearch-monit.conf" do
  source "elasticsearch.monitrc.conf.erb"
  mode 0440
  owner "root"
  group "root"
end```

Use the updated monit conf directory
user
```ruby
template "/etc/monit/monitrc.d/elasticsearch-monit.conf" do
  source "elasticsearch.monitrc.conf.erb"
  mode 0440
  owner "root"
  group "root"
end
```
assistant