Mercurial > bottledash
diff doc/connect_with_mon/bottledash.alert @ 29:140c9023df7a
added important default servers
author | sean |
---|---|
date | Fri, 14 Aug 2015 15:32:57 +0200 |
parents | 7d431b779512 |
children | a43fa30655e9 |
line wrap: on
line diff
--- a/doc/connect_with_mon/bottledash.alert Fri Aug 14 13:11:34 2015 +0200 +++ b/doc/connect_with_mon/bottledash.alert Fri Aug 14 15:32:57 2015 +0200 @@ -20,6 +20,8 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# the argument passed to the script should be the service-name in the +# dash.conf from the bottledash-configuration #!/usr/bin/perl use LWP::UserAgent; @@ -28,7 +30,7 @@ getopts ("S:s:g:h:t:l:f:u"); $ALERT = $opt_u ? "UPALERT" : "ALERT"; -$SERVICE = $opt_g; +$SERVICE = @ARGV; my $server_endpoint = "http://localhost:8000/updown"; my $ua = LWP::UserAgent->new;