book graphic unix and linux troubleshooting guide

My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!







Best of the Newsgroups: dlvr_audit processes cron


What is this stuff?

If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):



From: Bela Lubkin <belal@sco.com>
Subject: Re: My cron is crazy
Date: Tue, 4 May 2004 20:55:41 GMT Message-ID: <20040504205541.GD10272@sco.com> References: <4097C3BE.9060504@cricsa.com>


Hate these ads?



MichelK wrote:



> Compaq box Proliant 1600 +Openserver 5.05 +EFS5.21 +rs505a since end 
> 1998, no physical change.
> 2 month ago I realized cron was "out". especialy nomore backup 
> (shellscript using cpio in cron)
> there was a lot of /etc/cron processes running when I typed "ps -elf"
> futhermore I noticed many dlvr_audit foreach cron process.

> I never activated audit subsystem.
> I didn't find any special thing in /usr/adm/messages nor /usr/adm/syslog

> then I have installed:
> oss459b
> oss497c
> oss600a
> oss642a
> oss644b

> And rebooted the SCO.

> Manually cpio works fine, and during first month cron was OK, backup too.

> Today I am surprised finding the same cron process multiplication in ps 
> output.(a total of 326 processes when adding /etc/cron and dlvr_audit).

> What can I do ?














This problem is caused by the file /tcb/files/audit/audit_dmninfo.  This
file is automatically created at boot time.  It should only exist if you
are using kernel auditing (which you say you are not), but some systems
mistakenly create it anyway.



When the file is absent, `dlvr_audit` exits early without doing much of
anything.  When it is present, it attempts to write auditing messages
down a message queue.  Nothing is reading that message queue, which is
why your system is full of stuck `dlvr_audit` processes.



To repair the system without rebooting again: first remove the file
/tcb/files/audit/audit_dmninfo; second, kill all processes running
`dlvr_audit`.


M3IP inc.



Before you do this, however, there is a consequence that you should be
aware of.  Your system is filled with `cron` children which have been
forked to run various tasks, but got stuck waiting for `dlvr_audit` to
complete.  If you kill the `dlvr_audit` processes, each of those `cron`
processes will wake up and continue with what it was originally trying
to do.  In effect, you will have a sudden "storm" of old cron jobs all
waking up and doing their tasks.



You know better than we do what sort of cron jobs you're running.  It
may be that there would be no problem.  It may be that it would cause a
huge mess.  (You mention backups -- if the backup script does not have a
mechanism for preventing itself from doing two backups at once, that
would be a huge mess...)



A `proctree -a cron` on your system probably looks something like this:









  UID        PID TTY  ARGS
  root         1 ?    /etc/init -a
  \>root       214 ?    /etc/cron
    }>root      6344 ?    /etc/cron
    | \>root      6345 ?    dlvr_audit
    }>root      6456 ?    /etc/cron
    | \>root      6457 ?    dlvr_audit
    .
    .
    .
    \>root      9998 ?    /etc/cron
      \>root      9999 ?    dlvr_audit



(ftp://ftp.armory.com/pub/scripts/proctree)



If you killed processes 6345, 6457 and 9999, then the cron jobs under
processes 6344, 6456 and 9998 would continue.  You may not want to do
that.  You may want to _first_ kill the child `cron` processes 6344,
6456 and 9998; _then_ kill the child `dlvr_audit` processes 6345, 6457
and 9999.



Alternatively, you could reboot.  After rebooting, verify that
/tcb/files/audit/audit_dmninfo has not reappeared; delete it if it has.



>Bela<








Comments
NewsPost2464 :

About two weeks ago, my Sco server began dong the exact same thing: creating the audit_dmninfo file and spawning hundreds of instances of the Cron daemon and dlvr_audit. Restarting the server clears up the processes but also recreates the audit_dmninfo file. How do I determine what is creating this file??? Any help would be greatly appreciated.


--

If you don't have auditing turned on, just put a script in /etc/rc2.d/S99killaudit that rm's it.

Reminder: this is not a support bulletin board. Don't expect answers here. See http://aplawrence.com/answers.html


--
TonyLawrence


Click here to add your comments


Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)

Or use any RSS reader

Delivered by FeedBurner


Views for this page
Today This Week This Month This Year  Overall
1788 435

/Bofcusm/2464.html copyright 1997-2004 Bela Lubkin All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

More:
       - Bela




Unix/Linux Consultants


http://thatitguy.com Business networking servers, Linux and Unix experts. In business since 1997! Windows and Exchange to Samba and Scalix migration experts.


http://www.schewanick.com SCO Unix, Solaris, Linx (various), PHP, MySQL, Apache, uniBasic, dL4, Perl, System Administration and more....


http://www.breakthru.com.au SCO (Openserver and Unixware), Unix, Solaris and Linux Consulting services including: Secure Networking Solutions; Linux based Firewalls; Backup Solutions; Secure Home to Office Network Setup; Phone, Remote and On-Site Support available - Satisfaction Guaranteed!



Twitter
o Aaargh, I need coffee. The tea was nice, but it just doesn't do the deed. 9:50 AM Nov 9th 2008




card_image







Change Congress