blob: c841ff2801e1c6d8dd9aa51582e6b2705d0e63a2 (
plain)
1
2
3
4
5
6
7
8
9
|
//
// a rule expression with multiple actions and %-binding in the
// arguments for the action methods ... use some creative string
// composition for the final message
//
some_inst ( disk.dev.total > 50 )
-> syslog 10 mins "Busy disks: " "%i @ %v IOPS " &
shell 1 hour "echo 'REALLY busy disks: " "%i @ %v I/Os per second " "' | Mail -s 'pmie alarm' sysadm";
|