Make this Nagios compatible

オープン
#63 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
powershell

調査の方向性

既存の PowerShell スクリプトと、リンクされている Nagios plugin API のドキュメントから始めます。提案されている include/exclude パラメーターとドメイン コントローラーのシナリオを含め、チェックを OK、WARNING、CRITICAL、UNKNOWN にどのように対応付けるかを定義します。スクリプトが設定可能な WARNING および CRITICAL の動作で Nagios 互換の出力と終了コードを返せば完了です。

索引モデルが issue の本文から書いたものです。

説明

enhancement

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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

EvotecIT/Testimo のほかの issue

EvotecIT/Testimo の issue をすべて見る

似ている issue

Observability & SRE の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。