lib/arborist/monitor/snmp/cpu.rb
changeset 26 54f2f57cc0b0
parent 19 77084121952b
--- a/lib/arborist/monitor/snmp/cpu.rb	Sun Sep 01 13:28:18 2019 -0700
+++ b/lib/arborist/monitor/snmp/cpu.rb	Tue Apr 28 10:10:19 2020 -0700
@@ -117,7 +117,7 @@
 	def find_load( host, snmp )
 		info = self.format_load( snmp )
 
-		config  = identifiers[ host ].last || {}
+		config  = self.identifiers[ host ].last['config'] || {}
 		warn_at = config[ 'warn_at' ] || self.class.warn_at
 		usage   = info.dig( :cpu, :usage ) || 0