pt-stalk can't do "less-than" thresholds
Bug #1049148 reported by
Baron Schwartz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
Triaged
|
Undecided
|
Unassigned |
Bug Description
I want to set up pt-stalk to trigger when there is too little disk space left, say, 200MB. I have had to write it as a trigger against "greater than disk-size minus 200MB" instead. Servers have different disk sizes, so this is somewhat tedious. It would be easier to set up if I could just say "less than 200MB" instead.
To post a comment you must log in.
Can you set --threshold=0, then ignore the var in a custom --function script, and in that custom script return 1 if the disk space is < whatever, else return 0? I.e. handle all logic in the custom script and use the [value -gt THRESHOLD] in the tool in a hackish way?