Make this Nagios compatible
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- powershell
調査の方向性
既存の PowerShell スクリプトと、リンクされている Nagios plugin API のドキュメントから始めます。提案されている include/exclude パラメーターとドメイン コントローラーのシナリオを含め、チェックを OK、WARNING、CRITICAL、UNKNOWN にどのように対応付けるかを定義します。スクリプトが設定可能な WARNING および CRITICAL の動作で Nagios 互換の出力と終了コードを返せば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hello
I think this is a great script. Really thorough checking.
That being said, I think it should be Nagios compatible (or even fork it, although sync issues might occur). The script should be ran from a domain controller.
You can read the entire documentation here: https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/pluginapi.html but the TL;DR is that your last line should be:
Write-Host "Whatever you want Nagios to display as text"
exit $variableholdingexitcode # 0 for OK, 1 for WARNING, 2 for CRITICAL and 3 for UNKNOWN
$variableholdingexitcode should be:
0 - OK
1 - WARNING
2 - CRITICAL
3 - UNKNOWN
OK is obviously that all checks have gone fine.
I think WARNING and CRITICAL should be defined by you and/or the user. You can, for example, decide that if there are six domain controllers and two cannot be reached, it is a WARNING status but if it cannot reach four, it should be a CRITICAL.
Not being able to resolve DNS against DCs should be a CRITICAL automatically with no WARNING state possible.
etc, etc....
And the user should also be able to -IncludeAsWarnings and pass a string array with checks he wants to be warnings if they fail or -ExcludeAsWarnings with again a string array with check he wants to ignore if they fail
Same with -IncludeAsCritical and -ExcludeAsCritical
Also -CompletelyInclude and -CompletelyExclude
UNKNOWN is mainly if the script fails for some reason out of your control....Running it on a 2003 DC if it isnt supported, should return a UNKNOWN for example.
I hope this gives you some ideas and Im sure plently more with input with even better ideas.
Thanks!
- 主要言語
- PowerShell
- スター
- 654
- フォーク
- 77
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
EvotecIT/Testimo のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
question
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
-
potential test
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
EvotecIT/Testimo の issue をすべて見る
似ている issue
-
ssa: wait errors drop the kstatus message, so health check failures don't say why対応中かも @schdief が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
Events dropped client-side for size are only logged at debug level and not recorded as lost対応中かも @sentry-junior が今日担当しました。 オープンBug Junior: repro Ruby
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
getsentry/sentry-ruby#3209 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 2 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
temporalio/ai-integrations#573 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
libsdl-org/SDL#16726 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信