On Thu, Aug 04, 2011 at 05:18:54PM +0100, David Nutter wrote:
> Hi,
> 
> Here are a few monitoring-related patches, developed while I was
> chasing the real monitoring problem. These won't fix monitoring in 1.5
> by themselves, see spacewalk-list postings for why. Anyway:
> 
> 0001-Add-additional-member-name-mappings-in-ProbeRecord-t.patch
> 
>   This fixes the errors seen when using rhn-runprobe to run a probe
>   manually (Can't locate object method "hostname" via package
>   "NOCpulse::Probe::Config::ProbeRecord")
> 
>   It also ensures than rhn-catalog outputs the hostname and host address
>   when listing probes. 
> 
> 0003-Properly-dereference-the-array-references-for-old-an.patch
> 
>   This fixes junk output ("Rescanned directory: ARRAY(0x10be1600)
>   current, ARRAY(0x10bbe090) old") in
> 
>   /var/log/nocpulse/TSDBLocalQueue/TSDBLocalQueue.log 
> 
> 0002-Since-autocommit-is-off-in-RHN-DB-add-explicit-commi.patch
> 
>   The NOCPulse-ini script shipped with spacewalk 1.5 does not actually
>   change the config due to a lack of a dbh->commit call. This patch
>   adds such calls.

Thank you, applied to Spacewalk master. New packages will land in
Spacewalk nightly repos in an hour or so.

> diff --git a/monitoring/PerlModules/NP/Probe/Config/ProbeRecord.pm 
> b/monitoring/PerlModules/NP/Probe/Config/ProbeRecord.pm
> index 35a322e..ee764f4 100644
> --- a/monitoring/PerlModules/NP/Probe/Config/ProbeRecord.pm
> +++ b/monitoring/PerlModules/NP/Probe/Config/ProbeRecord.pm
> @@ -54,6 +54,8 @@ my %FIELD_MAP =
>     contactGroupCustomers => 'contact_group_customers',
>     contactGroupNames     => 'contact_group_names',
>     hostAddress           => 'host_ip',
> +   HOSTADDRESS           => 'host_ip',
> +   HOSTNAME              => 'host_name',
>     hostName              => 'host_name',

Here, I just previously removed the hostAddress and hostName
altogether, as the FetchHashKeyName makes them into uppercase
anyway.

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

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

Reply via email to