Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

provide mechanism to abstract exception handling (collectd) #5

@manos

Description

@manos

A common pattern when writing checks with monitorlib, is to wrap all code in try/except blocks, so you can email (i.e. call collectd.warning()) unexpected tracebacks. Collectd will silently ignore these.

Anyway, it'd be great to simply pass monitorlib a function (your entire check), and have it handle this wrapping/alerting, to reduce code duplication across monitoring scripts. It's also really tricky to do.. if an exception is raised when handling an exception, e.g... so let's do this once, and do it right.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions