From 7de69d0f3a2bae0f6e7a73f80be569d61827f327 Mon Sep 17 00:00:00 2001 From: nott Date: Tue, 4 Dec 2007 20:51:58 +0000 Subject: [PATCH] Added a monitoring definition to the defspec structure. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@127 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT-2.0/xCAT/Schema.pm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/perl-xCAT-2.0/xCAT/Schema.pm b/perl-xCAT-2.0/xCAT/Schema.pm index 387cb4ec8..38abec85f 100644 --- a/perl-xCAT-2.0/xCAT/Schema.pm +++ b/perl-xCAT-2.0/xCAT/Schema.pm @@ -1,6 +1,10 @@ # IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html package xCAT::Schema; +# When making additions or deletions to this file please be sure to +# modify BOTH the tabspec and defspec definitions. This includes +# adding descriptions for any new attributes. + #Note that the SQL is far from imaginative. Fact of the matter is that #certain SQL backends don't ascribe meaning to the data types anyway. #New format, not sql statements, but info enough to describe xcat tables @@ -159,6 +163,7 @@ package xCAT::Schema; site => { attrs => [], attrhash => {}, objkey => 'master' }, #site => { attrs => [], attrhash => {}, objkey => 'sitename' }, policy => { attrs => [], attrhash => {}, objkey => 'priority' }, + monitoring => { attrs => [], attrhash => {}, objkey => 'pname' }, notification => { attrs => [], attrhash => {}, objkey => 'filename' } ); @@ -594,3 +599,20 @@ package xCAT::Schema; access_tabentry => 'notification.filename=attr:filename', description => 'User comment.'}, ); + +@{$defspec{monitoring}->{'attrs'}} = ( + {attr_name => 'pname', + tabentry => 'monitoring.pname', + access_tabentry => 'monitoring.pname=attr:pname', + description => 'The product short name of the 3rd party monitor +ing software.'}, + {attr_name => 'nodestatmon', + tabentry => 'monitoring.nodestatmon', + access_tabentry => 'monitoring.pname=attr:pname', + description => 'Specifies if the product is used to feed the no +de status to the xCAT cluster.'}, + {attr_name => 'comments', + tabentry => 'monitoring.comments', + access_tabentry => 'monitoring.pname=attr:pname', + description => 'User comment.'}, +);