delay creation of web pages
list Torsten Richter
Hi there, is it possible to delay the creation of the web pages in hobbit for a few minutes? The problem is that our customer is looking at the hobbit screen too and our suits are not very amused that he calls us instead of us calling him in case of an error. So management wants to delay the creation of the status pages in hobbit for a few minutes on the machine where the customer is looking at and on our internal machine everything should go the "old-fashioned" way. TIA Torsten
list Rob MacGregor
▸
On 31/10/05, user-c862b499d9fa@xymon.invalid <user-c862b499d9fa@xymon.invalid> wrote:
Hi there, is it possible to delay the creation of the web pages in hobbit for a few minutes? The problem is that our customer is looking at the hobbit screen too and our suits are not very amused that he calls us instead of us calling him in case of an error. So management wants to delay the creation of the status pages in hobbit for a few minutes on the machine where the customer is looking at and on our internal machine everything should go the "old-fashioned" way.
Use a scheduled curl/wget/rsync/whatever to mirror the pages from the
"live" server to the customer server. You'll want to ensure that you
time it right, which won't be trivial.
--
Please keep list traffic on the list.
Rob MacGregor
Whoever fights monsters should see to it that in the process he
doesn't become a monster. Friedrich Nietzsche
list Henrik Størner
▸
On Mon, Oct 31, 2005 at 03:15:07PM +0100, user-c862b499d9fa@xymon.invalid wrote:
is it possible to delay the creation of the web pages in hobbit for a few minutes?
No. Some of the web pages are generated dynamically, e.g. all of the detailed status pages that use the /cgi-bin/hobbitsvc.cgi CGI tool.
▸
The problem is that our customer is looking at the hobbit screen too and our suits are not very amused that he calls us instead of us calling him in case of an error. So management wants to delay the creation of the status pages in hobbit for a few minutes on the machine where the customer is looking at and on our internal machine everything should go the "old-fashioned" way.
Start charging him extra when he calls you :-) Seriously, the only way you can do that is to run two Hobbit servers; one for your internal use, and another for your customers. You can use bbproxy to receive all of the status messages and forward them to your two real Hobbit servers, and then on the customer server you can setup some "badhttp", "badsmtp" etc. tags to delay a red status from showing up until it has been down for some time; that should give you the effect you want. Regards, Henrik
list Frédéric Mangeant
▸
user-c862b499d9fa@xymon.invalid a écrit :
Hi there, is it possible to delay the creation of the web pages in hobbit for a few minutes? The problem is that our customer is looking at the hobbit screen too and our suits are not very amused that he calls us instead of us calling him in case of an error. So management wants to delay the creation of the status pages in hobbit for a few minutes on the machine where the customer is looking at and on our internal machine everything should go the "old-fashioned" way.
Hi
I'm running bbgen twice (once for admins, and once for customers), with different templates.
Here's the task definition for customers's web pages :
[customers-map]
ENVFILE /BB/hobbit/server/etc/hobbitserver.cfg
NEEDS hobbitd
GROUP generators
CMD bbgen $BBGENOPTS --report --subpagecolumns=2 --pages-last --pagetext-headings --recentgifs=60 --purplelog=/tmp/purple.log --noproppurple=NetBackup --ignorecolumns=info --template=customers $BBHOME/www/customers
LOGFILE $BBSERVERLOGS/bb-display-customers.log
INTERVAL 10m
These web pages get updated every 10 minutes. You just have to point your customers to http://yourwebserver/hobbit/customers ;-)
--
Frédéric Mangeant
Steria EDC Sophia-Antipolis