Re: importing files

2005-03-15 Thread Frank Smith
--On Wednesday, March 16, 2005 15:53:09 +1100 Tim Nelson <[EMAIL PROTECTED]> wrote: > I've only been skimming, and I thought that someone had already > explained, but in double-checking, they haven't. > > http://www.iu.hio.no/cfengine/docs/cfengine-Reference.html#import > > The rele

Re: Too many cfagents running. Was: Load problem with cfservd

2005-03-15 Thread Tim Nelson
On Tue, 15 Mar 2005, Baker, Darryl wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 *** PGP Signature Status: good *** Signer: Darryl Philip Baker <[EMAIL PROTECTED]> *** Signed: 3/15/2005 12:28:32 PM *** Verified: 3/15/2005 12:30:08 PM *** BEGIN PGP VERIFIED MESSAGE *** Installing the latest s

Re: importing files

2005-03-15 Thread Tim Nelson
On Tue, 15 Mar 2005, Dustin Sorge wrote: In the replies I have recieved I am noticing that everyone has a main.cf. It a main.cf required or is it just a matter of convenience? Is it possible to get away with just importing groups.cf import: any:: groups.cf thanks everyone for the helpfu

Re: Number of files in a directory?

2005-03-15 Thread Tim Nelson
On Tue, 15 Mar 2005, Mark Burgess wrote: On Tue, 2005-03-15 at 09:42 -0500, nathan r. hruby wrote: On Tue, 15 Mar 2005, Mark Burgess wrote: control: MailQueueCount = ( ExecResult(find /var/spool/mqueue -type f -name 'q*' | wc -l ) classes: MailqueOverLimit = ( ReturnsZero(/usr/bin

Re: Random Bracket mismatch errors

2005-03-15 Thread Eric Dorland
On Tue, 2005-03-15 at 21:10 +0100, Alexander Jolk wrote: > Eric Dorland wrote: > > > > On Tue, 2005-03-15 at 19:12 +0100, Alexander Jolk wrote: > > > Eric Dorland wrote: > > > > cf:cfengine::/var/cfengine/inputs/cfagent.conf:2: Bracket mismatch, in > > > > [class=d)], level = -1 > > > > cfengine::

Re: Random Bracket mismatch errors

2005-03-15 Thread Alexander Jolk
Eric Dorland wrote: > > On Tue, 2005-03-15 at 19:12 +0100, Alexander Jolk wrote: > > Eric Dorland wrote: > > > cf:cfengine::/var/cfengine/inputs/cfagent.conf:2: Bracket mismatch, in > > > [class=d)], level = -1 > > > cfengine::/var/cfengine/inputs/cfagent.conf:Aborted > > > > Your /var/cfengine/en

Re: Random Bracket mismatch errors

2005-03-15 Thread Eric Dorland
On Tue, 2005-03-15 at 19:12 +0100, Alexander Jolk wrote: > Eric Dorland wrote: > > cf:cfengine::/var/cfengine/inputs/cfagent.conf:2: Bracket mismatch, in > > [class=d)], level = -1 > > cfengine::/var/cfengine/inputs/cfagent.conf:Aborted > > Your /var/cfengine/env_data is corrupted. Just remove it

Re: Random Bracket mismatch errors

2005-03-15 Thread Alexander Jolk
Eric Dorland wrote: > cf:cfengine::/var/cfengine/inputs/cfagent.conf:2: Bracket mismatch, in > [class=d)], level = -1 > cfengine::/var/cfengine/inputs/cfagent.conf:Aborted Your /var/cfengine/env_data is corrupted. Just remove it, it will be correctly regenerated. Alex -- Alexander Jolk

Re: importing files

2005-03-15 Thread Edward F. Brown
> I[s] a main.cf required or is it just a matter of convenience? > Is it possible to get away with just importing groups.cf Having a main.cf is just a kind of convention, as is a groups.cf. After cfagent.conf, your naming/importing scheme is up to you. -Ed ___

Random Bracket mismatch errors

2005-03-15 Thread Eric Dorland
Hi, I'm having a very strange problem with cfengine. At seemly random times cf:cfengine::/var/cfengine/inputs/cfagent.conf:2: Bracket mismatch, in [class=d)], level = -1 cfengine::/var/cfengine/inputs/cfagent.conf:Aborted but the class= sometimes varies: cf:cfengine::/var/cfengine/inputs/cfag

Too many cfagents running. Was: Load problem with cfservd

2005-03-15 Thread Baker, Darryl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 *** PGP Signature Status: good *** Signer: Darryl Philip Baker <[EMAIL PROTECTED]> *** Signed: 3/15/2005 12:28:32 PM *** Verified: 3/15/2005 12:30:08 PM *** BEGIN PGP VERIFIED MESSAGE *** Installing the latest snapshot has reduced the problem with

Re: importing files

2005-03-15 Thread Dustin Sorge
Atom Powers wrote: My cfagent.conf file is very bare. Just a control section and a list of groups and imports. This way I have all my importing and class in one place and I don't have to worry about recursive imports. I have something like this; groups: seattle_network = ( IPRange(192.168.0

RE: importing files

2005-03-15 Thread Atom Powers
My cfagent.conf file is very bare. Just a control section and a list of groups and imports. This way I have all my importing and class in one place and I don't have to worry about recursive imports. I have something like this; groups: seattle_network = ( IPRange(192.168.0.0/23) )

Re: Number of files in a directory?

2005-03-15 Thread Mark Burgess
On Tue, 2005-03-15 at 09:42 -0500, nathan r. hruby wrote: > On Tue, 15 Mar 2005, Mark Burgess wrote: > > > > >> control: > >>MailQueueCount = ( ExecResult(find /var/spool/mqueue -type f -name 'q*' > >> | wc -l ) > >> > >> classes: > >>MailqueOverLimit = ( ReturnsZero(/usr/bin/test $(MailQ

Re: Number of files in a directory?

2005-03-15 Thread nathan r. hruby
On Tue, 15 Mar 2005, Mark Burgess wrote: control: MailQueueCount = ( ExecResult(find /var/spool/mqueue -type f -name 'q*' | wc -l ) classes: MailqueOverLimit = ( ReturnsZero(/usr/bin/test $(MailQueueCount) -ge 12) ) Warning; completely untested, but it hopefully indicates