Skip to main content

Be notified when customers' odoo instances go down

Project description

License: AGPL-3

Dead man’s switch (server)

This module receives status messages by dead_mans_switch_client and notifies you if a client instance didn’t check back in time.

As a side effect, you’ll also get some statistical data from your client instances.

Usage

Install dead_mans_switch_client on a customer instance and configure it as described in that module’s documentation. The clients will register themselves with the server automatically. They will show up with their database uuid, you’ll have to assign a human readable description yourself.

At this point, you can assign a customer to this client instance for reporting purposes, and, more important, add followers to the instance. They will be notified in case the instance doesn’t check back in time. Notification are only turned on for instances in state ‘active’, instances in states ‘new’ or ‘suspended’ will be ignored.

You’ll find the instances’ current state at Reporting/Customer instances.

Try me on Runbot

For further information, please visit:

Security considerations

As the controller receiving status updates is unauthenticated, any internet user can have your server create monitoring instance records. While this is annoying, it’s quite harmless and basically the same as misuse of the fetchmail module.

For a more substantial annoyance, the attacker would have to guess one of your client’s database uuids, so they functionally are your passwords.

To be sure, consider blocking this controller from unknown origins in your SSL proxy. In nginx, it would look like this:

location /dead_mans_switch/alive {
allow   192.168.1.0/24;
# add other client's IPs
deny    all;
}

Known issues / Roadmap

  • matching is done via the database’s uuid, so take care to change this if you clone a database

  • logging some postgres stats and disk usage would be nice too

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback here.

Credits

Contributors

Maintainer

Odoo Community Association

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

To contribute to this module, please visit http://odoo-community.org.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

File details

Details for the file odoo8_addon_dead_mans_switch_server-8.0.1.0.0.99.dev42-py2-none-any.whl.

File metadata

File hashes

Hashes for odoo8_addon_dead_mans_switch_server-8.0.1.0.0.99.dev42-py2-none-any.whl
Algorithm Hash digest
SHA256 2b10a45722866d8819ebc80ee7ab8ca1243d38dcc643a27db4b02b406b8b002d
MD5 94bbb66469232b4a625000d2a495dae1
BLAKE2b-256 d74be4612186304fca16b438538258fed93f1298bf8e06092b9cc01f23ed557b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page