Mercurial > bottledash
changeset 29:140c9023df7a
added important default servers
author | sean |
---|---|
date | Fri, 14 Aug 2015 15:32:57 +0200 |
parents | af280057d5fa |
children | accefaf00c6a |
files | dash.py doc/connect_with_mon/bottledash.alert |
diffstat | 2 files changed, 42 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/dash.py Fri Aug 14 13:11:34 2015 +0200 +++ b/dash.py Fri Aug 14 15:32:57 2015 +0200 @@ -94,17 +94,39 @@ # -------------------- # [settings] # show_top_bar=True +# rows=3 # -------------------- # options: # show_top_bar (True / False) [optional] # If True, the dashboard will show the current date and the time on the top # if False, the dashboard will not show a top-bar -# default: True +# default: False # hint: the top-bar has got a height of 5%! +# +# rows (integer-number) [recommended] +# the number or rows for the tiles. Not every number makes sence since +# you usually cannot scroll on the screen. This only works on the default +# tile template - it is always possivle to write an own template! +# example: +# If there are 4 tiles in 2 rows the reult would be the following: +# ▢▢ +# ▢▢ +# +# if there are 3 tiles in 3 rows the result would be the following +# ▢ +# ▢ +# ▢ +# +# if there re 12 tiles in 3 rows the reult would be the following +# ▢▢▢▢ +# ▢▢▢▢ +# ▢▢▢▢ +# + [settings] show_top_bar=False -rows=2 +rows=3 # Tiles: # example: @@ -115,10 +137,10 @@ # status=up # -------------------- # options: -# type (mon / d3js) [required] +# type (mon / web_view) [required] # tells the program what kind of tile you need. # a "mon" tile can be used for IT infrastructure monitoring purposes -# a d3js tile can be used to display a chart +# a "web_view" tile can be used to display a chart # default: - # # source (<IP> or <FQDN>) [required for mon-types] @@ -133,20 +155,30 @@ # [tile1] type=mon -source=red2.rgb.intevation.de +source=red2-Bottle-App status=wait [tile2] type=mon -source=192.168.2.3 +source=Intevation_Homepage status=wait [tile3] type=mon -source=192.168.4.3 +source=mpuls-jmd-demo status=wait [tile4] +type=mon +source=aise-icn +status=wait + +[tile5] +type=mon +source=mpuls-s_bew_prev +status=wait + +[tile6] type=web_view div_name=techintern script=display_issues_techintern
--- 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;