Git Product home page Git Product logo

charm-megaraid-check's Introduction

MegaRAID Check

GitHub Action CI badge License: MIT

This subordinate charm is used to monitor MegaRAID controllers via NRPE (Nagios Remote Plugin Executor) with the check_lsi_raid Nagios plugin from Thomas-Krenn. This charm installs the StorCLI tool (Storage Command Line Tool) which is used interact with the MegaRAID controller on the host.

Usage

This charm can be deployed to any principal application, but requires that the nrpe charm is deployed and related to it. Here is an example where ubuntu is the principal application:

juju deploy cs:~huntdatacenter/megaraid-check
juju deploy nrpe
juju deploy ubuntu
juju deploy nagios
juju add-relation nrpe ubuntu
juju add-relation nrpe megaraid-check
juju add-relation ubuntu megaraid-check
juju add-relation nagios nrpe

Development

Here are some helpful commands to get started with development and testing:

$ make help
lint                 Run linter
build                Build charm
deploy               Deploy charm
upgrade              Upgrade charm
force-upgrade        Force upgrade charm
test-xenial-bundle   Test Xenial bundle
test-bionic-bundle   Test Bionic bundle
push                 Push charm to stable channel
clean                Clean .tox and build
help                 Show this help

Further information

Links

charm-megaraid-check's People

Stargazers

 avatar

Watchers

 avatar

charm-megaraid-check's Issues

NRPE checks are not cleaned up when removing charm

The charm does not clean up/remove the NRPE checks on the Nagios server when destroying/removing the charm.

I am not sure how to implement this and have asked for advice on discourse.jujucharms.com

As a workaround, I have implemented a config flag called check-remove which can be used while the charm is still running. However this may be too late for folks that have already removed the charm. Removing and redeploying the accompanying nrpe charm on the principal application/charm should clear out the checks though.

Add upgrade test to ci

The ci should have tests that upgrade from the latest version in the charm store to the one being built in ci.

ci tests fail due to / not owned by root

CI tests are failing due to a snap issue

See failure

The specific failure is:

Run sudo snap install juju --classic --channel=2.4/stable
2019-11-26T20:55:21Z INFO Waiting for restart...
error: cannot perform the following tasks:
- Run configure hook of "juju" snap if present (run hook "configure": / not root-owned 501:50)

For some reason this works in another test repository: https://github.com/szeestraten/charm-extra-nrpe-example/runs/321938679

Only related bug/issue I have found online is the following: https://forum.snapcraft.io/t/permissions-problem-using-snapcraft-in-azure-pipelines/13258/7

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.