1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

Bugfixing NULL values

Caused issues when environmental sensor was unavailable.
This commit is contained in:
Kai 2024-07-31 17:10:12 +02:00 committed by GitHub
parent a915c6bafd
commit 7f3e6845d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -178,7 +178,7 @@ sub oidExists {
my $oid = $_[0]; my $oid = $_[0];
my $val = $session->get_single($oid); my $val = $session->get_single($oid);
if(!length $val || $val eq 'noSuchInstance' || $val eq 'U'){ if(!length $val || $val eq 'noSuchInstance' || $val eq 'U' || $val eq 'NULL'){
return(0); return(0);
}else{ }else{
return(1); return(1);