{"action":"created","issue":{"url":"https://api.github.com/repos/poise/poise-monit/issues/6","labels_url":"https://api.github.com/repos/poise/poise-monit/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/poise/poise-monit/issues/6/comments","events_url":"https://api.github.com/repos/poise/poise-monit/issues/6/events","html_url":"https://github.com/poise/poise-monit/issues/6","id":126694453,"number":6,"title":"works on `ubuntu-12.04`, fails on `14.04`","user":{"login":"gretel","id":80815,"avatar_url":"https://avatars.githubusercontent.com/u/80815?v=3","gravatar_id":"","url":"https://api.github.com/users/gretel","html_url":"https://github.com/gretel","followers_url":"https://api.github.com/users/gretel/followers","following_url":"https://api.github.com/users/gretel/following{/other_user}","gists_url":"https://api.github.com/users/gretel/gists{/gist_id}","starred_url":"https://api.github.com/users/gretel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gretel/subscriptions","organizations_url":"https://api.github.com/users/gretel/orgs","repos_url":"https://api.github.com/users/gretel/repos","events_url":"https://api.github.com/users/gretel/events{/privacy}","received_events_url":"https://api.github.com/users/gretel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":30,"created_at":"2016-01-14T16:42:45Z","updated_at":"2016-01-14T22:51:02Z","closed_at":null,"body":"running `chef-12.06` on `ubuntu-14.04`. happens with and without event queue. besides, it works perfectly fine on `12.04`. testing done using `test-kitchen` of both simultaenously.\r\n\r\n```\r\n           * monit_service[carbon-cache-d] action enable (up to date)\r\n           * monit_service[carbon-cache-d] action start\r\n\r\n       ================================================================================\r\n             Error executing action `start` on resource 'monit_service[carbon-cache-d]'\r\n             ================================================================================\r\n\r\n             Mixlib::ShellOut::ShellCommandFailed\r\n             ------------------------------------\r\n             Expected process to exit with [0], but received '1'\r\n             ---- Begin output of [\"/usr/bin/monit\", \"-c\", \"/etc/monit/monitrc\", \"start\", \"carbon-cache-d\"] ----\r\n\r\n             STDERR: monit: action failed -- Other action already in progress -- please try again later\r\n             ---- End output of [\"/usr/bin/monit\", \"-c\", \"/etc/monit/monitrc\", \"start\", \"carbon-cache-d\"] ----\r\n       Ran [\"/usr/bin/monit\", \"-c\", \"/etc/monit/monitrc\", \"start\", \"carbon-cache-d\"] returned 1\r\n\r\n             Cookbook Trace:\r\n             ---------------\r\n             /tmp/kitchen/cache/cookbooks/poise-monit/files/halite_gem/poise_monit/resources/monit_service.rb:176:in `monit_shell_out!'\r\n             /tmp/kitchen/cache/cookbooks/poise-monit/files/halite_gem/poise_monit/resources/monit_service.rb:135:in `start_service'\r\n             /tmp/kitchen/cache/cookbooks/poise-service/files/halite_gem/poise_service/service_providers/base.rb:74:in `block in action_start'\r\n       /tmp/kitchen/cache/cookbooks/poise-service/files/halite_gem/poise_service/service_providers/base.rb:134:in `call'\r\n             /tmp/kitchen/cache/cookbooks/poise-service/files/halite_gem/poise_service/service_providers/base.rb:134:in `notify_if_service'\r\n       /tmp/kitchen/cache/cookbooks/poise-service/files/halite_gem/poise_service/service_providers/base.rb:73:in `action_start'\r\n       /tmp/kitchen/cache/cookbooks/poise-service/files/halite_gem/poise_service/service_providers/base.rb:61:in `action_enable'\r\n\r\n             Resource Declaration:\r\n             ---------------------\r\n             # In /tmp/kitchen/cache/cookbooks/xpl_graphite_ng/recipes/_carbon.rb\r\n\r\n       135:   poise_service res_name do\r\n       136:     command cmd\r\n       137:     user node['graphite']['carbon']['user']\r\n       138:     directory node['graphite']['base_path']\r\n\r\n             140:     # templates.uniq.each do |t|\r\n       141:     #   subscribes :restart, \"template[#{t}]\", :delayed\r\n             142:     # end\r\n             143:     # carbon daemons do not support signals, so KILL is the only thing we can do\r\n       144:     stop_signal 'KILL'\r\n\r\n             146:     options :monit, checks: \"if failed host localhost port #{tcp_port} then alert\", pid_file: pidfile\r\n             147:     supports :restart => true, :reload => false, :status => true\r\n\r\n             149:     retry_delay 3\r\n       150:   end\r\n             151:   # store hash of services to audit on later\r\n             152:   instances << { 'daemon_name' => daemon_name, 'res_name' => res_name, 'instance' => instance, 'cmd' => cmd, 'config' => config }\r\n             153: end\r\n             154:\r\n\r\n             Compiled Resource:\r\n             ------------------\r\n             # Declared in /tmp/kitchen/cache/cookbooks/xpl_graphite_ng/recipes/_carbon.rb:135:in `block in from_file'\r\n\r\n       monit_service(\"carbon-cache-d\") do\r\n        action [:enable]\r\n        supports {:restart=>nil, :reload=>nil, :status=>nil}\r\n        retries 0\r\n        retry_delay 2\r\n        default_guard_interpreter :default\r\n        service_name \"carbon-cache-d\"\r\n        enabled true\r\n         pattern \"carbon-cache-d\"\r\n        init_command \"/etc/init.d/carbon-cache-d\"\r\n        parent monit[monit]\r\n        monit_config_path \"/etc/monit/conf.d/carbon-cache-d.conf\"\r\n       end\r\n```"},"comment":{"url":"https://api.github.com/repos/poise/poise-monit/issues/comments/171807054","html_url":"https://github.com/poise/poise-monit/issues/6#issuecomment-171807054","issue_url":"https://api.github.com/repos/poise/poise-monit/issues/6","id":171807054,"user":{"login":"gretel","id":80815,"avatar_url":"https://avatars.githubusercontent.com/u/80815?v=3","gravatar_id":"","url":"https://api.github.com/users/gretel","html_url":"https://github.com/gretel","followers_url":"https://api.github.com/users/gretel/followers","following_url":"https://api.github.com/users/gretel/following{/other_user}","gists_url":"https://api.github.com/users/gretel/gists{/gist_id}","starred_url":"https://api.github.com/users/gretel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gretel/subscriptions","organizations_url":"https://api.github.com/users/gretel/orgs","repos_url":"https://api.github.com/users/gretel/repos","events_url":"https://api.github.com/users/gretel/events{/privacy}","received_events_url":"https://api.github.com/users/gretel/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T22:51:02Z","updated_at":"2016-01-14T22:51:02Z","body":"so the `checks` option would also make me have statements like\r\n\r\n```\r\ncheck host wtf with address wtf.foo.local\r\n  if failed ping then alert\r\n  if failed ping6 then alert\r\n  depends on switch\r\n  group kali\r\n```\r\nbut then setting `depends` and `groups` on the `checks` var.. :)"}}