{"action":"created","issue":{"url":"https://api.github.com/repos/schubergphilis/nagios/issues/411","labels_url":"https://api.github.com/repos/schubergphilis/nagios/issues/411/labels{/name}","comments_url":"https://api.github.com/repos/schubergphilis/nagios/issues/411/comments","events_url":"https://api.github.com/repos/schubergphilis/nagios/issues/411/events","html_url":"https://github.com/schubergphilis/nagios/issues/411","id":101506322,"number":411,"title":"using commas in nagios_service \"check_command\" option breaks stuff unexpectedly","user":{"login":"TheCase","id":924011,"avatar_url":"https://avatars.githubusercontent.com/u/924011?v=3","gravatar_id":"","url":"https://api.github.com/users/TheCase","html_url":"https://github.com/TheCase","followers_url":"https://api.github.com/users/TheCase/followers","following_url":"https://api.github.com/users/TheCase/following{/other_user}","gists_url":"https://api.github.com/users/TheCase/gists{/gist_id}","starred_url":"https://api.github.com/users/TheCase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheCase/subscriptions","organizations_url":"https://api.github.com/users/TheCase/orgs","repos_url":"https://api.github.com/users/TheCase/repos","events_url":"https://api.github.com/users/TheCase/events{/privacy}","received_events_url":"https://api.github.com/users/TheCase/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-17T20:44:28Z","updated_at":"2015-08-17T22:10:08Z","closed_at":null,"body":"example (_check-test.rb):\r\n```\r\nnagios_command 'system-load' do\r\n  options 'command_line'    => '$USER1$/check_load -w $ARG1$ -c $ARG2$'\r\nend\r\n\r\nnagios_service 'system-load' do\r\n  options 'check_command'       => 'system-load!15,10,5!30,25,20',\r\n          'use'                 => 'default-service',\r\n          'hostgroup_name'      => 'linux'\r\nend\r\n```\r\n\r\nresults in this in *services.cfg*: \r\n```\r\ndefine service {\r\n  use                  default-service\r\n  service_description  system-load\r\n  hostgroup_name       linux\r\n  check_command        20\r\n}\r\n```\r\n\r\nAlso, something else funky is happening, as I see this show up in the *commands.cfg* file:\r\n```\r\n# Skipping 10 because command_line is missing.\r\n\r\n# Skipping 20 because command_line is missing.\r\n\r\n# Skipping 25 because command_line is missing.\r\n\r\n# Skipping 5!30 because command_line is missing.\r\n\r\n# Skipping system-load!15 because command_line is missing.\r\n```\r\n\r\nIf I drop the commas from the check_command option, everything works as expected: with the exception that I still see a comment in the commands.cfg file:\r\n```# Skipping system-load!15!30 because command_line is missing.```\r\n\r\nI'm not sure if other characters or symbols might break as well.  I'm still researching, but wanted to report the issue."},"comment":{"url":"https://api.github.com/repos/schubergphilis/nagios/issues/comments/131979212","html_url":"https://github.com/schubergphilis/nagios/issues/411#issuecomment-131979212","issue_url":"https://api.github.com/repos/schubergphilis/nagios/issues/411","id":131979212,"user":{"login":"TheCase","id":924011,"avatar_url":"https://avatars.githubusercontent.com/u/924011?v=3","gravatar_id":"","url":"https://api.github.com/users/TheCase","html_url":"https://github.com/TheCase","followers_url":"https://api.github.com/users/TheCase/followers","following_url":"https://api.github.com/users/TheCase/following{/other_user}","gists_url":"https://api.github.com/users/TheCase/gists{/gist_id}","starred_url":"https://api.github.com/users/TheCase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheCase/subscriptions","organizations_url":"https://api.github.com/users/TheCase/orgs","repos_url":"https://api.github.com/users/TheCase/repos","events_url":"https://api.github.com/users/TheCase/events{/privacy}","received_events_url":"https://api.github.com/users/TheCase/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T22:10:07Z","updated_at":"2015-08-17T22:10:07Z","body":"that is the check_command (with arguments) for that service.  I am not using that as a command name.  I updated my example recipe above in hopes that it will clarify."}}