Mercurial > bottledash
diff doc/connect_with_mon/bottledash.alert @ 31:a43fa30655e9
better alignment of the top-bar
author | sean |
---|---|
date | Tue, 18 Aug 2015 13:05:55 +0200 |
parents | 140c9023df7a |
children | a957a56bb694 |
line wrap: on
line diff
--- a/doc/connect_with_mon/bottledash.alert Fri Aug 14 15:37:52 2015 +0200 +++ b/doc/connect_with_mon/bottledash.alert Tue Aug 18 13:05:55 2015 +0200 @@ -30,12 +30,11 @@ getopts ("S:s:g:h:t:l:f:u"); $ALERT = $opt_u ? "UPALERT" : "ALERT"; -$SERVICE = @ARGV; my $server_endpoint = "http://localhost:8000/updown"; my $ua = LWP::UserAgent->new; my $req = HTTP::Request->new(POST => $server_endpoint); $req->header('content-type' => 'x-www-form-urlencoded'); -my $post_data = "service=$SERVICE&status=$ALERT"; +my $post_data = "service=@ARGV&status=$ALERT"; $req->content($post_data); my $resp = $ua->request($req);