Ubic::Watchdog::Notice - Notice service for ubic.
version 0.31
Start notice service: $ ubic start ubic.notice
Currently module can notice by email and to HIPCHAT or SLACK service.
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
Sets the email address to send from.
Sets the addresses in `MIME::Lite` style to send to.
Path to `ubic-watchdog` file for scan. Default is `/var/log/ubic/watchdog.log`.
Notice to HIPCHAT service.
hipchat => { token => 'YOUR_TOKEN', room => 'ROOM_NAME' },
Notice to SLACK service.
slack => { token => 'YOUR_TOKEN', channel => '#CHANNEL_NAME' username => 'Ubic Server Bot' },
https://github.com/likhatskiy/Ubic-Watchdog-Notice
Alexey Likhatskiy, <likhatskiy@gmail.com>
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.
To install Ubic::Watchdog::Notice, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Ubic::Watchdog::Notice
CPAN shell
perl -MCPAN -e shell install Ubic::Watchdog::Notice
For more information on module installation, please visit the detailed CPAN module installation guide.