-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
71 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
import logging | ||
from libprobe.asset import Asset | ||
from ..utils import get_token | ||
from ..utils import get_token, get_logs_alert | ||
|
||
|
||
async def check_zfs( | ||
async def check_alerts( | ||
asset: Asset, | ||
asset_config: dict, | ||
check_config: dict) -> dict: | ||
token = await get_token(asset, asset_config, check_config) | ||
|
||
... | ||
|
||
return {} | ||
state = await get_logs_alert(asset, check_config, token) | ||
return state |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Version string. Examples: | ||
# '3.0.0' | ||
# '3.0.0-alpha0' | ||
__version__ = '3.0.0-alpha0' | ||
__version__ = '3.0.0-alpha1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
from libprobe.probe import Probe | ||
from lib.check.zfs import check_zfs | ||
from lib.check.alerts import check_alerts | ||
from lib.version import __version__ as version | ||
|
||
|
||
if __name__ == '__main__': | ||
checks = { | ||
'zfs': check_zfs | ||
'alerts': check_alerts | ||
} | ||
|
||
probe = Probe("oraclezfs", version, checks) | ||
|
||
probe.start() |