LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-05-2019, 05:55 AM   #1
Boggle247
LQ Newbie
 
Registered: Sep 2018
Distribution: Ever changing
Posts: 15

Rep: Reputation: Disabled
Check log of actions the machine has performed? (NUC nextcloud server on Debian 10)


I'm running nextcloud (only I access it), and emby media server (again, only I access this). Yet sometimes when I'm not using it, I here the hard drive clicking as though it's reading or writing. Idk what it would be. Maybe backups but I have that set to once a week, and I hear noises nearly everyday even though I'm not using it.

Is there any log I can check to see what actions have been happening on the machine? So I can figure out what is reading and rewriting to the drive?
 
Old 11-05-2019, 08:32 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
There are many background processes running on a Linux system (not different from Windows or any other OS, actually). I am sure Nextcloud and Emby also perform many tasks autonomously. It's quite normal to have occasional disk activity, even when you don't use them.

If you are worried, you could switch on auditing and measure all I/O-related system calls. I would start with read() and write(). Be prepared for an avalanche of data, though.
 
Old 11-05-2019, 11:20 AM   #3
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
In my list of bookmarks, I have this https://www.eurovps.com/blog/importa...be-monitoring/
 
Old 11-05-2019, 10:50 PM   #4
Boggle247
LQ Newbie
 
Registered: Sep 2018
Distribution: Ever changing
Posts: 15

Original Poster
Rep: Reputation: Disabled
@berndbausch how about from a security standpoint, is there a log of attempted and successful external connections to my machine, from outside my LAN?
 
Old 11-05-2019, 11:09 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
All these logs you are so keen to check - how do you figure they make it onto the disk(s) ?.
 
Old 11-05-2019, 11:24 PM   #6
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by berndbausch View Post
I would start with read() and write(). Be prepared for an avalanche of data, though.
Oy! I would start with open() and close(). Then dig deeper once you figure what files are being accessed. Even that's overkill.

To the OP: Just because you're not doing anything on the system, the system itself is dealing with housekeeping tasks at all sorts of odd hours as defined in root's crontab or the cron* directories under /etc.

Cheers...
 
Old 11-06-2019, 01:53 AM   #7
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by Boggle247 View Post
@berndbausch how about from a security standpoint, is there a log of attempted and successful external connections to my machine, from outside my LAN?
There is a log of attempted and successful/unsuccessful logins (might be /var/log/auth.log on Debian; /var/log/secure on Centos/RHEL), but as far as I know, not generally connections.

I could imagine that you could create your own log with a smart iptables script, but perhaps you should look into an intrusion detection system like Snort.

Or you create firewall rules that block any connection attempts from external IP addresses.
 
Old 11-06-2019, 01:55 AM   #8
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by rnturn View Post
Oy! I would start with open() and close(). Then dig deeper once you figure what files are being accessed. Even that's overkill.
You have a point. To my defense, I think I have the right to be a lazy thinker and to let OP hammer out the details.
 
Old 11-06-2019, 02:07 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Boggle247 View Post
I'm running nextcloud and emby media server
Good luck troubleshooting these two applications and what they are accessing.
I think emby isn't even open source? And nextcloud is a multi-purpose monster... makes me wonder why you need a separate media server... anyhow:
I think it's normal, not likely to be a security problem or any problem at all.
Just to check I put an ear to my media server and it's whirring and clicking though I'm not using it atm.
 
  


Reply

Tags
apache, debian 10, log, server



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
[SOLVED] How to find out the last actions performed on a computer Auguria Linux - Security 6 12-15-2015 04:15 PM
LXer: Intel's NUC, NVIDIA, Debian Drew In Lots Of Linux Interest LXer Syndicated Linux News 0 03-03-2014 03:20 PM
Check if actions in bash shell script are performed well proNick Linux - Newbie 6 02-09-2009 07:25 PM
How to send mails automatically when cvs check-in is performed ? deepugopi Linux - Server 6 09-19-2007 01:37 PM
What is the most important task that should be performed on the Unix server? thatgentleman Linux - General 7 03-23-2002 09:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:07 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