Disk IO report on load alert

Post Reply
amoon
Junior Member
Posts: 1
Joined: 29 Aug 2011, 20:02

Disk IO report on load alert

Post by amoon »

I was wondering if the developers of this fine script would consider the option of including iotop output with the other load alert reports.

A lot of times when we get load alerts it's because of disk IO and not process CPU usage, so this would really help us track things down.

I know there is a "LOAD_ACTION" value which allows you to execute a custom script on the high load event, but whenever it tries to execute I just end up getting a bunch of python errors in my messages.

My loadaction script:

#!/usr/bin/env bash
iotop -b -n1 2>&1 | mail -s "$HOSTNAME iotop output" incidents@domain.tld

//end
chirpy
Moderator
Posts: 3537
Joined: 09 Dec 2006, 18:13

Re: Disk IO report on load alert

Post by chirpy »

You really need to resolve the errors that you are seeing in your script as that is what LOAD_ACTION is for. You will need to ensure that you set the environment up correctly in your shell scripts (e.g. the PATH variable if necessary) to ensure it runs as expected.
Post Reply