Skip to content

Latest commit

 

History

History
99 lines (70 loc) · 2.74 KB

TODO.md

File metadata and controls

99 lines (70 loc) · 2.74 KB

TODO LIST


Packaging

  • make deb packaging

Development

  • make tests case

  • make a choise to manage pyusb/blink1 source code. Use git module ?

  • migrate to https://github.com/todbot/blink1-python code Refactoring ===========

  • bin/pyap is a quick and dirty code for tests. The code must be refactored.

  • have a thread to manage led states doing on/off

  • Use msgQ or something else to send new states to led state manager

  • Security alert manager and alert functions must be extrated from main code.

Notifiers

Blink1Notifier

Actually, I haven't tried to manage more than one Blink(1) device. So all Notifiers use the same device. It's possible to choose a different led by notifier. So more than 2 Blink1Notifier as no sens. The Notifier must change to allow more than one device.

Security

  • run pyap has an unprivileged user when serving status pages
  • Add ssl support for served pages

Features

  • add syslog info for daemon mode

  • add other notification types

  • incoming pollers for various sources

    • alerts with different levels: nagios, shinken ...
    • incomming mail: thunderbid, mutt, fetchmail, ...


                               (client1) (clientx)
                                   |        |
                                   |        |
                                   |        |
                                   V        V
 <----- (poller 1) ----------->  +-----------+ --------> notif type 1 <
 <-----     .                    |           |                .
 <-----     .              --->  |    pyap   | ---->          .
 <-----     .                    |           |                .
 <----- (poller x) ----------->  +-----------+ --------> notif type n <


DONE

  • add conf file using json to set notifiers and urls.

  • add better logging.

  • add daemon mode

  • add init/systemd service for rpm system.

  • associate a notifier to an url.

  • Serve web status page

    If you only use 1 Led, the led color indicates the more critical status from all the systems checked so you don't know which one is critical or not. To have more details, pyap should serve a web page showing status for each system checked.

    It could be usefull to associate an alias to display for eah system checked and,

    Icescreams dispenser :  (ok:  12)  (warn: 1)  (Unknown: 0) (crit: 0)
    Subnet X             :  (ok: 254)  (warn: 2)  (Unknown: 0) (crit: 0)
    IDS Alertes          :  (ok: 123)  (warn: 0)  (Unknown: 0) (crit: 1)

  • implement blink and alert API. /!\ - security access to web access.
  • in python >= 2.7.5, the default ssl context used by urllib2.urlopen does not accept ausigned certs. => since v0.4.6, ssl_allow_unverified cna be set in conf file.