Skip to content

blacktooth/process_stats

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Process Monitoring

Monitors Processes in Linux Machine and logs in syslog incase of threshold limitations. Threshold limits will be read from /etc/security/limits.conf file. You can learn about limits.conf file by just opening that file

For Now this utility supports cpu, rss memory and nproc

How to install

  1. Install procps and uthash libraries

Ubuntu :
apt-get install libproc-dev
apt-get install uthash-dev

  1. Pull the source code.
  2. Compile the code using command gcc -o monitor codelearnmonitor.c -lproc

Syntax

monitor Group_or_User_name

Logging

Syslog will be updated, whenever a process exceeds the limits given in arguments.

Log Format: memory_limit, cur_usage, username, command, pid

Testing

Use statwatch.c to see cpu% and memory usage of all the processes running in the machine. this is just like top command.

Installer

use insall.sh to install the utility in your Linux Machine

sudo sh install.sh

After installation you can use "monitor" utility to start monitoring the processes.

About

Monitors Processes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published