Note: The tool was tested with Perl v5.14.2. Other versions may cause problems or not work at all.
-
Copy the file
traffic_alert_configuration.pm.dist
totraffic_alert_configuration.pm
. -
Adjust
traffic_alert_configuration.pm
to the values that fit with your setup and with your requirements. To read how you can get an username/password-combination for the Hetzner API, read http://wiki.hetzner.de/index.php/Robot_Webservice/en -
Mark
hetzner_traffic_alert.pl
as executable (chmod hetzner_traffic_alert.pl +x
)
Execute hetzner_traffic_alert.pl
.
- Perl 5 (tested with Perl v5.14.2)
- The Perl-module JSON::Any
- The Perl-module POSIX
- The Perl-module LWP
hetzner_traffic_alert informs you about how much traffic you have left at Hetzner. Copyright (C) 2013 Simon Plasger
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
See COPYING for details.