mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-04-07 20:35:27 +02:00
fix(dell/os10): hardware mode - os version (#3000)
This commit is contained in:
parent
4428944a0a
commit
7a672d319a
@ -65,7 +65,7 @@ sub get_system_information {
|
||||
my $result = $options{snmp}->get_leef(oids => [$oid_sysdescr]);
|
||||
|
||||
my $version = 'unknown';
|
||||
if (defined($result->{$oid_sysdescr}) && $result->{$oid_sysdescr} =~ /OS Version: ([0-9\.]+)/msi) {
|
||||
if (defined($result->{$oid_sysdescr}) && $result->{$oid_sysdescr} =~ /OS Version:\s*([a-zA-Z0-9\.]+)/msi) {
|
||||
$version = $1;
|
||||
$version =~ s/\.$//;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user