This script monitors the process table, providing useful information about processes running on a system. Users can view information about CPU usage, memory consumption, and other vital details. The script is designed to be simple and easy to use, making it a valuable tool for anyone who needs to monitor system performance.
One of the features of Psmon is that processes can be respawned if a spawn command has been defined, and there are no occurrences of that process currently running. Using the --user command line option, users can specify a unique ID, and the process will only be spawned if there are no instances of the process running as that specified user ID.
The software also enables users to kill off processes that have been running for too long, using too much CPU or memory resources, or those that have too many concurrent versions running. However, exceptions can be made using the PIDFile and LastSafePID directives, which prevent users from killing certain rulesets. For instance, if a PID file is declared for a process, Psmon will never kill the process ID contained within the PID file. It's a handy feature if users have hundreds of child processes to kill, but they don't want to kill the parent process.
All actions performed by Psmon are logged to the DAEMON syslog facility by default, and users can also receive notifications via email on a global or pre-rule basis. The software's syntax is pretty straightforward, with various commands such as --help, --version, --dryrun, --daemon, --cron, --conf, --user, --nouser, --adminemail, and --verbose available to users.
Lastly, several examples are provided to enable users to optimize their usage of this software tool. For instance, the SIngle user account crontab operation that calls the daemon every 5 minutes is indicated as follows: MAILTO="[email protected]", HOME=/home/nicolaw, USER=nicolaw, */5 * * * * psmon --daemon --cron --conf=$HOME/etc/psmon.conf --user=$USER --adminemail=$MAILTO. Also, there's an example for checking processes during office hours: * 9-17 * * * psmon.
In conclusion, Psmon is an impressive software tool that guarantees optimal performance when monitoring processes. Its features are user-friendly, and the software's usage is flexible.
Version 1.29: N/A