/data/logs directory
list Sigurður Bjarnason
Hi All In the old days when I was using the Big Brother monitoring server I always got some files to the /data/logs directory. Since I begun to use Hobbit I have never seen any files there.... Witch is causing me some trouble on custom made script I wrote when using Big Brother, then I got files to this directory, example file1 and file2 and I could compare the two, now ..I just get files to /data/hist and histlogs with timestamp in the name and that files I cannot use..! Is this directory not longer used with Hobbit ?.. and if not.. why does it still exists ? Regards Siggi
list Henrik Størner
▸
On Wed, May 10, 2006 at 02:49:39PM -0000, Sigurður Bjarnason wrote:
In the old days when I was using the Big Brother monitoring server I always got some files to the /data/logs directory.
That was the Big Brother way of storing data. Hobbit keeps all of the current status logs in memory - unless you explicitly ask it to store them on disk by running the hobbitd_filestore module.
Since I begun to use Hobbit I have never seen any files there.... Witch is causing me some trouble on custom made script I wrote when using Big Brother, then I got files to this directory, example file1 and file2 and I could compare the two, now ..I just get files to /data/hist and histlogs with timestamp in the name and that files I cannot use..!
Either enable the [bbstatus] task in your hobbitlaunch.cfg file - this causes the data/logs/ directory to be updated with the current status logs like BB; or change your script to fetch the status messages you need. I would recommend changing your script ... To grab a status log from Hobbit, use the command bb 127.0.0.1 "hobbitdlog host=HOSTNAME test=COLUMNNAME" The first line of the output is a summary line, after which comes the raw status log. Regards, Henrik
list Jeff Newman
Henrik, If you have the bbstatus task enabled, does it write the values it recieves to a file, and then the next time data arrives, overwrite the info in the file, or does it append to the file? I would like to capture some data that comes in every 1 or 2 seconds Thanks, Jeff
▸
On 5/10/06, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:On Wed, May 10, 2006 at 02:49:39PM -0000, Sigurður Bjarnason wrote:In the old days when I was using the Big Brother monitoring server I always got some files to the /data/logs directory.That was the Big Brother way of storing data. Hobbit keeps all of the current status logs in memory - unless you explicitly ask it to store them on disk by running the hobbitd_filestore module.Since I begun to use Hobbit I have never seen any files there.... Witch is causing me some trouble on custom made script I wrote when using Big Brother, then I got files to this directory, example file1 and file2 and I could compare the two, now ..I just get files to /data/hist and histlogs with timestamp in the name and that files I cannot use..!Either enable the [bbstatus] task in your hobbitlaunch.cfg file - this causes the data/logs/ directory to be updated with the current status logs like BB; or change your script to fetch the status messages you need. I would recommend changing your script ... To grab a status log from Hobbit, use the command bb 127.0.0.1 "hobbitdlog host=HOSTNAME test=COLUMNNAME" The first line of the output is a summary line, after which comes the raw status log. Regards, Henrik
list Henrik Størner
▸
On Thu, Jun 01, 2006 at 05:39:28PM -0500, Jeff Newman wrote:
If you have the bbstatus task enabled, does it write the values it recieves to a file, and then the next time data arrives, overwrite the info in the file, or does it append to the file? I would like to capture some data that comes in every 1 or 2 seconds
Like the old BB system, the files in data/logs/ reflect the current status, so they are overwritten each time the status is updated. Capturing the status messages that arrive could be useful - also for debugging Hobbit! - so I hacked up a new hobbitd_capture module to do that (spent a full 30 minutes coding and testing it :-)). I'll mail it to you directly. Regards, Henrik