Small enhancement to Hobbit JavaScript menu
list Frédéric Mangeant
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
list Peter Welter
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
list Jason Altrincham Jones
Hi all, I did look here http://www.hswn.dk/hobbit/help/manpages/man1/bb-webpage.cgi.1.html but there doesn't seem, to be any documentation so I thought I might aswell ask the list. Is there a way to add an alternate pageset to the views menu? I have created an alternate pageset: xtitle Title xpage Page xgroup Group . . . Etc. Anyway I would like to add this pageset to the views i.e. views > ITNow Overview. How would I go about altering this? Thanks, Jason.
list Francesco Duranti
You've to change this file: ~hobbituser/server/www/menu/menu_items.js
and add the line for your view for example:
var MENU_ITEMS = [
['Views', null, null,
['Main view', '/bbtest/bb.html'],
['All non-green view', '/bbtest/bb2.html'],
['ITNow Overview', '/bbtest/ITNOW/bb.html'],
['Critical systems', '/bbtest-cgi/hobbit-nkview.sh'],
],
Where /bbtest/ITNOW/bb.html is the path to your view directory bb.html
file.
-----Original Message----- From: Jones, Jason (Altrincham) [mailto:user-ee957b46acd2@xymon.invalid] Sent: Thursday, October 05, 2006 11:37 AM To: user-ae9b8668bcde@xymon.invalid Subject: [hobbit] Altering the menu Hi all, I did look here http://www.hswn.dk/hobbit/help/manpages/man1/bb-webpage.cgi.1. html but there doesn't seem, to be any documentation so I thought I might aswell ask the list.
▸
Is there a way to add an alternate pageset to the views menu? I have created an alternate pageset:
xtitle Title
xpage Page
xgroup Group
.
.
.
Etc.
Anyway I would like to add this pageset to the views i.e. views > ITNow Overview. How would I go about altering this?
Thanks,
Jason.