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

Bug #1049148 reported by Baron Schwartz
6
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.

Tags: pt-stalk
Revision history for this message
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
Revision history for this message
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.

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PT-1022

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.