Skip to content

Commit

Permalink
Evaluate V$CELL_OPEN_ALERTS
Browse files Browse the repository at this point in the history
  • Loading branch information
rammpeter committed Sep 2, 2024
1 parent 59cda40 commit 25bf3cb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/controllers/storage_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1270,6 +1270,11 @@ def list_exadata_cell_grid_disk
render_partial
end

def list_exadata_cell_open_alerts
@alerts = sql_select_iterator "SELECT * FROM V$CELL_OPEN_ALERTS ORDER BY Begin_Time DESC"
render_partial
end

def list_temp_usage_sysmetric_historic
save_session_time_selection

Expand Down
1 change: 1 addition & 0 deletions app/helpers/menu_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ def menu_content
{:class=> 'item', :caption=>'Cell server physical disks', :controller=>:storage, :action=>:list_exadata_cell_physical_disk, :hint=>'List physical disks of exadata cell server' },
{:class=> 'item', :caption=>'Cell server cell disks', :controller=>:storage, :action=>:list_exadata_cell_cell_disk, :hint=>'List configured cell disks of exadata cell server' },
{:class=> 'item', :caption=>'Cell server grid disks', :controller=>:storage, :action=>:list_exadata_cell_grid_disk, :hint=>'List configured grid disks of exadata cell server' },
{:class=> 'item', :caption=>'Cell server open alerts', :controller=>:storage, :action=>:list_exadata_cell_open_alerts, :hint=>'List open alerts of exadata cell server' },
]
},
{ :class=> 'menu', :caption=> t(:menu_storage_asm_caption, :default=>'ASM grid infrastructure'), condition: isASM?, :content=>[
Expand Down
12 changes: 12 additions & 0 deletions app/views/storage/_list_exadata_cell_open_alerts.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<%
column_options = []
column_options << {caption: 'Cell name', data: proc{|rec| rec.cell_name}, title: 'Cell name'}
column_options << {caption: 'Cell hash', data: proc{|rec| fn rec.cell_hash}, title: 'Cell hash', align: :right}
column_options << {caption: 'Begin time', data: proc{|rec| localeDateTime rec.begin_time}, title: 'Begin time of alert'}
column_options << {caption: 'Seq.', data: proc{|rec| fn rec.seq_no}, title: 'Sequence number', align: :right}
column_options << {caption: 'Stateful', data: proc{|rec| rec.stateful}, title: 'Stateful?'}
column_options << {caption: 'Severity', data: proc{|rec| rec.severity}, title: 'Severity?'}
column_options << {caption: 'Message', data: proc{|rec| rec.message}, title: 'The alert message', max_wrap_width: 300}
%>
<%= gen_slickgrid(@alerts, column_options, {caption: "Exadata cell server alerts from V$CELL_OPEN_ALERTS", max_height: 450, show_pin_icon: 1}) %>

0 comments on commit 25bf3cb

Please sign in to comment.