Hitachi NAS SNMP
Pack assets​
Templates​
The Monitoring Connector Hitachi NAS brings a host template:
- HW-Storage-Hitachi-Hnas-SNMP-custom
The connector brings the following service templates (sorted by the host template they are attached to):
- HW-Storage-Hitachi-Hnas-SNMP
- Not attached to a host template
Service Alias | Service Template | Service Description |
---|---|---|
Hardware-Global | HW-Storage-Hitachi-Hnas-Hardware-Global-SNMP | Check all hardware |
Volume-Usage-Global | HW-Storage-Hitachi-Hnas-Volume-Usage-Global-SNMP | Check volume usages |
The services listed above are created automatically when the HW-Storage-Hitachi-Hnas-SNMP host template is used.
Service Alias | Service Template | Service Description | Discovery |
---|---|---|---|
Cluster-Status | HW-Storage-Hitachi-Hnas-Cluster-Status-SNMP | Check cluster nodes status | |
Interfaces | HW-Storage-Hitachi-Hnas-Interfaces-SNMP | Check interfaces | X |
Virtual-Volumes-Quotas | HW-Storage-Hitachi-Hnas-Virtual-Volumes-Quotas-SNMP | Check virtual volumes quotas |
The services listed above are not created automatically when a host template is applied. To use them, create a service manually, then appy the service template you want.
If Discovery is checked, it means a service discovery rule exists for this service template.
Discovery rules​
Service discovery​
Rule name | Description |
---|---|
HW-Storage-Hitachi-Hnas-SNMP-Interface-Name | Discover the disk partitions and monitor space occupation |
More information about discovering services automatically is available on the dedicated page and in the following chapter.
Collected metrics & status​
Here is the list of services for this connector, detailing all metrics linked to each service.
- Cluster-Status
- Hardware-Global
- Interfaces
- Virtual-Volumes-Quotas
- Volume-Usage-Global
Metric name | Unit |
---|---|
node#status | N/A |
To obtain this new metric format, include --use-new-perfdata in the EXTRAOPTIONS service macro.
Metric Name | Unit |
---|---|
battery status | |
fan status | |
node_name~fan_id#hardware.fan.speed.rpm | rpm |
power supply status | |
system drive status | |
temperature status | |
node_name~probe_id#hardware.temperature.celsius | C |
Metric Name | Unit |
---|---|
status | |
interface_name#interface.traffic.in.bitspersecond | b/s |
interface_name#interface.traffic.out.bitspersecond | b/s |
interface_name#interface.packets.in.error.percentage | % |
interface_name#interface.packets.in.discard.percentage | % |
interface_name#interface.packets.out.error.percentage | % |
interface_name#interface.packets.out.discard.percentage | % |
Metric Name | Unit |
---|---|
virtual_volumes.quotas.detected.count | |
volume_name~filesystem_label~target#virtual_volume.quota.usage.bytes | B |
volume_name~filesystem_label~target#virtual_volume.quota.free.bytes | B |
volume_name~filesystem_label~target#virtual_volume.quota.usage.percentage | % |
volume_name~filesystem_label~target#virtual_volume.quota.files.count | |
volume_name~filesystem_label~target#virtual_volume.quota.files.free.count | |
volume_name~filesystem_label~target#virtual_volume.quota.files.percentage | % |
Metric Name | Unit |
---|---|
volume status | |
volume_name#volume.space.usage.bytes | B |
Prerequisites​
SNMP Configuration​
To use this pack, the SNMP service must be properly configured on your ressource. Please refer to the official documentation from Hitachi.
Network flow​
The target server must be reachable from the Centreon poller on the UDP/161 SNMP port.
Installing the monitoring connector​
Pack​
- If the platform uses an online license, you can skip the package installation instruction below as it is not required to have the connector 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:
- Alma / RHEL / Oracle Linux 8
- Alma / RHEL / Oracle Linux 9
- Debian 11 & 12
- CentOS 7
dnf install centreon-pack-hardware-storage-hitachi-hnas-snmp
dnf install centreon-pack-hardware-storage-hitachi-hnas-snmp
apt install centreon-pack-hardware-storage-hitachi-hnas-snmp
yum install centreon-pack-hardware-storage-hitachi-hnas-snmp
- Whatever the license type (online or offline), install the Hitachi NAS connector 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:
- Alma / RHEL / Oracle Linux 8
- Alma / RHEL / Oracle Linux 9
- Debian 11 & 12
- CentOS 7
dnf install centreon-plugin-Hardware-Storage-Hitachi-Hnas-Snmp
dnf install centreon-plugin-Hardware-Storage-Hitachi-Hnas-Snmp
apt install centreon-plugin-hardware-storage-hitachi-hnas-snmp
yum install centreon-plugin-Hardware-Storage-Hitachi-Hnas-Snmp
Using the monitoring connector​
Using a host template provided by the connector​
- Log into Centreon and add a new host through Configuration > Hosts.
- Fill the Name, Alias & IP Address/DNS fields according to your ressource settings.
- Apply the HW-Storage-Hitachi-Hnas-SNMP-custom template to the host.
When using SNMP v3, use the SNMPEXTRAOPTIONS macro to add specific authentication parameters. More information in the Troubleshooting SNMP section.
Macro | Description | Default value | Mandatory |
---|---|---|---|
SNMPEXTRAOPTIONS | Any extra option you may want to add to every command (E.g. a --verbose flag). All options are listed here |
- Deploy the configuration. The host appears in the list of hosts, and on page Resources Status. The command that is sent by the connector is displayed in the details panel of the host: it shows the values of the macros.
Using a service template provided by the connector​
- If you have used a host template and checked Create Services linked to the Template too, the services linked to the template have been created automatically, using the corresponding service templates. Otherwise, create manually the services you want and apply a service template to them.
- Fill in the macros you want (e.g. to change the thresholds for the alerts). Some macros are mandatory (see the table below).
- Cluster-Status
- Hardware-Global
- Interfaces
- Virtual-Volumes-Quotas
- Volume-Usage-Global
Macro | Description | Default value | Mandatory |
---|---|---|---|
UNKNOWNSTATUS | Set unknown threshold for status (Default: '%{state} =~ /unknown/'). You can use the following variables: %{state}, %{display} | %{state} =~ /unknown/ | |
FILTERNAME | Filter node name (can be a regexp) | ||
CRITICALSTATUS | Set critical threshold for status (Default: '%{state} =~ /offline/i'). You can use the following variables: %{state}, %{display} | %{state} =~ /offline/i | |
WARNINGSTATUS | Set warning threshold for status (Default: -). You can use the following variables: %{state}, %{display} | ||
EXTRAOPTIONS | Any extra option you may want to add to the command (E.g. a --verbose flag). All options are listed here | --verbose |
Macro | Description | Default value | Mandatory |
---|---|---|---|
COMPONENT | Which component to check (Default: '.*'). Can be: 'temperature', 'fan', 'psu', 'sysdrive', 'battery' | ||
EXTRAOPTIONS | Any extra option you may want to add to the command (E.g. a --verbose flag). All options are listed here | --verbose |
Macro | Description | Default value | Mandatory |
---|---|---|---|
OIDFILTER | Choose OID used to filter interface (default: ifDesc) (values: ifDesc, ifAlias, ifName, IpAddr) | ifdesc | |
OIDDISPLAY | Choose OID used to display interface (default: ifDesc) (values: ifDesc, ifAlias, ifName, IpAddr) | ifdesc | |
INTERFACENAME | Set the interface (number expected) ex: 1,2,... (empty means 'check all interface') | ||
WARNINGINDISCARD | Thresholds | ||
CRITICALINDISCARD | Thresholds | ||
WARNINGINERROR | Thresholds | ||
CRITICALINERROR | Thresholds | ||
WARNINGINTRAFFIC | Thresholds | ||
CRITICALINTRAFFIC | Thresholds | ||
WARNINGOUTDISCARD | Thresholds | ||
CRITICALOUTDISCARD | Thresholds | ||
WARNINGOUTERROR | Thresholds | ||
CRITICALOUTERROR | Thresholds | ||
WARNINGOUTTRAFFIC | Thresholds | ||
CRITICALOUTTRAFFIC | Thresholds | ||
CRITICALSTATUS | Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} | %{admstatus} eq "up" and %{opstatus} !~ /up | dormant/ |
WARNINGSTATUS | Set warning threshold for status. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} | ||
EXTRAOPTIONS | Any extra option you may want to add to the command (E.g. a --verbose flag). All options are listed here | --verbose |
Macro | Description | Default value | Mandatory |
---|---|---|---|
FILTERVOLUMENAME | Filter virtual volumes quota by volume name | ||
FILTERTARGET | Filter virtual volumes quota by target | ||
FILTERFILESYSTEMNAME | Filter virtual volume quota by filesystem label | ||
WARNINGVVQDETECTED | Thresholds | ||
CRITICALVVQDETECTED | Thresholds | ||
WARNINGVVQFILES | Thresholds | ||
CRITICALVVQFILES | Thresholds | ||
WARNINGVVQFILESFREE | Thresholds | ||
CRITICALVVQFILESFREE | Thresholds | ||
WARNINGVVQFILESPRCT | Thresholds | ||
CRITICALVVQFILESPRCT | Thresholds | ||
WARNINGVVQUSAGE | Thresholds | ||
CRITICALVVQUSAGE | Thresholds | ||
WARNINGVVQUSAGEFREE | Thresholds | ||
CRITICALVVQUSAGEFREE | Thresholds | ||
WARNINGVVQUSAGEPRCT | Thresholds | ||
CRITICALVVQUSAGEPRCT | Thresholds | ||
EXTRAOPTIONS | Any extra option you may want to add to the command (E.g. a --verbose flag). All options are listed here | --verbose |
Macro | Description | Default value | Mandatory |
---|---|---|---|
FILTERNAME | Filter volume name (can be a regexp) | ||
CRITICALSTATUS | Set critical threshold for status (Default: -). You can use the following variables: %{status}, %{display} | %{status} =~ /needsChecking/i | |
WARNINGSTATUS | Set warning threshold for status (Default: '%{status} =~ /needsChecking/i'). You can use the following variables: %{status}, %{display} | ||
WARNINGUSAGE | Thresholds | ||
CRITICALUSAGE | Thresholds | ||
EXTRAOPTIONS | Any extra option you may want to add to the command (E.g. a --verbose flag). All options are listed here | --verbose |
- Deploy the configuration. The service appears in the list of service, and on page Resources Status. The command that is sent by the connector is displayed in the details panel of the service: it shows the values of the macros.
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
). Test that the connector
is able to monitor a server using a command like this one (replace the sample values by yours):
/usr/lib/centreon/plugins//centreon_hitachi_hnas_snmp.pl \
--plugin=storage::hitachi::hnas::snmp::plugin \
--mode=hardware \
--hostname=10.0.0.1 \
--snmp-version='2c' \
--snmp-community='my-snmp-community' \
--verbose
The expected command output is shown below:
OK: All 118 components are ok [2/2 battery, 8/8 fans, 4/4 psus, 82/82 sysdrives, 22/22 temperatures]. | 'hnas-cluster-1.0#hardware.temperature.celsius'=28C;;;; 'hnas-cluster-1.1#hardware.temperature.celsius'=28C;;;; 'hnas-cluster-1.2#hardware.temperature.celsius'=31C;;;; 'hnas-cluster-1.3#hardware.temperature.celsius'=26C;;;; 'hnas-cluster-1.4#hardware.temperature.celsius'=23C;;;; 'hnas-cluster-1.5#hardware.temperature.celsius'=27C;;;; 'hnas-cluster-1.6#hardware.temperature.celsius'=27C;;;; 'hnas-cluster-1.7#hardware.temperature.celsius'=45C;;;; 'hnas-cluster-1.8#hardware.temperature.celsius'=67C;;;; 'hnas-cluster-1.9#hardware.temperature.celsius'=38C;;;; 'hnas-cluster-1.10#hardware.temperature.celsius'=38C;;;; 'hnas-cluster-2.0#hardware.temperature.celsius'=29C;;;; 'hnas-cluster-2.1#hardware.temperature.celsius'=25C;;;; 'hnas-cluster-2.2#hardware.temperature.celsius'=26C;;;; 'hnas-cluster-2.3#hardware.temperature.celsius'=28C;;;; 'hnas-cluster-2.4#hardware.temperature.celsius'=21C;;;; 'hnas-cluster-2.5#hardware.temperature.celsius'=25C;;;; 'hnas-cluster-2.6#hardware.temperature.celsius'=25C;;;; 'hnas-cluster-2.7#hardware.temperature.celsius'=43C;;;; 'hnas-cluster-2.8#hardware.temperature.celsius'=65C;;;; 'hnas-cluster-2.9#hardware.temperature.celsius'=37C;;;; 'hnas-cluster-2.10#hardware.temperature.celsius'=35C;;;; 'hardware.battery.count'=2;;;; 'hardware.fan.count'=8;;;; 'hardware.psu.count'=4;;;; 'hardware.sysdrive.count'=82;;;; 'hardware.temperature.count'=22;;;;
Checking temperatures
temperature 'hnas-cluster-1.0' status is 'ok' [instance: 1.0] [value: 28]
temperature 'hnas-cluster-1.1' status is 'ok' [instance: 1.1] [value: 28]
temperature 'hnas-cluster-1.2' status is 'ok' [instance: 1.2] [value: 31]
temperature 'hnas-cluster-1.3' status is 'ok' [instance: 1.3] [value: 26]
temperature 'hnas-cluster-1.4' status is 'ok' [instance: 1.4] [value: 23]
temperature 'hnas-cluster-1.5' status is 'ok' [instance: 1.5] [value: 27]
temperature 'hnas-cluster-1.6' status is 'ok' [instance: 1.6] [value: 27]
temperature 'hnas-cluster-1.7' status is 'ok' [instance: 1.7] [value: 45]
temperature 'hnas-cluster-1.8' status is 'ok' [instance: 1.8] [value: 67]
temperature 'hnas-cluster-1.9' status is 'ok' [instance: 1.9] [value: 38]
temperature 'hnas-cluster-1.10' status is 'ok' [instance: 1.10] [value: 38]
temperature 'hnas-cluster-2.0' status is 'ok' [instance: 2.0] [value: 29]
temperature 'hnas-cluster-2.1' status is 'ok' [instance: 2.1] [value: 25]
temperature 'hnas-cluster-2.2' status is 'ok' [instance: 2.2] [value: 26]
temperature 'hnas-cluster-2.3' status is 'ok' [instance: 2.3] [value: 28]
temperature 'hnas-cluster-2.4' status is 'ok' [instance: 2.4] [value: 21]
temperature 'hnas-cluster-2.5' status is 'ok' [instance: 2.5] [value: 25]
temperature 'hnas-cluster-2.6' status is 'ok' [instance: 2.6] [value: 25]
temperature 'hnas-cluster-2.7' status is 'ok' [instance: 2.7] [value: 43]
temperature 'hnas-cluster-2.8' status is 'ok' [instance: 2.8] [value: 65]
temperature 'hnas-cluster-2.9' status is 'ok' [instance: 2.9] [value: 37]
temperature 'hnas-cluster-2.10' status is 'ok' [instance: 2.10] [value: 35]
Checking fans
fan 'hnas-cluster-1.0' status is 'ok' [instance: 1.0] [value: ok]
fan 'hnas-cluster-1.1' status is 'ok' [instance: 1.1] [value: ok]
fan 'hnas-cluster-1.2' status is 'ok' [instance: 1.2] [value: ok]
fan 'hnas-cluster-1.3' status is 'ok' [instance: 1.3] [value: ok]
fan 'hnas-cluster-2.0' status is 'ok' [instance: 2.0] [value: ok]
fan 'hnas-cluster-2.1' status is 'ok' [instance: 2.1] [value: ok]
fan 'hnas-cluster-2.2' status is 'ok' [instance: 2.2] [value: ok]
fan 'hnas-cluster-2.3' status is 'ok' [instance: 2.3] [value: ok]
Checking power supplies
power supply 'hnas-cluster-1.0' status is 'ok' [instance: 1.0].
power supply 'hnas-cluster-1.1' status is 'ok' [instance: 1.1].
power supply 'hnas-cluster-2.0' status is 'ok' [instance: 2.0].
power supply 'hnas-cluster-2.1' status is 'ok' [instance: 2.1].
Checking system drives
system drive '8000000000000000' status is 'online' [instance: 8000000000000000].
system drive '8000000000000001' status is 'online' [instance: 8000000000000001].
system drive '8000000000000002' status is 'online' [instance: 8000000000000002].
system drive '8000000000000003' status is 'online' [instance: 8000000000000003].
system drive '8000000000000004' status is 'online' [instance: 8000000000000004].
system drive '8000000000000005' status is 'online' [instance: 8000000000000005].
system drive '8000000000000006' status is 'online' [instance: 8000000000000006].
system drive '8000000000000007' status is 'online' [instance: 8000000000000007].
system drive '8000000000000008' status is 'online' [instance: 8000000000000008].
system drive '8000000000000009' status is 'online' [instance: 8000000000000009].
system drive '800000000000000A' status is 'online' [instance: 800000000000000A].
system drive '800000000000000B' status is 'online' [instance: 800000000000000B].
system drive '800000000000000C' status is 'online' [instance: 800000000000000C].
system drive '800000000000000D' status is 'online' [instance: 800000000000000D].
system drive '800000000000000E' status is 'online' [instance: 800000000000000E].
system drive '800000000000000F' status is 'online' [instance: 800000000000000F].
system drive '8000000000000010' status is 'online' [instance: 8000000000000010].
system drive '8000000000000011' status is 'online' [instance: 8000000000000011].
system drive '8000000000000012' status is 'online' [instance: 8000000000000012].
system drive '8000000000000013' status is 'online' [instance: 8000000000000013].
system drive '8000000000000014' status is 'online' [instance: 8000000000000014].
system drive '8000000000000015' status is 'online' [instance: 8000000000000015].
system drive '8000000000000016' status is 'online' [instance: 8000000000000016].
system drive '8000000000000017' status is 'online' [instance: 8000000000000017].
system drive '8000000000000018' status is 'online' [instance: 8000000000000018].
system drive '8000000000000019' status is 'online' [instance: 8000000000000019].
system drive '800000000000001A' status is 'online' [instance: 800000000000001A].
system drive '800000000000001B' status is 'online' [instance: 800000000000001B].
system drive '800000000000001C' status is 'online' [instance: 800000000000001C].
system drive '800000000000001D' status is 'online' [instance: 800000000000001D].
system drive '800000000000001E' status is 'online' [instance: 800000000000001E].
system drive '800000000000001F' status is 'online' [instance: 800000000000001F].
system drive '8000000000000020' status is 'online' [instance: 8000000000000020].
system drive '8000000000000021' status is 'online' [instance: 8000000000000021].
system drive '8000000000000022' status is 'online' [instance: 8000000000000022].
system drive '8000000000000023' status is 'online' [instance: 8000000000000023].
system drive '8000000000000024' status is 'online' [instance: 8000000000000024].
system drive '8000000000000025' status is 'online' [instance: 8000000000000025].
system drive '8000000000000026' status is 'online' [instance: 8000000000000026].
system drive '8000000000000027' status is 'online' [instance: 8000000000000027].
system drive '8000000000000028' status is 'online' [instance: 8000000000000028].
system drive '8000000000000029' status is 'online' [instance: 8000000000000029].
system drive '800000000000002A' status is 'online' [instance: 800000000000002A].
system drive '800000000000002B' status is 'online' [instance: 800000000000002B].
system drive '800000000000002C' status is 'online' [instance: 800000000000002C].
system drive '800000000000002D' status is 'online' [instance: 800000000000002D].
system drive '800000000000002E' status is 'online' [instance: 800000000000002E].
system drive '800000000000002F' status is 'online' [instance: 800000000000002F].
system drive '8000000000000030' status is 'online' [instance: 8000000000000030].
system drive '8000000000000031' status is 'online' [instance: 8000000000000031].
system drive '8000000000000032' status is 'online' [instance: 8000000000000032].
system drive '8000000000000033' status is 'online' [instance: 8000000000000033].
system drive '8000000000000034' status is 'online' [instance: 8000000000000034].
system drive '8000000000000035' status is 'online' [instance: 8000000000000035].
system drive '8000000000000036' status is 'online' [instance: 8000000000000036].
system drive '8000000000000037' status is 'online' [instance: 8000000000000037].
system drive '8000000000000038' status is 'online' [instance: 8000000000000038].
system drive '8000000000000039' status is 'online' [instance: 8000000000000039].
system drive '800000000000003A' status is 'online' [instance: 800000000000003A].
system drive '800000000000003B' status is 'online' [instance: 800000000000003B].
system drive '800000000000003C' status is 'online' [instance: 800000000000003C].
system drive '800000000000003D' status is 'online' [instance: 800000000000003D].
system drive '800000000000003E' status is 'online' [instance: 800000000000003E].
system drive '800000000000003F' status is 'online' [instance: 800000000000003F].
system drive '8000000000000040' status is 'online' [instance: 8000000000000040].
system drive '8000000000000041' status is 'online' [instance: 8000000000000041].
system drive '8000000000000042' status is 'online' [instance: 8000000000000042].
system drive '8000000000000043' status is 'online' [instance: 8000000000000043].
system drive '8000000000000044' status is 'online' [instance: 8000000000000044].
system drive '8000000000000045' status is 'online' [instance: 8000000000000045].
system drive '8000000000000046' status is 'online' [instance: 8000000000000046].
system drive '8000000000000047' status is 'online' [instance: 8000000000000047].
system drive '8000000000000048' status is 'online' [instance: 8000000000000048].
system drive '8000000000000049' status is 'online' [instance: 8000000000000049].
system drive '800000000000004A' status is 'online' [instance: 800000000000004A].
system drive '800000000000004B' status is 'online' [instance: 800000000000004B].
system drive '800000000000004C' status is 'online' [instance: 800000000000004C].
system drive '800000000000004D' status is 'online' [instance: 800000000000004D].
system drive '800000000000004E' status is 'online' [instance: 800000000000004E].
system drive '800000000000004F' status is 'online' [instance: 800000000000004F].
system drive '8000000000000050' status is 'online' [instance: 8000000000000050].
system drive '8000000000000051' status is 'online' [instance: 8000000000000051].
Checking batteries
battery 'hnas-cluster-1.0' status is 'ok' [instance: 1.0].
battery 'hnas-cluster-2.0' status is 'ok' [instance: 2.0].
Troubleshooting​
Please find the troubleshooting documentation for Centreon Plugins typical issues.
Available modes​
All available modes can be displayed by adding the --list-mode
parameter to
the command:
/usr/lib/centreon/plugins//centreon_hitachi_hnas_snmp.pl \
--plugin=storage::hitachi::hnas::snmp::plugin \
--list-mode
The plugin brings the following modes:
Mode | Linked service template |
---|---|
cluster-status | HW-Storage-Hitachi-Hnas-Cluster-Status-SNMP |
hardware | HW-Storage-Hitachi-Hnas-Hardware-Global-SNMP |
interfaces | HW-Storage-Hitachi-Hnas-Interfaces-SNMP |
list-interfaces | Used for service discovery |
list-volumes | Not used in this Monitoring Connector |
virtual-volumes-quotas | HW-Storage-Hitachi-Hnas-Virtual-Volumes-Quotas-SNMP |
volume-usage | HW-Storage-Hitachi-Hnas-Volume-Usage-Global-SNMP |
Available options​
Generic options​
All generic options are listed here:
Option | Description | Type |
---|---|---|
--mode | Define the mode in which you want the plugin to be executed (see--list-mode). | Global |
--dyn-mode | Specify a mode with the module's path (advanced). | Global |
--list-mode | List all available modes. | Global |
--mode-version | Check minimal version of mode. If not, unknown error. | Global |
--version | Display the plugin's version. | Global |
--pass-manager | Define the password manager you want to use. Supported managers are: environment, file, keepass, hashicorpvault and teampass. | Global |
--verbose | Display extended status information (long output). | Output |
--debug | Display debug messages. | Output |
--filter-perfdata | Filter perfdata that match the regexp. Eg: adding --filter-perfdata='avg' will remove all metrics that do not contain 'avg' from performance data. | Output |
--filter-perfdata-adv | Filter perfdata based on a "if" condition using the following variables: label, value, unit, warning, critical, min, max. Variables must be written either %{variable} or %(variable). Eg: adding --filter-perfdata-adv='not (%(value) == 0 and %(max) eq "")' will remove all metrics whose value equals 0 and that don't have a maximum value. | Output |
--explode-perfdata-max | Create a new metric for each metric that comes with a maximum limit. The new metric will be named identically with a '_max' suffix). Eg: it will split 'used_prct'=26.93%;0:80;0:90;0;100 into 'used_prct'=26.93%;0:80;0:90;0;100 'used_prct_max'=100%;;;; | Output |
--change-perfdata --extend-perfdata | Change or extend perfdata. Syntax: --extend-perfdata=searchlabel,newlabel,target[,[newuom],[min],[m ax]] Common examples: Change storage free perfdata in used: --change-perfdata=free,used,invert() Change storage free perfdata in used: --change-perfdata=used,free,invert() Scale traffic values automaticaly: --change-perfdata=traffic,,scale(auto) Scale traffic values in Mbps: --change-perfdata=traffic_in,,scale(Mbps),mbps Change traffic values in percent: --change-perfdata=traffic_in,,percent() | Output |
--extend-perfdata-group | Extend perfdata from multiple perfdatas (methods in target are: min, max, average, sum) Syntax: --extend-perfdata-group=searchlabel,newlabel,target[,[newuom],[m in],[max]] Common examples: Sum wrong packets from all interfaces (with interface need --units-errors=absolute): --extend-perfdata-group=',packets_wrong,sum(packets_(discard |error)_(in|out))' Sum traffic by interface: --extend-perfdata-group='traffic_in_(.*),traffic_$1,sum(traf fic_(in|out)_$1)' | Output |
--change-short-output --change-long-output | Modify the short/long output that is returned by the plugin. Syntax: --change-short-output=pattern~replacement~modifier Most commonly used modifiers are i (case insensitive) and g (replace all occurrences). Eg: adding --change-short-output='OK~Up~gi' will replace all occurrences of 'OK', 'ok', 'Ok' or 'oK' with 'Up' | Output |
--change-exit | Replace an exit code with one of your choice. Eg: adding --change-exit=unknown=critical will result in a CRITICAL state instead of an UNKNOWN state. | Output |
--range-perfdata | Change perfdata range thresholds display: 1 = start value equals to '0' is removed, 2 = threshold range is not display. | Output |
--filter-uom | Masks the units when they don't match the given regular expression. | Output |
--opt-exit | Replace the exit code in case of an execution error (i.e. wrong option provided, SSH connection refused, timeout, etc). Default: unknown. | Output |
--output-ignore-perfdata | Remove all the metrics from the service. The service will still have a status and an output. | Output |
--output-ignore-label | Remove the status label from the beginning of the output. Eg: 'OK: Ram Total:...' will become 'Ram Total:...' | Output |
--output-xml | Display output in XML format. | Output |
--output-json | Display output in JSON format. | Output |
--output-openmetrics | Display metrics in OpenMetrics format. | Output |
--output-file | Write output in file (can be used with json and xml options) | Output |
--disco-format | Display discovery arguments (if the mode manages it). | Output |
--disco-show | Display discovery values (if the mode manages it). | Output |
--float-precision | Set the float precision for thresholds (default: 8). | Output |
--source-encoding | Set encoding of monitoring sources (in some cases. Default: 'UTF-8'). | Output |
--hostname | Hostname to query (required). | SNMP |
--snmp-community | Read community (defaults to public). | SNMP |
--snmp-version | Version: 1 for SNMP v1 (default), 2 for SNMP v2c, 3 for SNMP v3. | SNMP |
--snmp-port | Port (default: 161). | SNMP |
--snmp-timeout | Timeout in secondes (default: 1) before retries. | SNMP |
--snmp-retries | Set the number of retries (default: 5) before failure. | SNMP |
--maxrepetitions | Max repetitions value (default: 50) (only for SNMP v2 and v3). | SNMP |
--subsetleef | How many oid values per SNMP request (default: 50) (for get_leef method. Be cautious when you set it. Prefer to let the default value). | SNMP |
--snmp-autoreduce | Auto reduce SNMP request size in case of SNMP errors (By default, the divisor is 2). | SNMP |
--snmp-force-getnext | Use snmp getnext function (even in snmp v2c and v3). | SNMP |
--snmp-cache-file | Use SNMP cache file. | SNMP |
--snmp-username | Security name (only for SNMP v3). | SNMP |
--authpassphrase | Authentication protocol pass phrase. | SNMP |
--authprotocol | Authentication protocol: MD5|SHA. Since net-snmp 5.9.1: SHA224|SHA256|SHA384|SHA512. | SNMP |
--privpassphrase | Privacy protocol pass phrase | SNMP |
--privprotocol | Privacy protocol: DES|AES. Since net-snmp 5.9.1: AES192|AES192C|AES256|AES256C. | SNMP |
--contextname | Context name | SNMP |
--contextengineid | Context engine ID | SNMP |
--securityengineid | Security engine ID | SNMP |
--snmp-errors-exit | Exit code for SNMP Errors (default: unknown) | SNMP |
--snmp-tls-transport | TLS Transport communication used (can be: 'dtlsudp', 'tlstcp'). | SNMP |
--snmp-tls-our-identity | Our X.509 identity to use, which should either be a fingerprint or the filename that holds the certificate. | SNMP |
--snmp-tls-their-identity | The remote server's identity to connect to, specified as either a fingerprint or a file name. Either this must be specified, or the hostname below along with a trust anchor. | SNMP |
--snmp-tls-their-hostname | The remote server's hostname that is expected. If their certificate was signed by a CA then their hostname presented in the certificate must match this value or the connection fails to be established (to avoid man-in-the-middle attacks). | SNMP |
--snmp-tls-trust-cert | A trusted certificate to use as trust anchor (like a CA certificate) for verifying a remote server's certificate. If a CA certificate is used to validate a certificate then the TheirHostname parameter must also be specified to ensure their presented hostname in the certificate matches. | SNMP |
Modes options​
All modes specific options are listed here:
- Cluster-Status
- Hardware-Global
- Interfaces
- Virtual-Volumes-Quotas
- Volume-Usage-Global
Option | Description | Type |
---|---|---|
--filter-name | Filter node name (can be a regexp). | Mode |
--unknown-status | Set unknown threshold for status (Default: '%{state} =~ /unknown/'). You can use the following variables: %{state}, %{display} | Mode |
--warning-status | Set warning threshold for status (Default: -). You can use the following variables: %{state}, %{display} | Mode |
--critical-status | Set critical threshold for status (Default: '%{state} =~ /offline/i'). You can use the following variables: %{state}, %{display} | Mode |
Option | Description | Type |
---|---|---|
--component | Which component to check (Default: '.*'). Can be: 'temperature', 'fan', 'psu', 'sysdrive', 'battery'. | Mode |
--filter | Exclude some parts (comma seperated list) (Example: --filter=sysdrive) Can also exclude specific instance: --filter=sysdrive,1 | Mode |
--no-component | Return an error if no compenents are checked. If total (with skipped) is 0. (Default: 'critical' returns). | Mode |
--threshold-overload | Set to overload default threshold values (syntax: section,[instance,]status,regexp) It used before default thresholds (order stays). Example: --threshold-overload='sysdrive,OK,formatting' | Mode |
--warning | Set warning threshold (syntax: type,regexp,threshold) Example: --warning='temperature,.*,30' | Mode |
--critical | Set critical threshold (syntax: type,regexp,threshold) Example: --critical='temperature,.*,40' | Mode |
Option | Description | Type |
---|---|---|
--memcached | Memcached server to use (only one server). | Retention |
--redis-server | Redis server to use (only one server). Syntax: address[:port] | Retention |
--redis-attribute | Set Redis Options (--redis-attribute="cnx_timeout=5"). | Retention |
--redis-db | Set Redis database index. | Retention |
--failback-file | Failback on a local file if redis connection failed. | Retention |
--memexpiration | Time to keep data in seconds (Default: 86400). | Retention |
--statefile-dir | Directory for statefile (Default: '/var/lib/centreon/centplugins'). | Retention |
--statefile-suffix | Add a suffix for the statefile name (Default: ''). | Retention |
--statefile-concat-cwd | Concat current working directory with option '--statefile-dir'. Useful on Windows when plugin is compiled. | Retention |
--statefile-format | Format used to store cache (can be: 'dumper', 'storable', 'json'). | Retention |
--statefile-key | Key to encrypt/decrypt cache. | Retention |
--statefile-cipher | Cipher to encrypt cache (Default: 'AES'). | Retention |
--add-global | Check global port statistics (By default if no --add-* option is set). | Mode |
--add-status | Check interface status. | Mode |
--add-duplex-status | Check duplex status (with --warning-status and --critical-status). | Mode |
--add-traffic | Check interface traffic. | Mode |
--add-errors | Check interface errors. | Mode |
--add-cast | Check interface cast. | Mode |
--add-speed | Check interface speed. | Mode |
--add-volume | Check interface data volume between two checks (not supposed to be graphed, useful for BI reporting). | Mode |
--check-metrics | If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). | Mode |
--warning-status | Set warning threshold for status. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} | Mode |
--critical-status | Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} | Mode |
--warning- --critical- | Thresholds. Can be: 'total-port', 'total-admin-up', 'total-admin-down', 'total-oper-up', 'total-oper-down', 'in-traffic', 'out-traffic', 'in-error', 'in-discard', 'out-error', 'out-discard', 'in-ucast', 'in-bcast', 'in-mcast', 'out-ucast', 'out-bcast', 'out-mcast', 'speed' (b/s). | Mode |
--units-traffic | Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', 'bps', 'counter'). | Mode |
--units-errors | Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). | Mode |
--units-cast | Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). | Mode |
--nagvis-perfdata | Display traffic perfdata to be compatible with nagvis widget. | Mode |
--interface | Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). | Mode |
--name | Allows to use interface name with option --interface instead ofinterface oid index (Can be a regexp) | Mode |
--speed | Set interface speed for incoming/outgoing traffic (in Mb). | Mode |
--speed-in | Set interface speed for incoming traffic (in Mb). | Mode |
--speed-out | Set interface speed for outgoing traffic (in Mb). | Mode |
--map-speed-dsl | Get interface speed configuration for interface type 'adsl' and 'vdsl2'. Syntax: --map-speed-dsl=interface-src-name,interface-dsl-name E.g: --map-speed-dsl=Et0.835,Et0-vdsl2 | Mode |
--force-counters64 | Force to use 64 bits counters only. Can be used to improve performance. | Mode |
--force-counters32 | Force to use 32 bits counters (even in snmp v2c and v3). Should be used when 64 bits counters are buggy. | Mode |
--reload-cache-time | Time in minutes before reloading cache file (default: 180). | Mode |
--oid-filter | Choose OID used to filter interface (default: ifDesc) (values: ifDesc, ifAlias, ifName, IpAddr). | Mode |
--oid-display | Choose OID used to display interface (default: ifDesc) (values: ifDesc, ifAlias, ifName, IpAddr). | Mode |
--oid-extra-display | Add an OID to display. | Mode |
--display-transform-src | Regexp src to transform display value. | Mode |
--display-transform-dst | Regexp dst to transform display value. | Mode |
--show-cache | Display cache interface datas. | Mode |
Option | Description | Type |
---|---|---|
--filter-filesystem-label | Filter virtual volume quota by filesystem label. | Mode |
--filter-volume-name | Filter virtual volumes quota by volume name. | Mode |
--filter-target | Filter virtual volumes quota by target. | Mode |
--warning- --critical- | Thresholds. Can be: 'vvq-detected', 'vvq-usage', 'vvq-usage-free', 'vvq-usage-prct', 'vvq-files', 'vvq-files-free', 'vvq-files-prct'. | Mode |
Option | Description | Type |
---|---|---|
--filter-counters | Only display some counters (regexp can be used). Example: --filter-counters='^status$' | Mode |
--filter-name | Filter volume name (can be a regexp). | Mode |
--warning-status | Set warning threshold for status (Default: '%{status} =~ /needsChecking/i'). You can use the following variables: %{status}, %{display} | Mode |
--critical-status | Set critical threshold for status (Default: -). You can use the following variables: %{status}, %{display} | Mode |
--warning- --critical- | Thresholds. Can be: 'usage'. | Mode |
--units | Units of thresholds (Default: '%') ('%', 'B'). | Mode |
--free | Thresholds are on free space left. | Mode |
All available options for a given mode can be displayed by adding the
--help
parameter to the command:
/usr/lib/centreon/plugins//centreon_hitachi_hnas_snmp.pl \
--plugin=storage::hitachi::hnas::snmp::plugin \
--mode=interfaces \
--help