Thanks, that sounds workable. <br><br>Larry<br><br><div class="gmail_quote">On Nov 7, 2007 4:38 PM, Henrik Stoerner <<a href="mailto:henrik@hswn.dk">henrik@hswn.dk</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Wed, Nov 07, 2007 at 02:19:08PM -0600, Larry Barber wrote:<br>> What would it take to get the availability and snapshot reports to behave<br>> the same way the event log, configuration and  metrics report do when
<br>> invoked from other than the top page? That is, when invoked from a given<br>> page only the servers listed on that page, or below, would be included in<br>> the report. I work in a data center that has several different customers who
<br>> would like to use these reports, but we cannot let them since they would be<br>> able to view data for other peoples machines.<br><br></div></div>It would take some major reworking of the report generator, which is the
<br>same program that generates the regular Hobbit overall status webpages.<br>This is the absolutely oldest part of Hobbit (it dates back to version<br>1.0 of Hobbit's predecessor, bbgen) - 5 years old on Nov 22nd.<br>
<br>In my "master plan" I would like to rip out these static webpages, and<br>have everything generated dynamically, which would make this a very<br>simple thing to do.<br><br>Meanwhile, what I've done at work - we have the exact same issue as You
<br>do - is to pre-generate reports with daily, weekly and monthly<br>availability figures. Thanks to some Apache group-access controls I can<br>then restrict peoples access to only those pages that they are allowed<br>to see - it goes like this:
<br><br><DirectoryMatch /var/lib/hobbit/www/periodic/(daily|weekly|monthly)/.*/Customer1><br>   Require group admins customer1<br></DirectoryMatch><br><br>"admins" is ourselves, we can access everything. "customer1" is an
<br>Apache group, which then holds the web logins that the customer uses.<br><br>Combined with putting these menu items in the "menu_items.js" file<br><br>  ['Daily Availability', '<a href="http://hobbit.foo.com/hobbit-cgi/bb-datepage.sh?type=day%27" target="_blank">
http://hobbit.foo.com/hobbit-cgi/bb-datepage.sh?type=day'</a>],<br>  ['Weekly Availability', '<a href="http://hobbit.foo.com/hobbit-cgi/bb-datepage.sh?type=week%27" target="_blank">http://hobbit.foo.com/hobbit-cgi/bb-datepage.sh?type=week'
</a>],<br>  ['Monthly Availability', '<a href="http://hobbit.foo.com/hobbit-cgi/bb-datepage.sh?type=month%27" target="_blank">http://hobbit.foo.com/hobbit-cgi/bb-datepage.sh?type=month'</a>],<br><br>you get the result than when you pick one of these pre-built availability
<br>reports from a web page, you're automatically directed to the same<br>customer page.<br><br><br>Henrik<br><br><br>To unsubscribe from the hobbit list, send an e-mail to<br><a href="mailto:hobbit-unsubscribe@hswn.dk">
hobbit-unsubscribe@hswn.dk</a><br><br><br></blockquote></div><br>