Xymon Mailing List Archive search

TIME and localtime in hobbitd-alerts.cfg

2 messages in this thread

list Dominique Frise · Wed, 03 May 2006 07:50:00 +0200 ·
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) user-2ab2b2b69de7@xymon.invalid 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
list Dominique Frise · Wed, 03 May 2006 11:04:07 +0200 ·
quoted from Dominique Frise
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) user-2ab2b2b69de7@xymon.invalid 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

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