Introduction
You may have a reoccurring issue on your server, and you wish to know exactly what processes were running, and who owned them at a specific time. On GitHub, there is a script available, sys-snap.pl
, that collects and display this information to you. It works on a rolling 24-hour loop, so only the last 24 hours are available. The article describes how to install, start, and stop the sys-snap
script.
Please note that cPanel's Technical Support cannot assist in the installation or usage of the script. For those unfamiliar with using scripts via the command line, you may want a qualified systems administrator to review the logs.
Procedure
To install the script
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Run the following command to install and start the script.
wget -O /root/sys-snap.pl https://raw.githubusercontent.com/cPanelTechs/SysSnapv2/master/sys-snap.pl && cd /root/ && chmod 744 sys-snap.pl && perl sys-snap.pl --start
To start the script
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Run the following command.
perl /root/sys-snap.pl --start
To stop the script
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Run the following command.
perl /root/sys-snap.pl --stop
Comments
0 comments
Article is closed for comments.