help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cf_lastseen.db [was: List of monitored files?]


From: Mark . Burgess
Subject: Re: cf_lastseen.db [was: List of monitored files?]
Date: Fri, 1 Oct 2004 09:45:20 +0200 (MEST)

The latest snapshot of cfengine contains a new program - cfshow which
allows you to print out these databases. Editing will take longer,
but you can at least see how the program works.

M

On 30 Sep, Brendan Strejcek wrote:
> On a related note, I have been loving the friendstatus stuff. There
> was a useful thread a while back about getting crunchable data out of
> cf_lastseen.db. What I want is a nice command line utility that can
> print and edit this db. To be able, for example, to manually expire some
> hosts rather than wait for a week (and continue to get warnings).
> 
> I tried to write this with perl tie, but the berkeley db versions did
> not seem to get along or something. Any perl gurus out there have any
> insight? I'm sure the perl script would be only a few lines long and
> imensely useful. I wrote a simple C program which does the printing part
> of what I want but it's really ugly. I would much prefer just messing
> with hashes. Or is there some obvious reason why perl tie can't be used
> to interact with the databases cfengine creates?
> 
> Oh, and it would be nice if there was an option to make the
> FriendStatus() alerts function do name resolution. Because getting an
> email with a list of IP addresses requires me to manually resolve all
> of them and then ignore most of the warnings (that is a dhcp address so
> I don't care, that is a machine that got rebuilt yesterday so I don't
> care, that is a machine that is not supposed to be running cfengine
> because someone else is testing some new software on it, etc, etc).
> Seeing the host names in the alert would make that more obvious.
> 
> Mark.Burgess@iu.hio.no wrote:
> 
>> 
>> You can use dbdump, but you won't make much sense of the checksums.
>> Perhaps it would be useful to make a small utility to dump this in
>> text format? I could add it to 2.1.11 if you like?
>> 
>> cfdigestdump
>> 
>> or something
>> M
>> 
>> On 20 Sep, Wil Cooley wrote:
>> > 
>> > I'm guessing one of the databases in /var/cfengine contains the list of
>> > files and directories controlled with cfengine, along with checksums
>> > (for files conf'd with that type of check), timestamps, etc.  Is there
>> > (an easy) way to extract this data into something awk-able?
>> > 
>> > I'm working with a managed hosting provider who's maintaining Tripwire
>> > on a customer's systems and it would be very convenient if I could get
>> > at this data with one swell foop instead of reviewing every one of my cf
>> > config files.
>> > 
>> > I'm guessing a little Perl/Python could do it, if I knew what the
>> > database structures were...
>> > 
>> > Wil
>> 
>> 
>> 
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
>> Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> 
>> 
>> 
>> _______________________________________________
>> Help-cfengine mailing list
>> Help-cfengine@gnu.org
>> http://lists.gnu.org/mailman/listinfo/help-cfengine
>> 
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





reply via email to

[Prev in Thread] Current Thread [Next in Thread]