pt-stalk fails when variable or threshold is non-integer

Bug #1335322 reported by Frank Cizmich
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Fix Released
Medium
Frank Cizmich

Bug Description

command:
pt-stalk --variable=Slave_heartbeat_period --password=pass

output:
2014_06_27_17_36_14 Starting /usr/bin/pt-stalk --function=status --variable=Slave_heartbeat_period --threshold=25 --match= --cycles=5 --interval=1 --iterations= --run-time=30 --sleep=300 --dest=/var/lib/pt-stalk --prefix= --notify-by-email= --log=/var/log/pt-stalk.log --pid=/var/run/pt-stalk.pid --plugin=
/usr/bin/pt-stalk: line 1254: [: 0.000: integer expression expected
/usr/bin/pt-stalk: line 1254: [: 0.000: integer expression expected
/usr/bin/pt-stalk: line 1254: [: 0.000: integer expression expected

Tags: pt-stalk

Related branches

Revision history for this message
Frank Cizmich (frank-cizmich) wrote :
description: updated
Revision history for this message
Frank Cizmich (frank-cizmich) wrote :

Bash doesn't handle floating point. Used awk instead.

Changed in percona-toolkit:
status: Fix Committed → Fix Released
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-651

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.