File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -410,6 +410,7 @@ def jobs(self):
410
410
Each entity (device) is a single job, no matter how many sensors it has. The reason is
411
411
that when the intervals align, we can then issue a single SNMP Bulk GET/WALK.
412
412
"""
413
+ migrate_if_needed ()
413
414
for entity_info in self .fetch_job_configs ('snmp' ):
414
415
intervals = list (set ([sensor_info ["interval" ] for sensor_info in entity_info ["sensors" ]]))
415
416
job_info = { ** entity_info , "backend_url" : self .backend_url , "bot_token" : self .bot_token }
@@ -462,7 +463,5 @@ def wait_for_grafolean(backend_url):
462
463
if not bot_token :
463
464
raise Exception ("Please specify BOT_TOKEN / BOT_TOKEN_FROM_FILE env var." )
464
465
465
- migrate_if_needed ()
466
-
467
466
c = SNMPBot (backend_url , bot_token , jobs_refresh_interval )
468
467
c .execute ()
You can’t perform that action at this time.
0 commit comments