@Mattias W. @Mattias W. can you help with the Above please?
Thanks in advance
Solved! Go to Solution.
If you have a OneAgent installed on the box I recommend you to follow these instructions to create a OneAgent plugin:
For ActiveGate plugins we have a help page, but it is quite similar to the OneAgent plugin, except for where it is executed from:
If you do not have the time to dive into the above material to create it yourself, you can also reach out to your delivery or account manager and they can reach out to our services team for helping out.
Take a look at my example:
def collectStatsFromDB(self, device):
connection = mysql.connector.connect(host=self.databaseUrl,
sql_select_Query = """
select metric from my_table
cursor = connection.cursor()
record = cursor.fetchone()
if cursor.rowcount > 0:
result = [record]
result = 
# report stat counter
result, result, result, 1)
except Error as e:
print("MySQL connection is closed")
There is now a generic way to do this: