hw health #1

Supports: bionic xenial
Add to new model


This addon installs hardware monitoring tools and configures Nagios checks
for the system hardware and storage monitoring.
Vendors supported:
Dell (MegaRAID)
Supermicro (LSI SAS)
Huawei (LSI SAS)
Tools supported:


This charm installs various harware system monitoring tools and configures
Nagios NRPE checks. It will only work for bare-metal installations on specific

Currently supported hardware is:

  • Dell: LSI Logic MegaRAID SAS (Broadcom MegaCLI utility)
  • Supermicro: LSI SAS3008 RAID card with sas3ircu (Broadcoam's SAS3IRCU_P16)
    mp3sas linux driver
  • Huawei: LSI SAS2308 RAID card with sas2ircu (Huawei FusionServer Tools

Hardware-independent tools:

  • Linux software RAID (mdadm)
  • IPMI as implemented by freeipmi

In the backlog, hp-health logic still needs to be backported to support
Hewlett-Packard equipment (HP Smart Array Controllers and MSA Controllers with
hpacucli, hpssacli, ssacli).

Furthermore, other hardware in the roadmap is:

  • Huawei's ES3000 V2 PCIe SSD Card with hio_info (Huawei ES3000 V2 Driver)
  • S.M.A.R.T. Monitoring tool (smartctl)


juju deploy ubuntu
juju deploy hw-health
juju deploy nrpe
juju add-relation ubuntu nrpe
juju add-relation ubuntu hw-health
juju add-relation hw-health nrpe

Charmstore version already ships a resource. However, a new resource can be

  • Option 1: juju deploy hw-health --resource tools=/tmp/zipfile.zip
  • Option 2: juju attach-resource hw-health tools=/tmp/zipfile.zip

In both cases format of zipfile.zip must be one of the following:

zip /tmp/zipfile.zip megacli sas2ircu sas3ircu
zip /tmp/zipfile.zip megacli

Known Limitations and Issues

Charm only install method is via Juju resources. There are plans to support
snaps but snapstore only supports strictly confined snaps. Hardware monitoring
tools need special permissions that are under development.

See https://forum.snapcraft.io/t/request-for-classic-confinement-sas2ircu/9023

"tools" resource needs to be attached in ZIP format, and hardware monitoring
tool(s) need to be on the first level of the archive tree.


Manufacturer option needs to be left in auto mode.

Contact Information

Please contact the Nagios charmers via the "Submit a bug" link.

Upstream Project Name


(boolean) Enable debug logging.
(boolean) Enable the use of freeipmi tools to monitor hardware status.
(string) Space separated list of extra deb packages to install.
(string) List of signing keys for install_sources package sources, per charmhelpers standard format (a yaml list of strings encoded as a string). The keys should be the full ASCII armoured GPG public keys. While GPG key ids are also supported and looked up on a keyserver, operators should be aware that this mechanism is insecure. null can be used if a standard package signing key is used that will already be installed on the machine, and for PPA sources where the package signing key is securely retrieved from Launchpad.
(string) List of extra apt sources, per charm-helpers standard format (a yaml list of strings encoded as a string). Each source may be either a line that can be added directly to sources.list(5), or in the form ppa:<user>/<ppa-name> for adding Personal Package Archives, or a distribution component to enable.
(string) Choose the tools to get deployed (hp, dell, supermicro, huawei) or leave the charm to self discover the tools needed to run hardware health checks.
(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.
(string) A comma-separated list of nagios servicegroups. If left empty, the nagios_context will be used as the servicegroup
(string) The status of service-affecting packages will be set to this value in the dpkg database. Valid values are "install" and "hold".
(string) HTTP/HTTPS web proxy for Snappy to use when accessing the snap store.
(string) The address of a Snap Store Proxy to use for snaps e.g. http://snap-proxy.example.com
(string) How often snapd handles updates for installed snaps. The default (an empty string) is 4x per day. Set to "max" to check once per month based on the charm deployment date. You may also set a custom string as described in the 'refresh.timer' section here: https://forum.snapcraft.io/t/system-options/87
(int) Amount of time allowed for scripts to run before exiting.