Xymon Mailing List Archive search

Small enhancement to Hobbit JavaScript menu

list Peter Welter
Thu, 5 Oct 2006 11:22:37 +0200
Message-Id: <user-da5f84dffc5d@xymon.invalid>

Hi Henryk,

Thanks for 4.2.0 and the jumbo patch. This is a lot easier!

On the other hand: I wonder if you are willing to include the proposed
improvement in the next distro by Frédéric Mangeant? It makes the
reporting out of the box a lot easier.

regards,
Peter


2005/11/18, Frédéric Mangeant <user-b6ea1d850181@xymon.invalid>:
Hi Henrik

I didn't find bb-datepage.sh the first time I set up Hobbit, maybe this
small modification to ~/server/www/menu/menu_items.js would be helpful :


--- menu_items.js.orig  2005-11-18 15:46:58.000000000 +0100
+++ menu_items.js       2005-11-18 15:53:50.000000000 +0100
@@ -6,7 +6,12 @@
        ],
        ['Reports', null, null,
                ['Event log Report', '/hobbit-cgi/bb-eventlog.sh'],
-               ['Availability Report', '/hobbit-cgi/bb-rep.sh'],
+               ['Availability Reports', null, null,
+                       ['Daily Report',
'/hobbit-cgi/bb-datepage.sh?type=day'],
+                       ['Weekly Report',
'/hobbit-cgi/bb-datepage.sh?type=week'],
+                       ['Monthly Report',
'/hobbit-cgi/bb-datepage.sh?type=month'],
+                       ['Custom Report', '/hobbit-cgi/bb-rep.sh'],
+               ],
                ['Snapshot Report', '/hobbit-cgi/bb-snapshot.sh'],
                ['Config Report', '/hobbit-cgi/hobbit-confreport.sh'],
        ],


Regards,

--

Frédéric Mangeant

Steria EDC Sophia-Antipolis