Disk IO report on load alert
Posted: 29 Aug 2011, 20:44
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
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