megaraid check #3
Description
Monitors MegaRAID controllers with the check_lsi_raid Nagios plugin from Thomas-Krenn.
MegaRAID Check
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
Configuration
- check_parameters
- (string) The parameters for the check_lsi_raid check. See 'check_lsi_raid --help' for more information.
- check_repo
- (string) The repository to clone the check_lsi_raid plugin from.
- https://github.com/thomas-krenn/check_lsi_raid.git
- check_version
- (string) The versions of the check_lsi_raid repository to check out. This can be a branch, tag or hash. See 'version' parameter in https://docs.ansible.com/ansible/latest/modules/git_module.html for more information.
- 2f28ea4969c0c4c9d6928a323a6130e26261062e
- nagios_context
- (string) Used by the nrpe subordinate charms. A string that will be prepended to instance name to set the host name in nagios. So for instance the hostname would be something like: juju-myservice-0 If you're running multiple environments with the same services in them this allows you to differentiate between them.
- juju
- nagios_servicegroups
- (string) A comma-separated list of nagios servicegroups. If left empty, the nagios_context will be used as the servicegroup
- storcli_path
- (string) The path to the StorCLI executable. The default path is from the upstream StorCLI package.
- /opt/MegaRAID/storcli/storcli64
- storcli_url
- (string) The URL to an archived StorCLI package. Default is the upstream Broadcom download page. See https://www.broadcom.com/support/download-search for other versions.
- https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/MR_SAS_Unified_StorCLI_007.1108.0000.0000.zip