Commit d059f7ad by Andreas Joachim Peters Committed by Elvin Sindrilaru

APMON: fix xrootd version extraction

parent 5ca0b181
Pipeline #414615 passed with stages
in 49 minutes 1 second
......@@ -101,6 +101,7 @@ $CpuMHz = undef; # Cpu Speed when taking the speed for KSI2k
'ipv6' => 1, # will produce <ifname>_ipv6 params for each physical interface
'kernel_version' => 1,
'eos_rpm_version' => 1,
'xrootd_rpm_verion' => 1,
'platform' => 1,
'os_type' => 1,
'cpu_MHz' => 1,
......
......@@ -504,12 +504,12 @@ sub readEosDiskValues {
sub readEosRpmValues {
my $this = shift;
if (open IN, "rpm -qa xrootd |") {
if (open IN, "rpm -qa xrootd | cut -d '-' -f2 |") {
my $all = <IN>;
if ($all) {
chomp $all;
$all =~ s/xrootd-//;
$this->{DATA}->{"xrootd_rpm_version"} = $all;
$this->{DATA}->{"xrootd_rpm_version"} = 'v'.$all;
}
close(IN);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment