Archive

Posts Tagged ‘process’

How to find what process are using Swap

July 23rd, 2015 No comments

How to find what process are using Swap

/proc/meminfo – This file reports statistics about memory usage on the system. It is used by free to report the amount of free and used memory (both physical and swap) on the system as well as the shared memory and buffers used by the kernel. You can also use free, vmstat and other tools to find out the same information.

Read more…

Categories: Linux Tags: , ,

check process uptime

December 10th, 2014 1 comment

Simple script to get any linux process uptime.
It could have been done using the /proc/PID too.

Here is the code:

Read more…

Categories: Nagios, plugins Tags: , , , ,

script to monitor cpu usage by process

March 12th, 2014 1 comment

A bash script to get the CPU usage by process
usage:
nohup ./check_proc bwengine 70 &

bwegnine is the process name we want to monitor
70 is to log only when the process is using over 70% of the CPU.

Read more…

Categories: BashScripts Tags: , , , ,