pt-stalk spams warning if oprofile isn't installed

Bug #882918 reported by Fernando Ipar
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Fix Released
Medium
Daniel Nichter

Bug Description

This is just an inconvenience, but if oprofile is not installed on a system or /var/lib/oprofile doesn't exist, pt-stalk will print out warnings for every iteration, such as this:

2011_10_28_06_13_41 check results: Threads_connected = 1, matched = no, cycles_true = 0
find: /var/lib/oprofile/samples: No such file or directory

This doesn't affect behavior but it is an inconvenient and can be easily solved by discarding stderr on that cleanup 'find' command, as the attached patch does.

Tags: pt-stalk spam
Revision history for this message
Fernando Ipar (fipar) wrote :
summary: - on pt-stalk, 'find' produces an error message when oprofile not
- installed
+ pt-stalk spams warning if oprofile isn't installed
tags: added: spam
Changed in percona-toolkit:
importance: Undecided → Medium
Revision history for this message
Daniel Nichter (daniel-nichter) wrote :

From bug 824725:

Another warning I get is:
find: warning: you have specified the -depth option after a non-option argument -type, but options are not positional (-depth affects tests specified before it as well as those specified after it). Please specify options before other arguments.

Changed in percona-toolkit:
milestone: none → 2.0-beta2
Revision history for this message
Daniel Nichter (daniel-nichter) wrote :
Changed in percona-toolkit:
status: New → Fix Committed
assignee: nobody → Daniel Nichter (daniel-nichter)
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-428

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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