Xymon Mailing List Archive search

deleting history of a test

2 messages in this thread

list Stephane Caminade · Thu, 30 Mar 2006 10:09:02 +0200 ·
Hi,

I had added a test that after some thinking was not reaally needed.
I decided to delete it, and its history.
I looked at tips and tricks, and tried to run '~/server/bin/bb 127.0.0.1 "drop HOSTNAME dns" ', which did not work apparently.
So I went into the ~/data directory, and deleted in hist, histlogs and logs all the data concerning this test.
However, on the main page, I still had the test, which was no longer updated, but still existed.

It took me some time to find that in ~/server/tmp/ there is a file named hobbitd.chk which does not disappear when you stop/start hobbit.
Deleting this file apparently forced hobbit to recreate it, and this time my deleted test had disappeared.

Is that the expected behaviour ?

Regards, and keep up the great work you re doing on Hobbit.

Stephane


-- 
Stephane Caminade
Administrateur Systèmes et Réseau
                                   \  <user-a265b6c42ffc@xymon.invalid>
Institut d'Astrophysique Spatiale  /  tel : (XX) (X) XX XX XX XX
Batiment 121, Universite Paris XI  \  fax : (XX) (X) XX XX XX XX
F-91405 ORSAY Cedex                /  www : http://www.medoc-ias.u-psud.fr/

list Henrik Størner · Thu, 30 Mar 2006 10:35:55 +0200 ·
quoted from Stephane Caminade
On Thu, Mar 30, 2006 at 10:09:02AM +0200, Stephane Caminade wrote:
I had added a test that after some thinking was not reaally needed.
I decided to delete it, and its history.
I looked at tips and tricks, and tried to run '~/server/bin/bb 127.0.0.1 
"drop HOSTNAME dns" ', which did not work apparently.
It should have worked. Note that it may take up to one minute before it
disappears from the web page (they only get refreshed once a minute when
bbgen runs).
quoted from Stephane Caminade
It took me some time to find that in ~/server/tmp/ there is a file named 
hobbitd.chk which does not disappear when you stop/start hobbit.
This file holds the information that Hobbit normally keeps in memory
while running - e.g. the latest color of each status, when it was last 
updated etc. The whole point of this file is to maintain the current
status across a restart of Hobbit.
quoted from Stephane Caminade
Deleting this file apparently forced hobbit to recreate it, and this 
time my deleted test had disappeared.
Obviously, since your test was no longer being reported to hobbitd.
Is that the expected behaviour ?
The core issue here is why the "drop" command did not work. The most
common reason for this, I'm sorry to say, is mis-typing of the host-
or column-name.


Henrik