Skip to content

Instantly share code, notes, and snippets.

@justinabrahms
Created October 1, 2012 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinabrahms/10cbfb5d2da38c9afdac to your computer and use it in GitHub Desktop.
Save justinabrahms/10cbfb5d2da38c9afdac to your computer and use it in GitHub Desktop.
foo = gen_service_for_node('celery_processes_running', 'celery-running', 'recipes:sprintly_celeryd', service_name="flaky-service")
nagios_conf "services" do
variables({
:service_hosts => service_hosts,
:services => services,
:mysql_consumers => mysql_consumers,
:cache_consumers => cache_consumers,
:celery_service => foo
})
end
nagios_conf "services" do
variables({
:service_hosts => service_hosts,
:services => services,
:mysql_consumers => mysql_consumers,
:cache_consumers => cache_consumers,
:celery_service => gen_service_for_node('celery_processes_running', 'celery-running', 'recipes:sprintly_celeryd', service_name="flaky-service")
})
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment