Skip to content

A simple Web based alert monitoring console, mostly for Nosee.

License

Notifications You must be signed in to change notification settings

Xfennec/nosee-console

Repository files navigation

Nosee-console

A simple Web based alert monitoring console, mostly for Nosee.

Warning: Heavy WIP!

What is it?

It's a simple HTTP server collecting Nosee alerts and providing a Web interface. While it was developped with Nosee in mind, it provides a HTTP REST-like interface, so you may interface it with virtually anything else.

It uses a WebSocket to get new alerts and updates in realtime, and plays notification sounds. Nosee-console is well suited for a permanent display.

Nosee-console basic schema

Show me!

Mandatory screenshot (resized). There's two "unsolved" issues, here (orange and red, various severity). You can have details by clicking on an issue.

Nosee-console Web UI screenshot

Web interface on a Raspberry Pi Zero. It's powered by the TV and boots directly to Chromium "kiosk mode":

Nosee-console on a Raspberry Pi Zero

How do you build it?

If you have Go installed:

go get github.com/Xfennec/nosee-console

You will then be able to launch the binary located in you Go "bin" directory. (since Go 1.8, ~/go/bin if you haven't defined any $GOPATH)

The project is still too young to provide binaries. Later. (and go get is so powerful…)

As a reminder, you can use the -u flag to update the project and its dependencies if you don't want to use git for that.

go get -u github.com/Xfennec/nosee-console

How do you use it?

Build it, run it with no CLI option, and point your browser to http://localhost:8080 and that's it. Of course, you must then send your alerts to this running console, see below.

REST-like API

The endpoint is /alerts. A GET will return an JSON-encoded arrays.

A POST will allow you to send a new alert or update a previous alert to switch its type from BAD to GOOD.

Nosee provides a ready to use sample script where you just have to update the console URL. You may use this script as a reference if needed.

This part of the documentation is very sparse, but the API is a Work In Progress.

Misc.

The server now implement persistance, you can restart the server without losing current alerts. See nosee-console-alerts.json and -save-path option, and feel free to delete the file for a fresh start with no alert.

See deploy/ directory for a sample supervisord config file. (will add a systemd unit later)

About

A simple Web based alert monitoring console, mostly for Nosee.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published