|
From: Bob T. <bt...@us...> - 2001-06-05 04:03:11
|
Update of /cvsroot/benson/benson2/src/scripts
In directory usw-pr-cvs1:/tmp/cvs-serv1035/src/scripts
Modified Files:
benson.cfg.tmpl bensonctl.tmpl
Log Message:
Added some database hooks, cleaned up some of the alertlist code and bensonctl so that it respects the Port config option
Index: benson.cfg.tmpl
===================================================================
RCS file: /cvsroot/benson/benson2/src/scripts/benson.cfg.tmpl,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** benson.cfg.tmpl 2001/05/08 03:54:33 1.5
--- benson.cfg.tmpl 2001/06/05 01:47:56 1.6
***************
*** 53,56 ****
--- 53,79 ----
TraceLevel 1
+ ####################################################
+ # Database Support #
+ ####################################################
+
+ #
+ # DBIConnectString: <string>
+ # This sets the connection information for the DBI driver
+ #
+ #DBIConnectString "dbi:Oracle:db1"
+
+ #
+ # DBIUsername: <string>
+ # This sets the username for the database account
+ #
+ #DBIUsername benson
+
+ #
+ # DBIPassword: <string>
+ # This sets the password for the username
+ #
+ #DBIPassword benson
+
+
Index: bensonctl.tmpl
===================================================================
RCS file: /cvsroot/benson/benson2/src/scripts/bensonctl.tmpl,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** bensonctl.tmpl 2001/05/01 03:37:01 1.3
--- bensonctl.tmpl 2001/06/05 01:47:56 1.4
***************
*** 9,14 ****
#
BENSON_HOME=prefixpath
RM=`which rm`
! ADDR="inet:`uname -n`:9021"
ORBIIOP="-ORBIIOPAddr"
BENSON="$BENSON_HOME/sbin/bensond"
--- 9,15 ----
#
BENSON_HOME=prefixpath
+ BENSON_PORT=`grep "^Port" $BENSON_HOME/etc/benson.cfg | awk '{print $2}'`
RM=`which rm`
! ADDR="inet:`uname -n`:$BENSON_PORT"
ORBIIOP="-ORBIIOPAddr"
BENSON="$BENSON_HOME/sbin/bensond"
|