More importantly what does this return: /var/cfengine/bin/cfagent -z -D from_cfexecd
This will tell you exact what schedule is comfing from cfagent.conf. You need define the schedule there and not inside cfservd.conf. Right? Don't run with a -v out of cron. You will get messages ever 30 minutes. This is no good. BTW: Ditch SMC's cfengine. Go with www.blastwave.org's cfengine it is much better. Or at least the way it is packages. Plus they have 2.1.14 out. Which has important fixes. On Thu, 2005-04-28 at 12:51 -0400, Dmitry Sazonov wrote: > I can see coredump even running manually: > > [EMAIL PROTECTED] /root]# /usr/local/sbin/cfexecd --no-splay -F -v -d2 > > cfexecd Debug mode: running in foreground > Directory for /var/cfengine/inputs/update.conf exists. Okay > Directory for /var/cfengine/bin/cfagent -D from_cfexecd exists. Okay > Directory for /var/cfengine/outputs/spooled_reports exists. Okay > GetNameInfo() > AddClassToHeap(solaris) > Appending [solaris] > AddClassToHeap(inet640) > Appending [inet640] > AddClassToHeap(inet640) > AddClassToHeap() > AddClassToHeap(inet640) > GNU Cfengine server daemon - > 2.1.13 > Free Software Foundation 1994- > Donated by Mark Burgess, Faculty of Engineering, > Oslo University College, 0254 Oslo, Norway > > ------------------------------------------------------------------------ > > Host name is: inet640 > Operating System Type is sunos > Operating System Release is 5.8 > Architecture = sun4u > > > Using internal soft-class solaris for host solaris > > The time is now Thu Apr 28 12:47:56 2005 > > > ------------------------------------------------------------------------ > > AddClassToHeap(32_bit) > Appending [32_bit] > Additional hard class defined as: 32_bit > AddClassToHeap(sunos_5_8) > Appending [sunos_5_8] > AddClassToHeap(sun4u) > Appending [sun4u] > Additional hard class defined as: sunos_5_8 > AddClassToHeap(sunos_sun4u) > Appending [sunos_sun4u] > Additional hard class defined as: sunos_sun4u > AddClassToHeap(sunos_sun4u_5_8) > Appending [sunos_sun4u_5_8] > Additional hard class defined as: sunos_sun4u_5_8 > AddClassToHeap(sparc) > Appending [sparc] > Additional hard class defined as: sparc > AddClassToHeap(SUNW_Ultra_4) > Appending [SUNW_Ultra_4] > Additional hard class defined as: SUNW,Ultra-4 > AddClassToHeap(sunos_sun4u_5_8_Generic_108528_15) > Appending [sunos_sun4u_5_8_Generic_108528_15] > Additional hard class defined as: sunos_sun4u_5_8_Generic_108528_15 > AddClassToHeap(compiled_on_solaris2_8) > Appending [compiled_on_solaris2_8] > > GNU autoconf class from compile time: compiled_on_solaris2_8 > > Address given by nameserver: 143.220.3.160 > Adding alias inet640.aamc.org.. > AddClassToHeap(inet640_aamc_org) > Appending [inet640_aamc_org] > --------------------------------------------------------------------- > Starting server > --------------------------------------------------------------------- > > GetLock(cfexecd,execd,time=1114706876), ExpireAfter=0, IfElapsed=0 > GetLastLock() > CheckOldLock(lock..inet640.execd.execd_12) > Lock lock..inet640.execd.execd_12 last ran at Fri Mar 11 16:53:10 2005 > > cfexecd: Lock lock..inet640.execd.execd_12 expired...(after 68814/0 minutes) > Trying to kill expired process, pid 19996 > LockLog(Lock expired, process killed) > SetLock(lock..inet640.execd.execd_12) > PutLock(lock..inet640.execd.execd_12) > cfpopen(/var/cfengine/bin/cfagent -Q > smtpserver,sysadm,fqhost,ipaddress,EmailMaxLines,EmailFrom,EmailTo -D > from_cfexecd) > smtpserver/mailrelay.aamc.org > [EMAIL PROTECTED] > fqhost/inet640.aamc.org > ipaddress/143.220.3.160 > EmailMaxLines/$(EmailMaxLines) > EmailFrom/$(EmailFrom) > EmailTo/$(EmailTo) > EmailTo/$(EmailTo) > cfpclose(pp) > cfpopen - Waiting for process 13388 > Got(to:[EMAIL > PROTECTED],serv:mailrelay.aamc.org,host:inet640.aamc.org,ip:143.220.3.160,max:20,from:) > cfpopen(/var/cfengine/bin/cfagent -z -D from_cfexecd) > cfpclose(pp) > cfpopen - Waiting for process 13390 > No schedule defined in cfagent.conf, defaulting to Min00_05 > Appending [Min00_05] > Sleeping... > Segmentation Fault (core dumped) > > > > > > Dmitry Sazonov wrote: > > > > Hello! > > > > I schedulled cfexecd to run from crontab on Solaris8/9 as in examples: > > > > 0,30 * * * * /usr/local/sbin/cfexecd -F -v > > > > but it complains (via cron email): > > > > --------------------------------------------------------------------- > > Starting server > > --------------------------------------------------------------------- > > > > No schedule defined in cfagent.conf, defaulting to Min00_05 > > ------------------------------------------------------------------ > > > > LocalExec at Tue Apr 26 16:00:03 2005 > > > > ------------------------------------------------------------------ > > > > I can tell it's not running because of the output of cfshow -s on the > > policy host > > According to docs schedule doesn't need to be defined for non-daemon > > cfexecd. > > I even defined the schedule - but it still doesn't do anything. > > The only way I can make cfagent to rung is by invoking it remotelly via > > cfservd (via cfrun) manually. > > cfagent works fine then... > > > > schedule = ( Min00_05 Min30_35 ) > > > > pkginfo -l SMCcfeng > > PKGINST: SMCcfeng > > NAME: cfengine > > CATEGORY: application > > ARCH: sparc > > VERSION: 2.1.13 > > BASEDIR: /usr/local > > VENDOR: Mark Burgess > > PSTAMP: Steve Christensen > > INSTDATE: Mar 08 2005 11:39 > > > > [EMAIL PROTECTED] inputs]# cat cfagent.conf > > # > > # $Id: cfagent.conf,v 1.8 2005/04/20 15:57:13 cfengine Exp $ > > > > groups: > > cfengine_server = ( inet640 ) > > > > control: > > > > any:: > > > > domain = ( aamc.org ) > > smtpserver = ( mailrelay.aamc.org ) > > sysadm = ( [EMAIL PROTECTED] ) > > server = ( inet640.aamc.org ) > > workdir = ( /var/cfengine ) > > configroot = ( /export/cfengine ) > > actionsequence = ( shellcommands files ) > > ChecksumUpdates = ( on ) > > ifelapsed = ( 0 ) > > Inform = ( on ) > > schedule = ( Min00_05 Min30_35 ) > > > > > > > > > > > > > > Any debbuging ideas are welcome. Thanks! > > > > > > > > > > -- Christian Pearce http://www.sysnav.com http://www.commnav.com http://www.perfectorder.com
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Help-cfengine mailing list Help-cfengine@gnu.org http://lists.gnu.org/mailman/listinfo/help-cfengine