Sophos Central Admin: Sophos Central Engineering will be performing routine maintenance to Sophos Central on Saturday February 1, 2020 starting at 13:00 (UTC). For more info please see KBA 133402.
This article explains how to configure processor & memory usage, disk utilization, and other resource usage history via atop output logging.
Applies to the following Sophos product(s) and version(s) Sophos UTM
Operating systems Sophos UTM, version 7, 8, 9
atop is a Linux process monitor tool which is similar to top, but provides more detailed information about the system state, as well as the ability to save its output to a file periodically so that the resource utilization of the system can be recorded and retrieved at a later time (for example, so that you can monitor utilization during rare or intermittent events without having to actively wait for them to occur).
1. Open cron
# crontab -e
2. Add the following lines
58 23 * * * killall atop 05 0 * * * rm -f /var/log/atop.log 07 0 * * * atop -w /var/log/atop.log 5
3. Save the file
The above erases the existing log & creates a new one just after midnight daily (only one day of output is stored, due to the rate at which the logfile increases - about 200mb/day). The 5 on the third line means that the output of atop is written to the log every 5 seconds. You can increase or decrease the value if necessary.
To disable logging, type crontab -e, remove all lines, and save again.
# atop -r /var/log/atop.log
Press t to move forward to the next 5 seconds, and press shift+t to move backwards.
To read only a certain time range from the log (b for beginning, e for end):
# atop -r atop.log -b 10:00 -e 11:00
To change the view:
g - Show generic output (default)
m - Show memory related output
s - Show scheduling characteristics
c - Show the command line of the process
Every comment submitted here is read (by a human) but we do not reply to specific technical questions. For technical support post a question to the community. Or click here for new feature/product improvements. Alternatively for paid/licensed products open a support ticket.