From 60b288b2f634b6143a29892d08f1ec039f90250c Mon Sep 17 00:00:00 2001 From: TheWitness Date: Sat, 23 Oct 2021 12:43:51 -0400 Subject: [PATCH] Forgot to multiply by 100 on #4428 --- lib/poller.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/poller.php b/lib/poller.php index 33b19aedc5..1575509ce4 100644 --- a/lib/poller.php +++ b/lib/poller.php @@ -224,7 +224,6 @@ function update_reindex_cache($host_id, $data_query_id) { $host['snmp_priv_protocol'], $host['snmp_context'], $host['snmp_engine_id'], $host['snmp_port'], $host['snmp_timeout'], $host['ping_retries'], $host['max_oids']); - if ($session !== false) { if ($oid_uptime == '.1.3.6.1.2.1.1.3.0') { $checks = array( @@ -236,6 +235,10 @@ function update_reindex_cache($host_id, $data_query_id) { $assert_value = cacti_snmp_session_get($session, $oid_uptime); if (is_numeric($assert_value)) { + if ($oid_uptime == '.1.3.6.1.6.3.10.2.1.3.0') { + $assert_value *= 100; + } + break; } }