Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unhandled exceptions in checks.d initialization kill the agent #427

Closed
clutchski opened this issue Mar 27, 2013 · 0 comments
Closed

unhandled exceptions in checks.d initialization kill the agent #427

clutchski opened this issue Mar 27, 2013 · 0 comments
Assignees

Comments

@clutchski
Copy link
Contributor

They should just log an exception, note the error for the info command and continue without that check. A silly example from our sobotka queue check:

    sys.exit(main())
  File "/usr/bin/dd-agent", line 227, in main
    agent.run(config=agentConfig)
  File "/usr/bin/dd-agent", line 100, in run
    checksd = load_check_directory(agentConfig)
  File "/usr/share/datadog/agent/config.py", line 669, in load_check_directory
    agentConfig=agentConfig)
  File "/usr/share/datadog/agent/checks.d/dd.py", line 10, in __init__
    port=int(init_config['redis_port']),
ValueError: invalid literal for int() with base 10: '6380asdf'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants