Skip to main content

WD NAS SNMP

Pack Assets

Templates

The Centreon Pack WD NAS SNMP brings a host template:

  • HW-Storage-Wd-Nas-SNMP-custom

It brings the following service templates:

Service AliasService TemplateService DescriptionDefaultDiscovery
HardwareHW-Storage-Wd-Nas-Hardware-SNMPCheck hardwareX
VolumesHW-Storage-Wd-Nas-Volumes-SNMPCheck volumesX

Discovery rules

Rule NameDescription
HW-Storage-Wd-Nas-SNMP-Volume-NameDiscover volumes and monitor space occupation

More information about discovering services automatically is available on the dedicated page and in the following chapter.

Collected metrics & status

Metric NameUnit
system#hardware.temperature.celsiusC
fan status
drive_name#hardware.temperature.celsiusC

Prerequisites

SNMP Configuration

To use this pack, the SNMP service must be properly configured on your WD NAS equipment.

Network flow

The target server must be reachable from the Centreon poller on the UDP/161 SNMP port.

Setup

Monitoring Pack

If the platform uses an online license, you can skip the package installation instruction below as it is not required to have the pack displayed within the Configuration > Monitoring Connector Manager menu. If the platform uses an offline license, install the package on the central server with the command corresponding to the operating system's package manager:

dnf install centreon-pack-hardware-storage-wd-nas-snmp

Whatever the license type (online or offline), install the WD NAS SNMP Pack through the Configuration > Monitoring Connector Manager menu.

Plugin

Since Centreon 22.04, you can benefit from the 'Automatic plugin installation' feature. When this feature is enabled, you can skip the installation part below.

You still have to manually install the plugin on the poller(s) when:

  • Automatic plugin installation is turned off
  • You want to run a discovery job from a poller that doesn't monitor any resource of this kind yet

More information in the Installing the plugin section.

Use the commands below according to your operating system's package manager:

dnf install centreon-plugin-Hardware-Storage-Wd-Nas-Snmp

Configuration

Host

  • Log into Centreon and add a new host through Configuration > Hosts.
  • Fill the Name, Alias & IP Address/DNS fields according to your WD NAS server settings.
  • Apply the HW-Storage-Wd-Nas-SNMP-custom template to the host.

If you are using SNMP Version 3, use the SNMPEXTRAOPTIONS macro to configure

When using SNMP v3, use the SNMPEXTRAOPTIONS Macro to add specific authentication parameters. More information in the Troubleshooting SNMP section.

MandatoryMacroDescription
SNMPEXTRAOPTIONSConfigure your own SNMPv3 credentials combo

How to check in the CLI that the configuration is OK and what are the main options for?

Once the plugin is installed, log into your Centreon poller's CLI using the centreon-engine user account (su - centreon-engine) and test the plugin by running the following command:

/usr/lib/centreon/plugins/centreon_wd_nas_snmp.pl \
--plugin=storage::wd::nas::snmp::plugin \
--mode=volumes \
--hostname=10.0.0.1 \
--snmp-version='2c' \
--snmp-community='my-snmp-community' \
--verbose

The expected command output is shown below:

OK: volume 'Volume_1' space usage total: 7.20 TB used: 5.60 TB (77.78%) free: 1.60 TB (22.22%) | 'Volume_1#volume.space.usage.bytes'=6157265115545B;;;0;7916483719987.2 'Volume_1#volume.space.free.bytes'=1759218604441B;;;0;7916483719987.2 'Volume_1#volume.space.usage.percentage'=77.78%;;;0;100

All available options for a given mode can be displayed by adding the --help parameter to the command:

/usr/lib/centreon/plugins/centreon_wd_nas_snmp.pl \
--plugin=storage::wd::nas::snmp::plugin \
--mode=volumes \
--help

All available modes can be displayed by adding the --list-mode parameter to the command:

/usr/lib/centreon/plugins/centreon_wd_nas_snmp.pl \
--plugin=storage::wd::nas::snmp::plugin \
--list-mode

Troubleshooting

Please find the troubleshooting documentation for Centreon Plugins typical issues.