Xymon Mailing List Archive search

trimhistory - directory not found

3 messages in this thread

list Rolf Schrittenlocher · Wed, 26 Nov 2008 09:37:45 +0100 ·
Hi,

I want to use trimhistory (Solaris 9, hobbit-4.2.0) and have an error:
trimhistory --cutoff=`/opt/sfw/bin/gdate +%s --date="1 Jan 2007"`
2008-11-26 09:19:49 Cannot cd to history directory: No such file or directory

history (hist, histlogs, history.log) are in directory "data" which is a link to the raid:
~hobbit./hobbit-4.2.0/data -> /raid0/log/.../hobbit/data. May this cause problems?

Any ideas where to make this setting?

Thanks!
Rolf

-- 
Mit freundlichen Gruessen
Rolf Schrittenlocher

Bitte beachten Sie die neue Emailadresse!

HeBIS-IT, Senckenberganlage 31, 60054 Frankfurt
Tel: (XX) XX - XXX XXXXX   Fax: (XX) XX XXX XXXXX
LBS: user-1e39a1813094@xymon.invalid
Persoenlich: user-ea9d95bffcf0@xymon.invalid
list Henrik Størner · Mon, 1 Dec 2008 21:30:23 +0000 (UTC) ·
quoted from Rolf Schrittenlocher
In <user-c9f4ad6ba2a5@xymon.invalid> Rolf Schrittenlocher <user-ea9d95bffcf0@xymon.invalid> writes:
I want to use trimhistory (Solaris 9, hobbit-4.2.0) and have an error:
trimhistory --cutoff=`/opt/sfw/bin/gdate +%s --date="1 Jan 2007"`
2008-11-26 09:19:49 Cannot cd to history directory: No such file or 
directory
Run it via "bbcmd" to make sure it has all the Hobbit environment
setup. I.e.
  bbcmd trimhistory --cutoff=.....


Regards,
Henrik
list Rolf Schrittenlocher · Tue, 02 Dec 2008 10:25:21 +0100 ·
Dear Henrik,

thank you!
bbcmd trimhistory --cutoff=`/opt/sfw/bin/gdate +%s --date="1 Jan 2007"`
2008-12-02 10:01:02 Using default environment file /pica/ffm/com/sys/hobbit/client/etc/hobbitclient.cfg
2008-12-02 10:01:02 Cannot cd to history directory: No such file or directory

That didn't work. But I found in the sources that it is $BBHIST what is missing. So . ../etc/hobbitserver.cfg did the job. Don't know why the hobbit user didn't read this file.

kind regards
Rolf
quoted from Rolf Schrittenlocher
In <user-c9f4ad6ba2a5@xymon.invalid> Rolf Schrittenlocher <user-ea9d95bffcf0@xymon.invalid> writes:

  
I want to use trimhistory (Solaris 9, hobbit-4.2.0) and have an error:
trimhistory --cutoff=`/opt/sfw/bin/gdate +%s --date="1 Jan 2007"`
2008-11-26 09:19:49 Cannot cd to history directory: No such file or directory
    
Run it via "bbcmd" to make sure it has all the Hobbit environment
setup. I.e.
  bbcmd trimhistory --cutoff=.....


Regards,
Henrik

-- 
Mit freundlichen Gruessen
Rolf Schrittenlocher

Bitte beachten Sie die neue Emailadresse!

HeBIS-IT, Senckenberganlage 31, 60054 Frankfurt
Tel: (XX) XX - XXX XXXXX   Fax: (XX) XX XXX XXXXX
LBS: user-1e39a1813094@xymon.invalid
Persoenlich: user-ea9d95bffcf0@xymon.invalid