LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 03-20-2021, 09:54 AM   #1
Sheriff Hobbes
LQ Newbie
 
Registered: Nov 2010
Location: Germany (DDR 4.0)
Distribution: Debian 11
Posts: 24

Rep: Reputation: 5
How to silence sysstat-collect.service?


Good afternoon!

The sar tool collects load values every 10 minutes on my Oracle Linux 8.3 via the service sysstat-collect.service. It fills /var/log/messages with

Quote:
systemd[1]: sysstat-collect.service: Succeeded.
systemd[1]: Started system activity accounting tool.
every 10 minutes. That's annoying, I want to silence it. I've already tried three possible solutions which did not work:

1. Adding the override
Code:
[Service]
StandardOutput=null
to the systemd unit

2. Adding the override
Code:
[Service]
LogLevelMax=warning
to the systemd unit

3. Changing the command to
Code:
ExecStart=/bin/sh -c '/usr/lib64/sa/sa1 1 1 > /var/log/sysstat-collect'
in the systemd unit

Any ideas?

Thanks,
SH
 
Old 03-21-2021, 11:55 PM   #2
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 762

Rep: Reputation: 487Reputation: 487Reputation: 487Reputation: 487Reputation: 487
Is it even possible to start or run anything without it being registered in a log file?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sysstat output (using sar) cabloy Linux - Software 2 04-27-2010 04:10 AM
Sysstat drops a message in /var/log/messages every 10 minutes... how to stop this? zan_messengrr Linux - General 2 11-15-2006 09:40 AM
LXer: How To Monitor A System With Sysstat On Centos 4.3 LXer Syndicated Linux News 0 08-20-2006 08:21 PM
SLES9 sysstat package fails when using interval and count parms dasny SUSE / openSUSE 0 06-21-2006 12:14 PM
problems after updating sysstat kodiakmook Linux - General 1 01-10-2002 07:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 01:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration