Not a Bug
Details
Assignee
UnassignedUnassignedReporter
lpjirasynclpjirasync(Deactivated)Priority
LowLabels
Details
Details
Assignee
Unassigned
UnassignedReporter
lpjirasync
lpjirasync(Deactivated)Priority
Labels
Smart Checklist
Smart Checklist
Smart Checklist
Created January 24, 2018 at 6:10 PM
Updated February 4, 2018 at 1:53 AM
Resolved January 24, 2018 at 6:10 PM
**Reported in Launchpad by Fernando Ipar last update 10-11-2012 14:30:21
If the credentials for pt-collect are wrong, pt-stalk outputs an error, but still triggers pt-collect.
This is wrong, as pt-collect is unable to measure whatever variable is being monitored without mysql access.
Besides the bug, a feature request would be that pt-stalk fails upfront if mysql access doesn't work, or more generically, if it can't check it's condition against the threshold.
Here's a sample output from running with no mysql access:
[root@localhost ~]# ./pt-stalk
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
2011_12_05_21_26_38 The detected value is empty; something failed? Exit status is 0
2011_12_05_21_26_38 check results: Threads_connected = , matched = yes, cycles_true = 1
Gathering info for 2011_12_05_21_26_38
2011_12_05_21_26_38 sleeping 300 seconds to avoid DOS attack