well, I think I'm getting coredump
file /root/core /root/core: ELF 32-bit MSB core file SPARC Version 1, from 'cfexecd'
-rw------- 1 root other 974536 Apr 28 12:30 /root/core which corresponds to the crontab entry 0,30 * * * * /usr/local/sbin/cfexecd -F -v -d2
-d2 output is attached!
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!
-- Dmitry Sazonov +1(202)862-6168 UNIX sysadmin, AAMC
Your "cron" job on inet640 /usr/local/sbin/cfexecd -F -v -d2
produced the following output: 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:30:01 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 --------------------------------------------------------------------- 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 12996 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 12998 No schedule defined in cfagent.conf, defaulting to Min00_05 Appending [Min00_05] ------------------------------------------------------------------ LocalExec at Thu Apr 28 12:30:02 2005 ------------------------------------------------------------------ cfpopen(/var/cfengine/bin/cfagent -Dfrom_cfexecd) cfpclose(pp) cfpopen - Waiting for process 12999 Closing fp Nothing to report in /var/cfengine/outputs/cf_inet640_aamc_org_2005-04-28--12-30-02
_______________________________________________ Help-cfengine mailing list Help-cfengine@gnu.org http://lists.gnu.org/mailman/listinfo/help-cfengine