Module: check_mk
Branch: master
Commit: 6835a5999c317933841058e6aa28596be246d29c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6835a5999c3179…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Apr 2 17:00:23 2019 +0200
Let me format this for you...
https://www.pianojoe.de/code/simpsongenerator/creator/create.php?w=I+will+n…
Change-Id: I7c145da9b563edbd0c4dfed38f1ef7d5553bb01b
---
checks/oracle_performance | 14 +++++++-------
cmk/gui/plugins/metrics/check_mk.py | 28 ++++++++++++++--------------
2 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/checks/oracle_performance b/checks/oracle_performance
index 3fcddf5..a70d400 100644
--- a/checks/oracle_performance
+++ b/checks/oracle_performance
@@ -106,13 +106,13 @@ def check_oracle_performance(item, _no_params, parsed):
sga_info = data.get('SGA_info', None)
if sga_info:
for what, val, perfvar in [
- ('SGA', sga_info["Maximum SGA Size"],
'oracle_sga_size'),
- ('DB Cache', sga_info["Buffer Cache Size"],
'oracle_sga_buffer_cache'),
- ('Shared Pool', sga_info["Shared Pool Size"],
'oracle_sga_shared_pool'),
- ('Redo Buffers', sga_info["Redo Buffers"],
'oracle_sga_redo_buffer'),
- ('Java Pool Size', sga_info["Java Pool Size"],
'oracle_sga_java_pool'),
- ('Large Pool Size', sga_info["Large Pool Size"],
'oracle_sga_large_pool'),
- ('Streams Pool Size', sga_info["Streams Pool Size"],
'oracle_sga_streams_pool'),
+ ('SGA', sga_info["Maximum SGA Size"],
'oracle_sga_size'),
+ ('DB Cache', sga_info["Buffer Cache Size"],
'oracle_sga_buffer_cache'),
+ ('Shared Pool', sga_info["Shared Pool Size"],
'oracle_sga_shared_pool'),
+ ('Redo Buffers', sga_info["Redo Buffers"],
'oracle_sga_redo_buffer'),
+ ('Java Pool Size', sga_info["Java Pool Size"],
'oracle_sga_java_pool'),
+ ('Large Pool Size', sga_info["Large Pool Size"],
'oracle_sga_large_pool'),
+ ('Streams Pool Size', sga_info["Streams Pool Size"],
'oracle_sga_streams_pool'),
]:
yield 0, "%s: %s" % (what, get_bytes_human_readable(val))
perfdata.append((perfvar, val))
diff --git a/cmk/gui/plugins/metrics/check_mk.py b/cmk/gui/plugins/metrics/check_mk.py
index 4b19550..2187ca5 100644
--- a/cmk/gui/plugins/metrics/check_mk.py
+++ b/cmk/gui/plugins/metrics/check_mk.py
@@ -4337,20 +4337,20 @@ def register_oracle_metrics():
"color": color,
}
- for what, descr, unit, color in [
- ("oracle_sga_size","SGA","bytes",
"11/a"),
- ("oracle_sga_buffer_cache","Buffer Cache","bytes",
"15/a"),
- ("oracle_sga_shared_pool","Shared Pool","bytes",
"21/a"),
- ("oracle_sga_redo_buffer","Redo Buffer","bytes",
"43/b"),
- ("oracle_sga_java_pool","Java Pool","bytes",
"26/a"),
- ("oracle_sga_large_pool","Large Pool","bytes",
"14/a"),
- ("oracle_sga_streams_pool","Streams Pool","bytes",
"16/a")]:
+ for what, descr, unit, color in [("oracle_sga_size", "SGA",
"bytes", "11/a"),
+ ("oracle_sga_buffer_cache", "Buffer
Cache", "bytes", "15/a"),
+ ("oracle_sga_shared_pool", "Shared
Pool", "bytes", "21/a"),
+ ("oracle_sga_redo_buffer", "Redo
Buffer", "bytes", "43/b"),
+ ("oracle_sga_java_pool", "Java
Pool", "bytes", "26/a"),
+ ("oracle_sga_large_pool", "Large
Pool", "bytes", "14/a"),
+ ("oracle_sga_streams_pool", "Streams
Pool", "bytes", "16/a")]:
metric_info["%s" % what] = {
"title": _("ORACLE %s") % descr,
"unit": unit,
"color": color,
}
+
register_oracle_metrics()
metric_info["dhcp_discovery"] = {
@@ -10473,13 +10473,13 @@ graph_info["oracle_library_cache_statistics"] = {
graph_info["oracle_sga_info"] = {
"title": _("ORACLE SGA Information"),
"metrics": [
- ("oracle_sga_size","line"),
+ ("oracle_sga_size", "line"),
("oracle_sga_buffer_cache", "stack"),
- ("oracle_sga_shared_pool","stack"),
- ("oracle_sga_redo_buffer","stack"),
- ("oracle_sga_java_pool","stack"),
- ("oracle_sga_large_pool","stack"),
- ("oracle_sga_streams_pool","stack"),
+ ("oracle_sga_shared_pool", "stack"),
+ ("oracle_sga_redo_buffer", "stack"),
+ ("oracle_sga_java_pool", "stack"),
+ ("oracle_sga_large_pool", "stack"),
+ ("oracle_sga_streams_pool", "stack"),
],
"optional_metrics": [
"oracle_sga_java_pool",