[hobbit] TIME and localtime in hobbitd-alerts.cfg

Dominique Frise Dominique.Frise at unil.ch
Wed May 3 11:04:07 CEST 2006


Dominique Frise wrote:
> Hi,
> 
> We have problem setting TIME in our rules.
> 
> 
> Example of a rule for excluding alerts for the ldap service between 
> 05:00 and 05:30 AM:
> 
> HOST=uldns1,uldns2 SERVICE=ldap TIME=*:0500:0530
> 
> 
> In notifications.log we see:
> 
> Wed May  3 03:02:40 2006 uldns1.ldap (1.2.3.4) 0797852006 1146625310 0
> Wed May  3 03:02:40 2006 uldns2.ldap (1.2.3.4) mister.test at example.com 
> 1146625360 0
> 
> 
> This seems to indicate that Hobbit treats the TIME as GMT (2 hours shift 
> because of summertime) but we use CEST on the server (TZ=Europe/Zurich)
> 
> How can we solve this?
> 
> 
> Dominique
> UNIL - University of Lausanne
> 
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
> 
> 
Analyzing a bit more shows that Hobbit was using GMT since yesterday after a 
restart when contents of hist, histlogs, logs and rrd directories was erased.

This was made on purpose because after several days of testing, we wanted to 
start Hobbit from scratch.

The problem is probably that files in tmp like hobbitd.chk (not erased) was not 
in sync with those history dirs.

Today, after restarting Hobbit, localtime CEST is now properly set.

Some historical logs not timestamped correctly during the problem is not 
available anymore though :-(

This leads us to the question: what should be safely erased to start Hobbit 
from scratch?

Is following list correct?

$BBSERVERROOT/data/acks/*,
              data/data/*
              data/disabled/*
              data/hist/*
              data/histlogs/*
              data/logs/*
              data/rrd/*
$BBHOME/tmp/*
$BBSERVERLOGS/*.log
$BBWWW/snap/*
$BBWWW/rep/*

Thanks.

Dominique
UNIL - University of Lausanne



More information about the Xymon mailing list