diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c545f14 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.pyc +.pydevproject diff --git a/report-htm.tmpl b/report-htm.tmpl index 6797d48..afd9b2d 100755 --- a/report-htm.tmpl +++ b/report-htm.tmpl @@ -112,7 +112,7 @@ #for $counter in sorted($indicator_error.keys()) #set $error_list = $indicator_error[$counter] #for $error_values in $error_list: -

$error_values["description"]

+

$error_values["description"]

#end for #end for @@ -141,16 +141,11 @@ Health Status -#for $bucket in sorted($bucket_list.keys()) + #for $bucket in sorted($bucket_list.keys()) + #set $bucket_status_class = 'status-' + $bucket_list[$bucket].lower() $bucket - #if $bucket_list[$bucket] == "Error" - Immediate action needed - #elif $bucket_list[$bucket] == "Warning" - Attention needed - #else - OK - #end if + $bucket_list[$bucket] #end for @@ -163,11 +158,12 @@ Cluster Status -#for $node in sorted($node_list["nodeList"]["value"]) + #for $node in sorted($node_list["nodeList"]["value"]) + #set $node_status_class = 'status-' + $node["status"].lower() $node["host"] $node["version"] - $node["status"] + $node["status"] #end for @@ -257,7 +253,7 @@ #for $counter in sorted($indicator_warn) #set $warn_list = $indicator_warn[$counter] #for $warn_values in $warn_list -

$warn_values["description"]

+

$warn_values["description"]

#end for #end for