From a7b45cbbf3560b487848269cb04ef685fdcea335 Mon Sep 17 00:00:00 2001 From: Razvan Deaconescu Date: Fri, 19 Nov 2010 21:23:57 +0200 Subject: [PATCH] ControlScripts: add draft monitor hook Comments point out tools to be used for monitoring. To be filled. --- ControlScripts/hook_monitor_pid.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ControlScripts/hook_monitor_pid.sh diff --git a/ControlScripts/hook_monitor_pid.sh b/ControlScripts/hook_monitor_pid.sh new file mode 100644 index 0000000..14269d4 --- /dev/null +++ b/ControlScripts/hook_monitor_pid.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# +# monitor process characteristics using systat and iptables +# +# 2010, Razvan Deaconescu, razvan.deaconescu@cs.pub.ro +# + +# per-process processor, disk and memory usage +# pidstat + +# per-system +# iostat (processor & disk usage), free -s 1 (memory usage) + +# per-process network bandwidth usage +# iptables + +# per-system +# /sys/class/net/$iface/statistics/{tx,rx}_bytes (C app for periodic checks) -- 2.20.1