[Spacewalk-list] Spacewalk 1.4 monitoring

"Rodriguez Nuño, Claudia" servimatica.crodriguez at kutxa.es
Thu Jul 21 06:35:58 UTC 2011


Hi
It's quite a long since I wrote that message, I gave up on trying to make it work, I'm waiting for spacewalk 1.5
Anyway, I don't know if those modifications are the problem but without them monitoring scout wouldn't start.
Modifications are:

at /usr/lib/perl5/vendor_perl/5.8.8/RHN/DB.pm

@@ -370,7 +370,7 @@ sub disconnect {
   my $dbh = shift;
 
   if ($dbh->{private_from_cache}) {
-    $dbh->set_err("Can't disconnect cache-loaded RHN::DB handle");
+    $dbh->set_err(99999, "Can't disconnect cache-loaded RHN::DB handle");
   }
   else {
     $dbh->SUPER::disconnect(@_);
@@ -533,7 +533,7 @@ sub execute_h {
   my $self = shift;
   my @params = @_;
 
-  $self->set_err("Odd number of params to execute_h") if @params % 2;
+  $self->set_err(99998, "Odd number of params to execute_h") if @params % 2;
 
   while (my ($k, $v) = (splice @params, 0, 2, ())) {


at  /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/SatConfig/GenerateConfig.pm

@@ -24,7 +24,7 @@ sub handler {
 
         SatClusterRecord->LoadFromSqlWithBind(q{
             select sat_cluster.recid, sat_cluster.customer_id,
                  --location_name "physical_location_name",
                  ++location_name as physical_location_name,
                    sat_node.max_concurrent_checks, sat_node.sched_log_level,
                    sat_node.sput_log_level, sat_node.dq_log_level
             from   sat_cluster, sat_node, physical_location
@@ -41,7 +41,7 @@ sub handler {
         my $satCluster = SatClusterRecord->InstancesList->[0];
 
         my $customerId = $satCluster->get_CUSTOMER_ID;
       --my $location = $satCluster->get_physical_location_name;
       ++my $location = $satCluster->get_PHYSICAL_LOCATION_NAME;
        
         # Get the auto_update flag
         CFDBRecord->LoadFromSqlWithBind(q{


at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/NPRecords.pm

line 338 change HostAddress for HOSTADDRESS



I don't remember where did I took them from, sorry, but it is not something I came up with. I think the explanation was modifications were related to changes in database variables to capital letters, and/or something about transaction mode 

-----Mensaje original-----
De: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] En nombre de Jan Pazdziora
Enviado el: miércoles, 20 de julio de 2011 23:34
Para: spacewalk-list at redhat.com
Asunto: Re: [Spacewalk-list] Spacewalk 1.4 monitoring

On Mon, Jun 06, 2011 at 12:51:38PM +0200, "Rodriguez Nuño, Claudia" wrote:
> Hello
>  
> I'm quite new with spacewalk so I'd really apreciate if you could help me a little.
> I'm running spacewalk 1.4 in a fresh CentOS 5.6 install in a VMware 
> machine. I have no problems with things such as system inventories, installations/updates, deploying configuration files and so. But when it comes to monitoring I can't get probes to show any result as they are in a  'PENDING, awaiting update' status. In addition when I push scout config it says it 'had warnings' (I don't know where to look for those warnings) I have rhnmd running on the client. On the server monitoring scout is running with no errors too. I have modified DB.pm, NPRecords.pm and GenerateConfig.pm. I have enabled monitoring in the web interface and I don't know what else to do.

What were the modifications that you made?

Can't the modifications be the source of the problem?

--
Jan Pazdziora
Principal Software Engineer, Satellite Engineering, Red Hat

_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list




More information about the Spacewalk-list mailing list