Xymon Mailing List Archive search

acklog in bb2 question

3 messages in this thread

list Olivier Beau · Wed, 3 Aug 2005 15:15:16 +0200 ·
Hi all,

Currently i have in my bb2.html :
"No events acknowledged in the last 240 minutes"


i would like to change those 240 minutes into 24 hours, only for the acklog.sh.

is these an option for this ? 
can i change a value somewhere in the source ?

 
--
Olivier Beau
list Henrik Størner · Wed, 3 Aug 2005 15:40:23 +0200 ·
quoted from Olivier Beau
On Wed, Aug 03, 2005 at 03:15:16PM +0200, Olivier Beau wrote:
Currently i have in my bb2.html :
"No events acknowledged in the last 240 minutes"

i would like to change those 240 minutes into 24 hours, only for the acklog.sh.

is these an option for this ? 
Not currently, but I've just added it.
can i change a value somewhere in the source ?
In bbdisplay/pagegen.c, look for "do_acklog" (2 occurrences):

 if (bb2acklog && !havedoneacklog) do_acklog(output, 25, 240);

The 25 is the max count, 240 is the max. time (in minutes).
So change 240 to 1440.


Henrik
list Olivier Beau · Wed, 3 Aug 2005 22:26:39 +0200 ·
great  !!
thank you henrik :)
quoted from Henrik Størner


Le 3 août 05 à 15:40, Henrik Stoerner a écrit :
On Wed, Aug 03, 2005 at 03:15:16PM +0200, Olivier Beau wrote:
Currently i have in my bb2.html :
"No events acknowledged in the last 240 minutes"

i would like to change those 240 minutes into 24 hours, only for  
the acklog.sh.

is these an option for this ?
Not currently, but I've just added it.

can i change a value somewhere in the source ?
In bbdisplay/pagegen.c, look for "do_acklog" (2 occurrences):

 if (bb2acklog && !havedoneacklog) do_acklog(output, 25, 240);

The 25 is the max count, 240 is the max. time (in minutes).
So change 240 to 1440.


Henrik