/Ubic-Watchdog-Notice

Notice service for ubic

Primary LanguagePerlOtherNOASSERTION

Ubic::Watchdog::Notice

Ubic::Watchdog::Notice - Notice service for ubic. Currently module can notice by email and to HIPCHAT or SLACK service.

Installation

cpan -i Ubic::Watchdog::Notice

Put this code in file /etc/ubic/service/ubic/notice:

use Ubic::Service::SimpleDaemon;

Ubic::Service::SimpleDaemon->new(
    bin => ['ubic-notice'],
);

Put this configuration in file /etc/ubic/notice.cfg:

{
    From => 'likhatskiy@gmail.com',
    To   => 'name@mail.com',
};

Start it:

$ ubic start ubic.notice

Options

  • From

    Sets the email address to send from.

  • To

    Sets the addresses in MIME::Lite style to send to.

  • log

    Path to ubic-watchdog file for scan. Default is /var/log/ubic/watchdog.log.

  • hipchat

    Notice to HIPCHAT service.

    hipchat => { token => 'YOUR_TOKEN', room => 'ROOM_NAME' },

  • slack

    Notice to SLACK service.

    slack => { token => 'YOUR_TOKEN', channel => '#CHANNEL_NAME' username => 'Ubic Server Bot' },

Source repository

https://github.com/likhatskiy/Ubic-Watchdog-Notice

Author

Alexey Likhatskiy, likhatskiy@gmail.com

Copyright and licence

Copyright (C) 2014 "Alexey Likhatskiy"

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.