1 |
unnilennium |
1.2 |
--- smeserver-sme8admin-1.3/root/usr/bin/sme8admind.64bits 2012-07-18 11:19:41.000000000 -0400 |
2 |
|
|
+++ smeserver-sme8admin-1.3/root/usr/bin/sme8admind 2012-07-18 11:27:29.000000000 -0400 |
3 |
unnilennium |
1.1 |
@@ -961,7 +961,10 @@ |
4 |
|
|
($mem_membuffers,$mem_memcache,$mem_swaptotal,$mem_swapused,$mem_swapfree)=('U','U','U','U','U'); |
5 |
|
|
|
6 |
|
|
rename("$rrddir/sadc.bck","$rrddir/sadc.out"); |
7 |
|
|
- `/usr/lib/sa/sadc 1 1 $rrddir/sadc.out; /usr/lib/sa/sadc 1 1 $rrddir/sadc.bck`; |
8 |
|
|
+ if ( -x '/usr/lib/sa/sadc' ) { |
9 |
|
|
+ `/usr/lib/sa/sadc 1 1 $rrddir/sadc.out; /usr/lib/sa/sadc 1 1 $rrddir/sadc.bck`;} |
10 |
|
|
+ else |
11 |
|
|
+ {`/usr/lib64/sa/sadc 1 1 $rrddir/sadc.out; /usr/lib64/sa/sadc 1 1 $rrddir/sadc.bck`;} |
12 |
|
|
# small change to support sysstat > 5.1 |
13 |
|
|
my @sardata; |
14 |
|
|
if ( -x '/usr/bin/sadf' ) { @sardata=`/usr/bin/sadf -- -qrbu -n DEV $rrddir/sadc.out`; } |