~bisscuitt/percona-monitoring-plugins/lsof_find

« back to all changes in this revision

Viewing changes to cacti/scripts/ss_get_mysql_stats.php

  • Committer: Roman Vynar
  • Date: 2014-02-28 10:44:25 UTC
  • Revision ID: roman.vynar@percona.com-20140228104425-xv8y4lcnfrg6rq80
Fix for bug #1285888 ss_get_mysql_stats and MariaDB does not use have_response_time_distribution

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
   'master'  => true,    # Do you want to check binary logging?
49
49
   'slave'   => true,    # Do you want to check slave status?
50
50
   'procs'   => true,    # Do you want to check SHOW PROCESSLIST?
51
 
   'get_qrt' => true,    # Get query response times from Percona Server?
 
51
   'get_qrt' => true,    # Get query response times from Percona Server or MariaDB?
52
52
);
53
53
 
54
54
$use_ss    = FALSE; # Whether to use the script server or not
480
480
      $istatus_text = $result[0]['Status'];
481
481
      $istatus_vals = get_innodb_array($istatus_text);
482
482
 
483
 
      # Get response time histogram from Percona Server if enabled.
 
483
      # Get response time histogram from Percona Server or MariaDB if enabled.
484
484
      if ( $chk_options['get_qrt']
485
 
           && isset($status['have_response_time_distribution'])
486
 
           &&      ($status['have_response_time_distribution'] == 'YES'))
 
485
           && (( isset($status['have_response_time_distribution'])
 
486
           && $status['have_response_time_distribution'] == 'YES')
 
487
           || (isset($status['query_response_time_stats'])
 
488
           && $status['query_response_time_stats'] == 'ON')) )
487
489
      {
488
490
         debug('Getting query time histogram');
489
491
         $i = 0;