We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2b42b5 commit 43d5763Copy full SHA for 43d5763
snmpbot.py
@@ -410,6 +410,7 @@ def jobs(self):
410
Each entity (device) is a single job, no matter how many sensors it has. The reason is
411
that when the intervals align, we can then issue a single SNMP Bulk GET/WALK.
412
"""
413
+ migrate_if_needed()
414
for entity_info in self.fetch_job_configs('snmp'):
415
intervals = list(set([sensor_info["interval"] for sensor_info in entity_info["sensors"]]))
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:
464
raise Exception("Please specify BOT_TOKEN / BOT_TOKEN_FROM_FILE env var.")
465
- migrate_if_needed()
466
-
467
c = SNMPBot(backend_url, bot_token, jobs_refresh_interval)
468
c.execute()
0 commit comments