# HG changeset patch # User sean # Date 1439559177 -7200 # Node ID 140c9023df7abcdf0c1aad12dcd5449a0a5fa8a5 # Parent af280057d5fa8e720f5ceb0f7cd9417ba51e0de6 added important default servers diff -r af280057d5fa -r 140c9023df7a dash.py --- 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 ( or ) [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 diff -r af280057d5fa -r 140c9023df7a doc/connect_with_mon/bottledash.alert --- 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;