mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
32_SYSSTAT.pm: set snmp session timeout to two seconds (instead of the default 5 seconds)
git-svn-id: https://svn.fhem.de/fhem/trunk@9261 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9e7840d6b8
commit
154fbefdca
@ -139,6 +139,7 @@ SYSSTAT_InitSNMP($)
|
|||||||
} elsif ( !defined($session) ) {
|
} elsif ( !defined($session) ) {
|
||||||
Log3 $name, 2, "$name: can't connect to host $host";
|
Log3 $name, 2, "$name: can't connect to host $host";
|
||||||
} else {
|
} else {
|
||||||
|
$session->timeout(3);
|
||||||
$hash->{session} = $session;
|
$hash->{session} = $session;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user