sar does not log when two instances(sa1 and sa2) are executed

Solution Verified - Updated -

Issue

  • When /usr/lib64/sa/sa1 and sa2 are executed by using crond service on our customer's system, /var/log/sa/sarXX is not created.
  • /etc/cron.d/sysstat is as follows:
 0-59/1 * * * * root /usr/lib64/sa/sa1 1 1    <== Execute sa1 in one minute interval.
 53 23 * * * root /usr/lib64/sa/sa2 -A

[/var/log/sa in sosreport]

 drwxr-xr-x. 4 root root 4096 Sep 13 11:04 .
 drwxr-xr-x. 6 root root 4096 Sep 13 11:04 ..
 drwxr-xr-x. 2 root root 4096 Sep 13 11:04 201308
 drwxr-xr-x. 2 root root 4096 Sep 13 11:04 201309
 lrwxrwxrwx. 1 root root   11 Sep 20 13:12 sa01 -> 201309/sa01
 lrwxrwxrwx. 1 root root   11 Sep 20 13:12 sa02 -> 201309/sa02
 lrwxrwxrwx. 1 root root   11 Sep 20 13:12 sa03 -> 201309/sa03
 lrwxrwxrwx. 1 root root   11 Sep 20 13:12 sa04 -> 201309/sa04
 lrwxrwxrwx. 1 root root   11 Sep 20 13:12 sa05 -> 201309/sa05
 lrwxrwxrwx. 1 root root   11 Sep 20 13:12 sa06 -> 201309/sa06
 lrwxrwxrwx. 1 root root   11 Sep 20 13:12 sa07 -> 201309/sa07
 lrwxrwxrwx. 1 root root   11 Sep 20 13:12 sa08 -> 201309/sa08
 lrwxrwxrwx. 1 root root   11 Sep 20 13:12 sa09 -> 201309/sa09
 lrwxrwxrwx. 1 root root   11 Sep 20 13:12 sa10 -> 201309/sa10
 lrwxrwxrwx. 1 root root   11 Sep 20 13:12 sa11 -> 201309/sa11  <=== sa11 exists.
 lrwxrwxrwx. 1 root root   11 Sep 20 13:12 sa12 -> 201309/sa12
 lrwxrwxrwx. 1 root root   11 Sep 20 13:12 sa13 -> 201309/sa13
 lrwxrwxrwx. 1 root root   12 Sep 20 13:12 sar01 -> 201309/sar01
 lrwxrwxrwx. 1 root root   12 Sep 20 13:12 sar02 -> 201309/sar02
 lrwxrwxrwx. 1 root root   12 Sep 20 13:12 sar03 -> 201309/sar03
 lrwxrwxrwx. 1 root root   12 Sep 20 13:12 sar04 -> 201309/sar04
 lrwxrwxrwx. 1 root root   12 Sep 20 13:12 sar05 -> 201309/sar05
 lrwxrwxrwx. 1 root root   12 Sep 20 13:12 sar07 -> 201309/sar07
 lrwxrwxrwx. 1 root root   12 Sep 20 13:12 sar08 -> 201309/sar08
 lrwxrwxrwx. 1 root root   12 Sep 20 13:12 sar09 -> 201309/sar09
 lrwxrwxrwx. 1 root root   12 Sep 20 13:12 sar10 -> 201309/sar10
 lrwxrwxrwx. 1 root root   12 Sep 20 13:12 sar12 -> 201309/sar12  <=== sar11 doesn't exist.

[/var/log/sa/201309 in sosreport]

 drwxr-xr-x. 2 root root    4096 Sep 13 11:04 .
 drwxr-xr-x. 4 root root    4096 Sep 13 11:04 ..
 -rw-r--r--. 1 root root 4896468 Sep 13 11:04 sa01
 -rw-r--r--. 1 root root 4896468 Sep 13 11:04 sa02
 -rw-r--r--. 1 root root 4896468 Sep 13 11:04 sa03
 -rw-r--r--. 1 root root 4896468 Sep 13 11:04 sa04
 -rw-r--r--. 1 root root 4896468 Sep 13 11:04 sa05
 -rw-r--r--. 1 root root 4896468 Sep 13 11:04 sa06
 -rw-r--r--. 1 root root 4896468 Sep 13 11:04 sa07
 -rw-r--r--. 1 root root 4896468 Sep 13 11:04 sa08
 -rw-r--r--. 1 root root 4896468 Sep 13 11:04 sa09
 -rw-r--r--. 1 root root 4896468 Sep 13 11:04 sa10
 -rw-r--r--. 1 root root 4896468 Sep 13 11:04 sa11  <=== sa11 exists.
 -rw-r--r--. 1 root root 4896468 Sep 13 11:04 sa12
 -rw-r--r--. 1 root root 2261468 Sep 13 11:04 sa13
 -rw-r--r--. 1 root root 4973514 Sep 13 11:04 sar01
 -rw-r--r--. 1 root root 4973514 Sep 13 11:04 sar02
 -rw-r--r--. 1 root root 4973514 Sep 13 11:04 sar03
 -rw-r--r--. 1 root root 4973514 Sep 13 11:04 sar04
 -rw-r--r--. 1 root root 4973514 Sep 13 11:04 sar05
 -rw-r--r--. 1 root root 4973514 Sep 13 11:04 sar07
 -rw-r--r--. 1 root root 4973514 Sep 13 11:04 sar08
 -rw-r--r--. 1 root root 4973514 Sep 13 11:04 sar09
 -rw-r--r--. 1 root root 4973514 Sep 13 11:04 sar10
 -rw-r--r--. 1 root root 4973514 Sep 13 11:04 sar12  <=== sar11 doesn't exist.

Environment

  • Red Hat Enterprise Linux 6 Update 3 GA
  • Package Version: sysstat-9.0.4-20.el6.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content