Skip to content

Commit

Permalink
ADD: Addition of Telegraf config for Catalyst Center Compliance.
Browse files Browse the repository at this point in the history
  • Loading branch information
Walkablenormal committed Jul 30, 2024
1 parent 2842887 commit 80745df
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions catalyst_center_compliance.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[[inputs.exec]]
commands = ["python3 catalyst_center_compliance.py"]
timeout = "60s"
data_format = "json_v2"

[[inputs.exec.json_v2]]
measurement_name = "catalyst_center_compliance"

[[inputs.exec.json_v2.object]]
path = "@flatten.response"
tags = ["deviceUuid"]

[inputs.exec.json_v2.object.fields]
complianceStatus = "string"
lastUpdateTime = "int"
2 changes: 1 addition & 1 deletion catalyst_center_compliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

def main():
"""
Returns physical topology information from Catalyst Center.
Returns compliance information from Catalyst Center.
"""
# Get authentication token
token = get_auth_token(BASE_URL, USERNAME, PASSWORD)
Expand Down

0 comments on commit 80745df

Please sign in to comment.