nagios-plugin-powershell-templates

A set of templates for Nagios check scripts written in Powershell.

https://github.com/monitoringtoolbox/nagios-plugin-powershell-templates

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.0%) to scientific vocabulary

Keywords

monitoring nagios nagios-plugin nagios-plugins template wolfsoftware
Last synced: 6 months ago · JSON representation ·

Repository

A set of templates for Nagios check scripts written in Powershell.

Basic Info
  • Host: GitHub
  • Owner: MonitoringToolbox
  • License: mit
  • Language: PowerShell
  • Default Branch: master
  • Homepage:
  • Size: 192 KB
Statistics
  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • Open Issues: 3
  • Releases: 2
Topics
monitoring nagios nagios-plugin nagios-plugins template wolfsoftware
Created over 2 years ago · Last pushed 6 months ago
Metadata Files
Readme Contributing Funding License Code of conduct Citation Codeowners Security

README.md

MonitoringToolbox logo
Github Build Status License Created
Release Released Commits since release

Background

Wolf Software has been engaged in providing system, network, and security monitoring solutions from the very outset. Our expertise encompasses a wide range of monitoring solutions, including fundamental ones such as Munin and Nagios, as well as sophisticated enterprise-grade solutions like New Relic, Datadog, and AppDynamics. We also possess experience in creating customized monitoring solutions in-house, tailored to specific client requirements.

Overview

It is a common occurrence for companies to express the need for ready-made enterprise-grade monitoring solutions, asserting that solutions like Nagios are becoming obsolete due to the significant investment of time and resources required to make it operational, resulting in similar costs as those incurred with off-the-shelf solutions.

The goal of this project, as well as other initiatives within The Monitoring Toolbox, is to demonstrate the ease with which plugins can be developed for tools like Nagios and Munin, thereby enhancing their capabilities to a level that is more comparable to the more costly off-the-shelf alternatives.

How It Works

The provided template scripts aim to offer all the necessary core functionality while being as minimalistic and lightweight as possible.

Basic

The basic script provides 5 core functions.

  1. main - This function is where you add all of the check related code.
  2. handle_ok - This function displayed an OK prefixed message (if one is supplied) and then exits the script with the required exit code (0).
  3. handle_warning - This function displayed a WARNING prefixed message (if one is supplied) and then exits the script with the required exit code (1).
  4. handle_critical - This function displayed a CRITICAL prefixed message (if one is supplied) and then exits the script with the required exit code (2).
  5. handle_unknown - This function displayed an UNKNOWN prefixed message (if one is supplied) and then exits the script with the required exit code (3).

Advanced

The advanced script provides the same 5 functions as detailed above, along with an extra function.

  1. process_arguments - This function processes the command line arguments, does basic error checking and then calls the main function.

Template Scripts

| Script | Purpose | | ------------------------------------- | -------------------------------------------------------- | | basic | A basic example check using hard coded values. | | advanced | An advanced example check using command line parameters. |

Alternate languages

We have replicated the aforementioned templates in various languages, as individuals and organizations often have a particular language preference or choice.

We would be pleased to generate templates in different languages upon request. Furthermore, we welcome individuals to submit pull requests that include additional languages.


Owner

  • Name: Monitoring Toolbox
  • Login: MonitoringToolbox
  • Kind: organization
  • Email: github@wolfsoftware.com

A collection of monitoring related tool and scripts. Created by Wolf Software

Citation (CITATION.cff)

cff-version: 1.2.0
message: If you use this software, please cite it using these metadata.
title: Nagios Plugin Powershell Template
abstract: A set of templates for Nagios check scripts written in Powershell.
type: software
version: 0.1.0
date-released: 2024-05-21
repository-code: https://github.com/MonitoringToolbox/nagios-plugin-powershell-templates
keywords:
  - "Wolf Software"
  - "Software"
license: MIT
authors:
  - family-names: "Wolf"
    orcid: "https://orcid.org/0009-0007-0983-2072"

GitHub Events

Total
  • Delete event: 62
  • Issue comment event: 137
  • Push event: 125
  • Pull request review event: 106
  • Pull request event: 128
  • Create event: 63
Last Year
  • Delete event: 62
  • Issue comment event: 137
  • Push event: 125
  • Pull request review event: 106
  • Pull request event: 128
  • Create event: 63

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 0
  • Total pull requests: 46
  • Average time to close issues: N/A
  • Average time to close pull requests: 2 days
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 1.65
  • Merged pull requests: 37
  • Bot issues: 0
  • Bot pull requests: 46
Past Year
  • Issues: 0
  • Pull requests: 46
  • Average time to close issues: N/A
  • Average time to close pull requests: 2 days
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 1.65
  • Merged pull requests: 37
  • Bot issues: 0
  • Bot pull requests: 46
Top Authors
Issue Authors
Pull Request Authors
  • dependabot[bot] (91)
Top Labels
Issue Labels
Pull Request Labels
dependabot: dependencies (91) dependabot: ecosystem : github actions (91) dependabot: auto approve (80) dependabot: auto merge (80) dependabot: manual merge (3)

Dependencies

.github/workflows/cicd.yml actions
  • SleepySysadmin/github-action-pscheck 2522a32675c0c3447a479b401ef5f14d33f8f7a2 composite
  • actions/checkout a5ac7e51b41094c92402da3b24376905380afc29 composite
.github/workflows/citation-validation.yml actions
  • ActionsToolbox/get-language-versions-action 446919617fd774095b5dd3ed71c39dd3fd0d8f4f composite
  • actions/checkout a5ac7e51b41094c92402da3b24376905380afc29 composite
  • citation-file-format/cffconvert-github-action 4cf11baa70a673bfdf9dad0acc7ee33b3f4b6084 composite
  • ruby/setup-ruby cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 composite
.github/workflows/delete-old-workflow-runs.yml actions
  • Gamesight/slack-workflow-status 68bf00d0dbdbcb206c278399aa1ef6c14f74347a composite
  • Mattraks/delete-workflow-runs 39f0bbed25d76b34de5594dceab824811479e5de composite
.github/workflows/dependabot.yml actions
  • dependabot/fetch-metadata 5e5f99653a5b510e8555840e80cbf1514ad4af38 composite
.github/workflows/document-validation.yml actions
  • ActionsToolbox/get-language-versions-action 446919617fd774095b5dd3ed71c39dd3fd0d8f4f composite
  • actions/checkout a5ac7e51b41094c92402da3b24376905380afc29 composite
  • actions/setup-node 60edb5dd545a775178f52524783378180af0d1f8 composite
  • ruby/setup-ruby cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 composite
.github/workflows/generate-release.yml actions
  • Bullrich/generate-release-changelog 6b60f004b4bf12ff271603dc32dbd261965ad2f2 composite
  • actions/checkout a5ac7e51b41094c92402da3b24376905380afc29 composite
  • softprops/action-gh-release 69320dbe05506a9a39fc8ae11030b214ec2d1f87 composite
.github/workflows/generate-test-release.yml actions
  • Bullrich/generate-release-changelog 6b60f004b4bf12ff271603dc32dbd261965ad2f2 composite
  • actions/checkout a5ac7e51b41094c92402da3b24376905380afc29 composite
  • softprops/action-gh-release 69320dbe05506a9a39fc8ae11030b214ec2d1f87 composite
.github/workflows/greetings.yml actions
  • actions/first-interaction 34f15e814fe48ac9312ccf29db4e74fa767cbab7 composite
.github/workflows/purge-deprecated-workflow-runs.yml actions
  • Gamesight/slack-workflow-status 68bf00d0dbdbcb206c278399aa1ef6c14f74347a composite
  • otto-de/purge-deprecated-workflow-runs 31a4e821d43e9a354cbd65845922c76e4b4b3633 composite
.github/workflows/repository-validation.yml actions
  • ActionsToolbox/get-language-versions-action 446919617fd774095b5dd3ed71c39dd3fd0d8f4f composite
  • actions/checkout a5ac7e51b41094c92402da3b24376905380afc29 composite
  • actions/setup-go cdcb36043654635271a94b9a6d1392de5bb323a7 composite
  • actions/setup-python 82c7e631bb3cdc910f68e0081d67478d79c6982d composite
.github/workflows/security-hardening.yml actions
  • actions/checkout a5ac7e51b41094c92402da3b24376905380afc29 composite
  • zgosalvez/github-actions-ensure-sha-pinned-actions 40e45e738b3cad2729f599d8afc6ed02184e1dbd composite
.github/workflows/stale.yml actions
  • Gamesight/slack-workflow-status 68bf00d0dbdbcb206c278399aa1ef6c14f74347a composite
  • actions/stale 28ca1036281a5e5922ead5184a1bbf96e5fc984e composite