Operating System - HP-UX
1846847 Members
5895 Online
110256 Solutions
New Discussion

Re: cron daemon errors in syslog

 
SOLVED
Go to solution
stevegray
Frequent Advisor

cron daemon errors in syslog

I have a rx8640 running HP-UX 11.31

I added these jobs to cron:

00 20 * * 1-5 /backups/Fbackup.nightly > /backups/nightly.log 2>&1
0,10,20,30,40,50 * * * * /usr/lbin/sa/sa1
00 18 * * * find / -name core -print -exec /usr/bin/rm {} \; >/dev/null 2>&1
2 0 * * * find /var/tmp -mtime +6 -exec rm {} \;
3 0 * * * find /var/tmp -mtime +6 -exec rm -rf {} \;
00 19 * * * find / -name 'nohup.out' -exec rm {} \; 2>/dev/null

The syslog is showing the errors for the jobs I added. I just listed this sar.

Cron daemon - could not change the compartment for the job /usr/lbin/sa/sa1

What are these and how do I fix them??

Steve
5 REPLIES 5
Marco A.
Esteemed Contributor

Re: cron daemon errors in syslog

Good morning,

Due to a reference to an uninitialised variable when compartments are
not active on a HP-UX 11i v3 system you may see the following message
logged into syslog.log:

Cron daemon - could not change the compartment for the job /XXXXX

If compartments are not active you can safely ignore this message, your cron jobs will still be scheduled and run correctly.


Best regards,

Marco
Just unplug and plug in again ....
stevegray
Frequent Advisor

Re: cron daemon errors in syslog

Thank you.

Any way to find out what variables are needed?

If not how do I prevent them in the syslog?

A get one every ten minutes from sar.

Steve
Marco A.
Esteemed Contributor

Re: cron daemon errors in syslog

You don't have to worry about it, actually It's suppose to be a patch for that, was launched at the end of april, so,, please let me search the the patch database for it.

Marco
Just unplug and plug in again ....
Marco A.
Esteemed Contributor
Solution

Re: cron daemon errors in syslog

Steve,

The patch will be "crontab" but has not been launched yet, we need to wait a little bit more for that patch, apparently is under testing right now.
In this case I believe that your cron jobs are working fine, but they are logging that info to the syslog, is the syslog is making its job, so you can ignore those messages while the patch is launched.

Best regards,

Marco ...
Just unplug and plug in again ....
stevegray
Frequent Advisor

Re: cron daemon errors in syslog

I am waiting for the patch.