Skip to content

Commit

Permalink
Merge pull request #57 from truenas/NAS-123774
Browse files Browse the repository at this point in the history
NAS-123774 / 24.04 / add InitShutDownScript plugin
  • Loading branch information
yocalebo authored Aug 30, 2023
2 parents 17a34e6 + 90cc99d commit f4bee29
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ixdiagnose/plugins/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from .cronjob import Cronjob
from .ftp import FTP
from .hardware import Hardware
from .initshutdown_scripts import InitShutDownScripts
from .ipmi import IPMI
from .iscsi import ISCSI
from .kubernetes import Kubernetes
Expand Down Expand Up @@ -39,6 +40,7 @@
Cronjob,
FTP,
Hardware,
InitShutDownScripts,
IPMI,
ISCSI,
Kubernetes,
Expand Down
11 changes: 11 additions & 0 deletions ixdiagnose/plugins/initshutdown_scripts.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 InitShutDownScripts(Plugin):
name = 'initshutdown_scripts'
metrics = [
MiddlewareClientMetric('initshutdown', [MiddlewareCommand('initshutdownscript.query')]),
]

0 comments on commit f4bee29

Please sign in to comment.