Common time periods on the ACK page
list Gary Baluha
In our install of BB, we modified the ACK page to give a list of some common ack intervals in minutes at the bottom of the page. For instance, 4 hr = 240 | 6 hr = 360 | 8 hr = 480 | 12 hr = 720 | 1 day = 1440 | 3 days = 4320 | 1 week = 10080 I can't seem to find a way to do this with Hobbit, since the ACK page is generated by a compiled cgi script. Is there any other way to do this? I looked at the bb-ack.c source file, but couldn't easily find what I was looking for.
list S Aiello
▸
On Thursday 19 April 2007 10:31, Gary Baluha wrote:
In our install of BB, we modified the ACK page to give a list of some common ack intervals in minutes at the bottom of the page. For instance, 4 hr = 240 | 6 hr = 360 | 8 hr = 480 | 12 hr = 720 | 1 day = 1440 | 3 days = 4320 | 1 week = 10080 I can't seem to find a way to do this with Hobbit, since the ACK page is generated by a compiled cgi script. Is there any other way to do this? I looked at the bb-ack.c source file, but couldn't easily find what I was looking for.
Could you edit the server/web/acknowledge_footer file ? But not sure you will need this, the acknowledge GUI can work with time periods of 2h, 5w, 20m (2 hours, 5 weeks, 20 minutes). ~Steve
list Henrik Størner
▸
On Thu, Apr 19, 2007 at 10:31:11AM -0400, Gary Baluha wrote:
In our install of BB, we modified the ACK page to give a list of some common ack intervals in minutes at the bottom of the page. For instance, 4 hr = 240 | 6 hr = 360 | 8 hr = 480 | 12 hr = 720 | 1 day = 1440 | 3 days = 4320 | 1 week = 10080 I can't seem to find a way to do this with Hobbit, since the ACK page is generated by a compiled cgi script. Is there any other way to do this?
You can modify the header/footer templates in ~hobbit/server/web/
There are really two different ack-webpages: One is identical to the BB
ack form and uses the acknowledge_{header,footer,form} files. The other
is the one that is used by default with the "--no-pin" option (where you
can ack an alert without using the ack code from your email alert) -
this one doesn't use the acknowledge_form file, but does use the header-
and footer-files.
Regards,
Henrik
list Jason Altrincham Jones
Don't know how to alter this but assuming you have the allinone.patch applied you can just put m (minutes) h(hours) d(days) w(weeks) and combine them as you see fit so 5d4h3m = 5 days 4 hours 3 minutes (though I would be impressed if you had an ack that specific). Thanks, Jason.
▸
From: Gary Baluha [mailto:user-ae3e15c22de1@xymon.invalid]
Sent: 19 April 2007 15:31
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Common time periods on the ACK page
In our install of BB, we modified the ACK page to give a list of some
common ack intervals in minutes at the bottom of the page. For
instance,
4 hr = 240 | 6 hr = 360 | 8 hr = 480 | 12 hr = 720 | 1 day = 1440 | 3
days = 4320 | 1 week = 10080
I can't seem to find a way to do this with Hobbit, since the ACK page is
generated by a compiled cgi script. Is there any other way to do this?
I looked at the bb-ack.c source file, but couldn't easily find what I
was looking for.
list Gary Baluha
▸
On 4/19/07, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
On Thu, Apr 19, 2007 at 10:31:11AM -0400, Gary Baluha wrote:In our install of BB, we modified the ACK page to give a list of some common ack intervals in minutes at the bottom of the page. For instance, 4 hr = 240 | 6 hr = 360 | 8 hr = 480 | 12 hr = 720 | 1 day = 1440 | 3 days = 4320 | 1 week = 10080 I can't seem to find a way to do this with Hobbit, since the ACK page is generated by a compiled cgi script. Is there any other way to do this?You can modify the header/footer templates in ~hobbit/server/web/ There are really two different ack-webpages: One is identical to the BB ack form and uses the acknowledge_{header,footer,form} files. The other is the one that is used by default with the "--no-pin" option (where you can ack an alert without using the ack code from your email alert) - this one doesn't use the acknowledge_form file, but does use the header- and footer-files. Regards, Henrik
Ahh. I'm running an older 4.2.0 that was installed over an older version of
Hobbit, so I'm still getting an older ACK page. In a week or two we'll be
getting all new hardware to replace the current Hobbit machine, and I'll be
installing Hobbit from scratch. Guess I'll just wait until then, since it
sounds like it'll mostly make the common time periods moot anyway.
list Henrik Størner
▸
On Thu, Apr 19, 2007 at 02:43:30PM -0400, Gary Baluha wrote:
Ahh. I'm running an older 4.2.0 that was installed over an older version of Hobbit, so I'm still getting an older ACK page.
Modify the ~hobbit/server/etc/hobbitcgi.cfg file: The CGI_ACK_OPTS setting should include the option "--no-pin". Regards, Henrik
list Gary Baluha
Ahh, very nice. Thanks!
▸
On 4/19/07, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:On Thu, Apr 19, 2007 at 02:43:30PM -0400, Gary Baluha wrote:Ahh. I'm running an older 4.2.0 that was installed over an older version of Hobbit, so I'm still getting an older ACK page.Modify the ~hobbit/server/etc/hobbitcgi.cfg file: The CGI_ACK_OPTS setting should include the option "--no-pin". Regards, Henrik
list Gary Baluha
Just one thing, it seems like the list of alerts doesn't match what is shown in the non-green/critical systems page. I can still ack other alerts if I first click on the alert, though, so it's not a major issue.
▸
On 4/19/07, Gary Baluha <user-ae3e15c22de1@xymon.invalid> wrote:Ahh, very nice. Thanks! On 4/19/07, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:On Thu, Apr 19, 2007 at 02:43:30PM -0400, Gary Baluha wrote:Ahh. I'm running an older 4.2.0 that was installed over an older version of Hobbit, so I'm still getting an older ACK page.Modify the ~hobbit/server/etc/hobbitcgi.cfg file: The CGI_ACK_OPTS setting should include the option "--no-pin". Regards, Henrik