diff --git a/html/includes/graphs/application/mysql_command_counters.inc.php b/html/includes/graphs/application/mysql_command_counters.inc.php new file mode 100644 index 0000000000..38a2df1077 --- /dev/null +++ b/html/includes/graphs/application/mysql_command_counters.inc.php @@ -0,0 +1,69 @@ + diff --git a/html/includes/graphs/application/mysql_connections.inc.php b/html/includes/graphs/application/mysql_connections.inc.php new file mode 100644 index 0000000000..4ec7fc3515 --- /dev/null +++ b/html/includes/graphs/application/mysql_connections.inc.php @@ -0,0 +1,51 @@ + diff --git a/html/includes/graphs/application/mysql_files_tables.inc.php b/html/includes/graphs/application/mysql_files_tables.inc.php new file mode 100644 index 0000000000..bbba4f3173 --- /dev/null +++ b/html/includes/graphs/application/mysql_files_tables.inc.php @@ -0,0 +1,39 @@ + diff --git a/html/includes/graphs/application/mysql_innodb_buffer_pool.inc.php b/html/includes/graphs/application/mysql_innodb_buffer_pool.inc.php new file mode 100644 index 0000000000..507bbae3bb --- /dev/null +++ b/html/includes/graphs/application/mysql_innodb_buffer_pool.inc.php @@ -0,0 +1,39 @@ + diff --git a/html/includes/graphs/application/mysql_innodb_buffer_pool_activity.inc.php b/html/includes/graphs/application/mysql_innodb_buffer_pool_activity.inc.php new file mode 100644 index 0000000000..9d96f7a7f0 --- /dev/null +++ b/html/includes/graphs/application/mysql_innodb_buffer_pool_activity.inc.php @@ -0,0 +1,37 @@ + diff --git a/html/includes/graphs/application/mysql_innodb_insert_buffer.inc.php b/html/includes/graphs/application/mysql_innodb_insert_buffer.inc.php new file mode 100644 index 0000000000..f7ad6de059 --- /dev/null +++ b/html/includes/graphs/application/mysql_innodb_insert_buffer.inc.php @@ -0,0 +1,32 @@ + diff --git a/html/includes/graphs/application/mysql_innodb_io.inc.php b/html/includes/graphs/application/mysql_innodb_io.inc.php new file mode 100644 index 0000000000..bb9f44bc75 --- /dev/null +++ b/html/includes/graphs/application/mysql_innodb_io.inc.php @@ -0,0 +1,38 @@ + diff --git a/html/includes/graphs/application/mysql_innodb_io_pending.inc.php b/html/includes/graphs/application/mysql_innodb_io_pending.inc.php new file mode 100644 index 0000000000..fe59ee63bc --- /dev/null +++ b/html/includes/graphs/application/mysql_innodb_io_pending.inc.php @@ -0,0 +1,55 @@ + diff --git a/html/includes/graphs/application/mysql_innodb_log.inc.php b/html/includes/graphs/application/mysql_innodb_log.inc.php new file mode 100644 index 0000000000..4d83f2154b --- /dev/null +++ b/html/includes/graphs/application/mysql_innodb_log.inc.php @@ -0,0 +1,32 @@ + diff --git a/html/includes/graphs/application/mysql_innodb_row_operations.inc.php b/html/includes/graphs/application/mysql_innodb_row_operations.inc.php new file mode 100644 index 0000000000..bf4c707a5a --- /dev/null +++ b/html/includes/graphs/application/mysql_innodb_row_operations.inc.php @@ -0,0 +1,44 @@ + diff --git a/html/includes/graphs/application/mysql_innodb_semaphores.inc.php b/html/includes/graphs/application/mysql_innodb_semaphores.inc.php new file mode 100644 index 0000000000..4a05e976b1 --- /dev/null +++ b/html/includes/graphs/application/mysql_innodb_semaphores.inc.php @@ -0,0 +1,31 @@ + diff --git a/html/includes/graphs/application/mysql_innodb_transactions.inc.php b/html/includes/graphs/application/mysql_innodb_transactions.inc.php new file mode 100644 index 0000000000..403b56f188 --- /dev/null +++ b/html/includes/graphs/application/mysql_innodb_transactions.inc.php @@ -0,0 +1,21 @@ + diff --git a/html/includes/graphs/application/mysql_myisam_indexes.inc.php b/html/includes/graphs/application/mysql_myisam_indexes.inc.php new file mode 100644 index 0000000000..ce6abe8441 --- /dev/null +++ b/html/includes/graphs/application/mysql_myisam_indexes.inc.php @@ -0,0 +1,38 @@ + diff --git a/html/includes/graphs/application/mysql_network_traffic.inc.php b/html/includes/graphs/application/mysql_network_traffic.inc.php new file mode 100644 index 0000000000..b30d847a49 --- /dev/null +++ b/html/includes/graphs/application/mysql_network_traffic.inc.php @@ -0,0 +1,29 @@ + diff --git a/html/includes/graphs/application/mysql_query_cache.inc.php b/html/includes/graphs/application/mysql_query_cache.inc.php new file mode 100644 index 0000000000..b1f831e971 --- /dev/null +++ b/html/includes/graphs/application/mysql_query_cache.inc.php @@ -0,0 +1,46 @@ + diff --git a/html/includes/graphs/application/mysql_query_cache_memory.inc.php b/html/includes/graphs/application/mysql_query_cache_memory.inc.php new file mode 100644 index 0000000000..5c144fd3e3 --- /dev/null +++ b/html/includes/graphs/application/mysql_query_cache_memory.inc.php @@ -0,0 +1,29 @@ + diff --git a/html/includes/graphs/application/mysql_select_types.inc.php b/html/includes/graphs/application/mysql_select_types.inc.php new file mode 100644 index 0000000000..03306fd992 --- /dev/null +++ b/html/includes/graphs/application/mysql_select_types.inc.php @@ -0,0 +1,53 @@ + diff --git a/html/includes/graphs/application/mysql_slow_queries.inc.php b/html/includes/graphs/application/mysql_slow_queries.inc.php new file mode 100644 index 0000000000..287e8ffd8f --- /dev/null +++ b/html/includes/graphs/application/mysql_slow_queries.inc.php @@ -0,0 +1,23 @@ + diff --git a/html/includes/graphs/application/mysql_sorts.inc.php b/html/includes/graphs/application/mysql_sorts.inc.php new file mode 100644 index 0000000000..4006003e23 --- /dev/null +++ b/html/includes/graphs/application/mysql_sorts.inc.php @@ -0,0 +1,38 @@ + diff --git a/html/includes/graphs/application/mysql_table_locks.inc.php b/html/includes/graphs/application/mysql_table_locks.inc.php new file mode 100644 index 0000000000..bbe5f49293 --- /dev/null +++ b/html/includes/graphs/application/mysql_table_locks.inc.php @@ -0,0 +1,30 @@ + diff --git a/html/includes/graphs/application/mysql_temporary_objects.inc.php b/html/includes/graphs/application/mysql_temporary_objects.inc.php new file mode 100644 index 0000000000..9c835322d3 --- /dev/null +++ b/html/includes/graphs/application/mysql_temporary_objects.inc.php @@ -0,0 +1,36 @@ + diff --git a/html/includes/graphs/generic_bits.inc.php b/html/includes/graphs/generic_bits.inc.php index ec478ee3d2..b2dcdf5cd5 100644 --- a/html/includes/graphs/generic_bits.inc.php +++ b/html/includes/graphs/generic_bits.inc.php @@ -27,6 +27,9 @@ if($multiplier) $rrd_options .= " DEF:".$in."octets_max=".$rrd_filename_in.":".$rra_in.":MAX"; } +## No? +#print $multiplier; + $rrd_options .= " CDEF:octets=inoctets,outoctets,+"; $rrd_options .= " CDEF:doutoctets=outoctets,-1,*"; $rrd_options .= " CDEF:outbits=outoctets,8,*"; diff --git a/html/pages/device/apps/mysql.inc.php b/html/pages/device/apps/mysql.inc.php new file mode 100644 index 0000000000..0a05c58aab --- /dev/null +++ b/html/pages/device/apps/mysql.inc.php @@ -0,0 +1,46 @@ + 'Command Counters', + 'mysql_connections' => 'Connections', + 'mysql_files_tables' => 'Files and Tables', + 'mysql_innodb_buffer_pool' => 'InnoDB Buffer Pool', + 'mysql_innodb_buffer_pool_activity' => 'InnoDB Buffer Pool Activity', + 'mysql_innodb_insert_buffer' => 'InnoDB Insert Buffer', + 'mysql_innodb_io' => 'InnoDB IO', + 'mysql_innodb_io_pending' => 'InnoDB IO Pending', + 'mysql_innodb_log' => 'InnoDB Log', + 'mysql_innodb_row_operations' => 'InnoDB Row Operations', + 'mysql_innodb_semaphores' => 'InnoDB semaphores', + 'mysql_innodb_transactions' => 'InnoDB Transactions', + 'mysql_myisam_indexes' => 'MyISAM Indexes', + 'mysql_network_traffic' => 'Network Traffic', + 'mysql_query_cache' => 'Query Cache', + 'mysql_query_cache_memory' => 'Query Cache Memory', + 'mysql_select_types' => 'Select Types', + 'mysql_slow_queries' => 'Slow Queries', + 'mysql_sorts' => 'Sorts', + 'mysql_table_locks' => 'Table Locks', + 'mysql_temporary_objects' => 'Temporary Objects'); + +foreach($graphs as $key => $text) { + $graph_type = $key; + $graph_array['height'] = "100"; + $graph_array['width'] = "215"; + $graph_array['to'] = $now; + $graph_array['id'] = $app['app_id']; + $graph_array['type'] = "application_".$key; + echo('