pt-stalk can't do "less-than" thresholds

Reported by Baron Schwartz on 2012-09-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit
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.

Daniel Nichter (daniel-nichter) wrote :

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?

Changed in percona-toolkit:
status: New → Triaged
Baron Schwartz (baron-xaprb) wrote :

No, because then I still have to customize the plugin on every server I deploy against. The only workable workaround I can think of is to negate the number and set the threshold to -200MB.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers