Problem
I have a system that reports the following messages every ten minutes in both syslog & osmlog:
Dec 22 17:00:00 server sendmail[6217]: iBMH00M06217: from=sys, size=319,class=0, nrcpts=1, msgid=< 200412221700.iBMH00M06217@ <mailto:200412221700.iBMH00M06217@> >, relay=sys@localhost <mailto:relay=sys@localhost> Dec 22 17:00:00 server sendmail[6219]: iBMH00M06217: to=sys,ctladdr=sys (3/3), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=120319, dsn=2.0.0, stat=Sent
sar is working fine but I get the following error message
in the mailbox for "sys" in /var/mail/sys:From sys Mon Oct 18 13:40:00 2004 Subject: Output from "cron" command Your "cron" job /usr/lib/sa/sa1 produced the following output: sadc: Error opening output. File:'sadc.c', line:219
Solution
Please run the following command:# /sbin/metregto see if it clears the problem.
If it does not please try:Removing all existing sar statistics (or move them aside temporarily if you want to retain the data) using:
# rm /var/adm/sa/*In addition, check the permissions on the following files:
/var
/var/adm
/var/adm/sa
/var/adm/sa/sa*as:# l -d /var /var/adm /var/adm/sa /var/adm/sa/sa*
drwxrwxr-x 23 root sys 1024 Apr 26 2002
/var
drwxrwxr-x 8 root sys 1024 Jan 5 14:54
/var/adm
drwxrwxr-x 2 adm sys 1024 Jan 5 18:05
/var/adm/sa
-rw-rw-rw- 1 sys sys 180364 Jan 4 18:00
/var/adm/sa/sa04
-rw-rw-rw- 1 sys sys 142136 Jan 5 18:00
/var/adm/sa/sa05
-rw-rw-rw- 1 sys sys 73656 Dec 28 22:32
/var/adm/sa/sa28
-rw-rw-rw- 1 sys sys 633300 Dec 29 18:00
/var/adm/sa/sa29
-rw-rw-rw- 1 sys sys 375980 Dec 30 12:20
/var/adm/sa/sa30
-rw-r--r-- 1 sys sys 28908 Jan 4 18:05
/var/adm/sa/sar04
-rw-r--r-- 1 sys sys 26951 Jan 5 18:05
/var/adm/sa/sar05NOTE: If additional sar files are created subsequently, case check to
ensure in the "root" file in /var/spool/cron/crontabs that there
isn't a duplicate of the "sys" files entries there:0 * * * 0-6 $TFADMIN /usr/lib/sa/sa1 20,40 8-17 * * 1-5 $TFADMIN /usr/lib/sa/sa1 5 18 * * 1-5 $TFADMIN /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A
See also
TA126325 "sadc: Error opening metric registration file. File:'sadc.c', line:206"
TA126033 "I get "mas_open: MAS_SANITY nlocs corrupted" when running "mpstat" or "rtpm" on a SCO OpenServer 6.0.0 SMP system"