106 |
+[Install] |
+[Install] |
107 |
+WantedBy= sme-server.target |
+WantedBy= sme-server.target |
108 |
+ |
+ |
109 |
|
diff -urN smeserver-sysmon-6.5.old/root/usr/sbin/sysmon smeserver-sysmon-6.5/root/usr/sbin/sysmon |
110 |
|
--- smeserver-sysmon-6.5.old/root/usr/sbin/sysmon 2022-08-15 20:46:06.186627886 +1000 |
111 |
|
+++ smeserver-sysmon-6.5/root/usr/sbin/sysmon 2022-08-15 20:46:32.897160735 +1000 |
112 |
|
@@ -74,7 +74,7 @@ |
113 |
|
{ |
114 |
|
`/usr/lib64/sa/sadc 1 1 /var/lib/rrd/sysmon.process > /dev/null 2>&1; /usr/lib64/sa/sadc 1 1 /var/lib/rrd/sysmon.stats > /dev/null 2>&1`;} |
115 |
|
my @sardata; |
116 |
|
- if ( -x '/usr/bin/sadf' ) { @sardata=`/usr/bin/sadf -- -qrbuS -n DEV /var/lib/rrd/sysmon.process 2> /dev/null`; }# sadf |
117 |
|
+ if ( -x '/usr/bin/sadf' ) { @sardata=`/usr/bin/sadf -U -- -qrbuS -n DEV /var/lib/rrd/sysmon.process 2> /dev/null`; }# sadf |
118 |
|
else { @sardata = `/usr/bin/sar -hqruS -P ALL -n DEV -f /var/lib/rrd/sysmon.process 2> /dev/null`; }# old systat |
119 |
|
unlink("/var/lib/rrd/sysmon.process"); |
120 |
|
|