Title: MvE Signature
Anyone? :(



I really would like to use the monitoring package but I am using a remote oracle database..but I can not find where to set the correct DSN/connection string :(


And I am running version 0.1 of Spacewalk, is it worth upgrading to 0.2?

Kind regards,

Michiel


Michiel van Es said the following on 9/30/2008 1:50 PM:
Hmm, I found its DSN in
/usr/lib/perl5/site_perl/5.8.8/NOCpulse/NOCpulseini.pm

  my $self = shift;

  my $dbd      = shift;
  my $dbname   = shift;
  my $username = shift;
  my $password = shift;
  my $orahome  = shift;


  $ENV{'ORACLE_HOME'} = $orahome;  # base dir for Oracle

  # Make DB connection
  my $dbh = DBI->connect("DBI:$dbd:$dbname", $username, $password);
 );

  # Set up for graceful exit
  $SIG{'INT'} = $self->can('bailout');

  unless (defined($dbh)) {
    $self->bailout("ERROR:  connect failed: $DBI::errstr\n")
  }


But how can I change it to a correct dsn/database string?
Can I change the shift variabele?

Where can I put the hostname, database scheme, username, password etc?
What is $dbd?

PS.. I am running version 0.1 of Spacewalk, is it worth upgrading to 0.2
although we don't use 64 bit servers?

Kind Regards,

Michiel


Miroslav Suchý said the following on 9/30/2008 12:59 PM:
  
Michiel van Es wrote:
    
Allright..hmm when I check the file, it is empty.
When I restart /etc/init.d/Monitoring I  get the following error:
      
Yeah, it is initially empty. It is first populate during first
monitoring restart. And it is populated from db. Chicken and egg. But I
have no idea, from where it take the initial connection string. You have
to dig in in code. :(

--
Miroslav Suchy
RHN Satellite Engineering, Red Hat
    

  

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to