Skip to content

Commit

Permalink
NAS-133878 / 25.10 / Retrieve TNC info in debug (#258)
Browse files Browse the repository at this point in the history
* Retrieve truenas connect info in debug

* Retrieve truenas connect log file as well
  • Loading branch information
sonicaj authored Feb 6, 2025
1 parent ce04990 commit 8a9f6e4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions ixdiagnose/artifacts/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class Logs(Artifact):
File('scst.log.1'),
File('syslog'),
File('syslog.1'),
File('truenas_connect.log'),
File('truenas_verify.log'),
File('wsdd.log'),
Pattern('daemon.+'),
Expand Down
2 changes: 2 additions & 0 deletions ixdiagnose/plugins/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
from .system import System
from .system_state import SystemState
from .system_vendor import SystemVendor
from .truenas_connect import TruenasConnect
from .two_factor_auth import TwoFactorAuth
from .ups import UPS
from .vm import VM
Expand Down Expand Up @@ -76,6 +77,7 @@
System,
SystemState,
SystemVendor,
TruenasConnect,
TwoFactorAuth,
UPS,
VM,
Expand Down
11 changes: 11 additions & 0 deletions ixdiagnose/plugins/truenas_connect.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from ixdiagnose.utils.middleware import MiddlewareCommand

from .base import Plugin
from .metrics import MiddlewareClientMetric


class TruenasConnect(Plugin):
name = 'truenas_connect'
metrics = [
MiddlewareClientMetric('config', [MiddlewareCommand('tn_connect.config')]),
]

0 comments on commit 8a9f6e4

Please sign in to comment.