summaryrefslogtreecommitdiff
path: root/src/pmie/examples/uag.20
blob: 475017c4bbd7ad5cd827707567a96e7b33d12766 (plain)
1
2
3
4
5
6
7
//
// a rule expression with multiple actions and %-binding in the
// arguments for the action methods
//
some_inst ( disk.dev.total > 60 )
    -> syslog 10 mins "[%i] busy, %v IOPS " &
       shell 1 hour "echo 'Disk %i is REALLY busy. Running at %v I/Os per second' | Mail -s 'pmie alarm' sysadm";