pt-collect: line 24: [: : integer expression expected

Bug #838211 reported by Daniel Nichter
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
Daniel Nichter

Bug Description

Running pt-collect with just the required options causes the error "pt-collect: line 24: [: : integer expression expected". Line 24 is:

   if [ "${avail}" -le "${MB}" -o "${full}" -ge "${PCT}" ]; then

This happens because MB and/or PCT are empty strings.

Tags: pt-collect

Related branches

Changed in percona-toolkit:
status: New → In Progress
status: In Progress → Fix Committed
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-416

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.