LogicMonitor seeks to disrupt AI landscape with $800M strategic investment at $2.4B valuation to revolutionize data centers.

Learn More

NetApp FAS Monitoring

Last updated on 10 October, 2024

Overview

There are two kinds of data collection methods used for monitoring NetApp Fabric Attached Storage (FAS) systems (also commonly referred to as Filers):

  • NetApp API
  • SNMP

For comprehensive monitoring, both NetApp API and SNMP access must be configured. This article will walk you through setup and configuration for the various available NetApp modes:

Note: By default, LogicMonitor will access the NetApp API over port 443, using HTTPS. However, older LogicMonitor accounts may default to accessing the NetApp API over HTTP on port 80, which can prevent data retrieval. If you are experiencing this behavior, set the netapp.ssl property to a value of TRUE at the root folder level of the Resources tree.

Cluster Mode (CDOT)

Enabling SNMP

SSH to a cluster management address. To display the current SNMP configuration:

scenariolab::> system snmp community show
scenariolab
ro  Logically

To create a new SNMP community:

scenariolab::> system snmp community add -type ro -community-name secret 

Confirm SNMP configuration:

scenariolab::> system snmp community show
scenariolab ro  Logically
ro secret

Enabling NetApp API

To create an API user with the example name of logicmonitor in the context of the cluster:

security login create -username logicmonitor -application ontapi -authmethod password  -role readonly

You should define the snmp.community, netapp.user, and netapp.pass properties for the host to allow access.

Cluster Mode SVMs (vFiler)

In order to get complete monitoring of, and be able delegate access to, Storage Virtual Machines on NetApp Cluster mode, it is necessary to add the SVMs as separate devices, and enable both SNMP and API access on the SVM itself. The steps required to do so are:

  1. Add an SNMP community for the SVM.
  2. Ensure SNMP is allowed by the firewall configuration of the interface of the SVM: determine the interface used by the SVM, the firewall policy, and amend if needed.
  3. Enable API access by allowing API access through the SVM firewall, and creating an API user.

In the following example, we will enable access on the images server.

Enabling SNMP

First, we can check the current SNMP configuration:

scenariolab::> system snmp community show
scenariolab
ro  Logically

Add SNMP community for the SVM (server) images:

scenariolab::> system snmp community add -type ro -community-name Logical -vserver images

Confirm SNMP configuration:

scenariolab::> system snmp community show
images
ro  Logical
scenariolab
ro  Logically

You can determine the firewall policy used by the interface for a vserver with the following command:

network interface show  -fields firewall-policy
vserver lif  firewall-policy
------- ---- ---------------
foo     lif2 data
images  lif1 data

You can then determine if the policy for the server in question (images, using the data policy in our case) allows snmp:

scenariolab::> firewall policy show -service snmp
(system services firewall policy show)
Policy           Service    Action IP-List
---------------- ---------- ------ --------------------
cluster           snmp       allow  0.0.0.0/0
data              snmp       deny   0.0.0.0/0
intercluster      snmp       deny   0.0.0.0/0
mgmt              snmp       allow  0.0.0.0/0

As the data policy does not allow SNMP, we could either amend the firewall policy, or create a new one. In this case, we will create a new firewall policy:

system services firewall policy create -policy data1 -service snmp -action allow -ip-list 0.0.0.0/0
scenariolab::> firewall policy show -service snmp
(system services firewall policy show)
Policy           Service    Action IP-List
---------------- ---------- ------ --------------------
cluster           snmp       allow  0.0.0.0/0
data              snmp       deny   0.0.0.0/0
data1             snmp       allow  0.0.0.0/0
intercluster      snmp       deny   0.0.0.0/0
mgmt              snmp       allow  0.0.0.0/0

We can now assign new policy to the interface used by the vserver images (lif1):

network interface modify -vserver images -lif lif1 -firewall-policy data1

SNMP is now enabled

Enabling NetApp API

To enable API access the SVM, we must allow HTTP/HTTPS access through the firewall policy used by the SVM’s interfaces. These commands add HTTP and HTTPS access to the new firewall policy we created above, that is already applied to the interface for the vserver images.

system service firewall policy create  -policy data1 -service http -action allow -ip-list 0.0.0.0/0
system service firewall policy create  -policy data1 -service https -action allow -ip-list 0.0.0.0/0

Now we just need to create an API user in the context of this vserver:

security login create -username logicmonitor -application ontapi -authmethod password -vserver images -role vsadmin

You can now add the SVM as a host to LogicMonitor. You should define the snmp.community, netapp.user, and netapp.pass properties for the host to allow access.

Non-Cluster Mode (7-Mode)

Notes:

  • In OnTap 8 and later, you must explicitly enable HTTP access for the API: options httpd.admin.enable on
  • Using GD Collectors 22.0 or 21.0 requires TLS to be enabled (command line “options tls.enable on”) to monitor 7-Mode NetApp

Enabling NetApp API

It is recommended that you create a new NetApp account with the  privileges detailed below.

To create a new user called logicmonitor with only API access, on your NetApp filers perform these operations:

useradmin role add APIrole -a api-*,login-http-admin
useradmin group add APIGroup -r APIRole
useradmin user add logicmonitor -g APIGroup
New password:<secret>
Retype new password:<secret>

Note: To create a role with the current minimum API rights required, substitute this command for the command above, or use useradmin role modify if the role already exists:

useradmin role add APIrole -a login-http-admin,api-perf*,api-disk-list*,api-volume-list*,api-system-get*

This grants read only API access sufficient for the current NetApp datasources, but may not be sufficient for future datasources that may use different API calls.).

You would then specify these properties in LogicMonitor:

netapp.user=logicmonitor
netapp.pass=<secret>

By default, LogicMonitor will access the NetApp API over port 443, using HTTPS. To change the port that LogicMonitor will connect to the API on, set the property netapp.api.sslport to the appropriate port.

If you wish to access the API using HTTP, instead of SSL:

  • Set the netapp.ssl property (globally, per group, or for a host)  to “false” to disable SSL access.
  • netapp.api.port will default to 80. If you wish to connect via HTTP to another port, set this property appropriately.

Enabling SNMP

Perform these operations from the netapp CLI:

options snmp.enable                  on
snmp community add ro <secret>

Note: if you have changed the default settings of options trusted.hosts or options snmp.access, ensure that the IP address of the collector for the filer is added to those options.  You can check your SNMP settings by simply entering snmp at the command line:

labfiler01> snmp
 contact:
 ~
 location:
 ~ PDT
 authtrap:
 ~ 0
 init:
 ~ 1
 traphosts:
 community:
 ~ ro public

SSH Messages in NetApp Syslog

After enabling LogicMonitor to monitor a NetApp, usually the NetApp will start logging messages similar to:

[openssh.versionExchange.Fail:error]: Did not receive identification string from X.X.X.X

This is due to the fact that LogicMonitor checks the responsiveness of SSH on the NetApp, but does not complete an actual log in. The messages are harmless, but you can disable LogicMonitor’s checking of SSH on the device if you wish to not generate the messages. (Of course, this will also prevent alerting if SSH fails to respond on the device.)

LogicModules in Packages

LogicMonitor offers two different packages for NetAPP FAS monitoring, depending on whether your NetApp system is running in a Cluster-Mode (CDOT) or 7-Mode environment; some LogicModules are shared across both packages.

NameTypeDescription

LogicModules Shared by Both Packages

addCategory_NetAppPropertySourceIdentifies the NetApp host, discovers if SSL is being used, what mode it’s running in (7 mode or Cluster mode), and assigns a system category of either ‘NetApp_7Mode’ or ‘NetApp_ClusterMode’.
NetApp_System_InfoPropertySourceDiscovers NetApp host meta data and configurations such as OnTAPI version, operating mode (7mode or Cluster mode), system version, model, processor and memory.
NetAppIf-DataSourceNetApp interface statistics using 64 bit counters
NetAppSnapVault-DataSourceSnapVault status

LogicModules in Cluster-Mode Package

NetApp_Cluster_iSCSIDataSourceMonitors iSCSI interface performance metrics such as IOPS, throughput, latency, SCSI commands, login activity and errors.
NetApp_Cluster_VolumesDataSourceMonitors NetApp volumes storage and performance metrics.
NetApp_Cluster_VoltageSensorsDataSourceMonitors environmental voltage sensor readings and operating status.
NetApp_Cluster_TemperatureSensorsDataSourceMonitors environmental temperature value and sensor operating status.
NetApp_Cluster_StorageAdaptersDataSourceMonitors the NetApp host storage adapters health and performance metrics.
NetApp_Cluster_SnapshotsDataSourceMonitors NetApp snapshot age, storage space and busy state.
NetApp_Cluster_SnapMirrorDataSourceMonitors SnapMirror health status, relationship status, mirror state, data transfer, etc.
NetApp_Cluster_ShelfBayHealthDataSourceMonitors NetApp shelf bay health status.
NetApp_Cluster_SVMPeersDataSourceMonitors the SVM peer relationship state.
NetApp_Cluster_SVMDataSourceMonitors the storage virtual machines (SVM) operating status.
NetApp_Cluster_RAIDDataSourceMonitors NetApp RAID performance metrics.
NetApp_Cluster_QuotasDataSourceMonitors quota operating states and blocks.
NetApp_Cluster_QTreeDataSourceMonitors the current operating state of the QTree.
NetApp_Cluster_PolicyGroupsDataSourceMonitors the NetApp Policy Group performance metrics.
NetApp_Cluster_PSUDataSourceMonitors NetApp power supply unit operating status.
NetApp_Cluster_NodesDataSourceMonitors NetApp cluster nodes uptime, environment temperature status and failed components.
NetApp_Cluster_NFSDataSourceMonitors NetApp Network File System (NFS) performance metrics such as IOPS, throughput, errors, operation details and latency.
NetApp_Cluster_InterfacesDataSourceMonitors NetApp logical interface operating status, home status, packet transmission, data throughput, errors and uptime.
NetApp_Cluster_LUNsDataSourceMonitors NetApp LUN performance metrics such as IOPS, data throughput, operating state, latency, storage details/utilization, WAFL errors, etc.
NetApp_Cluster_HighAvailabilityDataSourceMonitors the high availability takeover/giveback operation success, failure, attempt and duration.
NetApp_Cluster_HAInterconnectPairDataSourceMonitors the cluster high availability pair communications.
NetApp_Cluster_GlobalPerformanceDataSourceMonitors NetApp global performance.
NetApp_Cluster_FibreChannelDataSourceMonitors the NetApp fibre-channel adapter performance metrics such as IOPS, data throughput, latency, Rx/TX power and operating state.
NetApp_Cluster_FanSensorsDataSourceMonitors system fan operating status and speed (RPM).
NetApp_Cluster_FailoverDataSourceMonitors NetApp failover node state.
NetApp_Cluster_FCPInitiatorsDataSourceMonitors Fiber Channel Port Initiator IOPS, Throughput, Latency, Command Activity, etc.
NetApp_Cluster_DisksDataSourceMonitors NetApp disk performance metrics.
NetApp_Cluster_StatusDataSourceAn overview of the status of the disks on a NetApp Cluster node.
NetApp_Cluster_CurrentSensorsDataSourceMonitors NetApp current sensor operating status and amperage readings.
NetApp_Cluster_PeerDataSourceMonitors the NetApp cluster peer health status, node availability and ping checks.
NetApp_Cluster_CIFSDataSourceMonitors NetApp CIFS (Common Internet File System) performance metrics.
NetApp_Cluster_BatteryLifeSensorsDataSourceMonitors the NetApp battery sensor operating state and runtime.
NetApp_Cluster_AggregateDataSourceMonitors the NetApp cluster aggregate performance metrics.
NetApp_Cluster_TopologyTopologySourceGenerates NetApp cluster mode topologies, including disks, volumes, and initiator edges.

LogicModules in 7-Mode Package

NetApp_7mode_vFilerDataSourceMonitors vFiler performance metrics such as CPU utilization, IOPS, data & network throughput.
NetApp_7mode_iSCSIDataSourceMonitors the NetApp iSCSI IOPS, throughput and latency performance metrics.
NetApp_7mode_WAFLDataSourceMonitors the NetApp Write-Anywhere-Filesystem (WAFL) performance metrics such as buffer cache hits/misses, directory hits/misses, inode cache hits/misses, latency, memory, message transmission and operations.
NetApp_7mode_VolumesDataSourceMonitors NetApp volume storage and performance metrics.
NetApp_7mode_VoltageSensorsDataSourceMonitors the voltage sensors in system.
NetApp_7mode_TemperatureSensorsDataSourceMonitors the temperature sensors in system.
NetApp_7mode_TargetsDataSourceMonitors NetApp target performance metrics such as IOPS, throughput, latency, frame discards, and queue.
NetApp_7mode_SnapshotsDataSourceMonitors NetApp volume snapshot age, storage space and busy state.
NetApp_7mode_SnapshotSchedulerDataSourceMonitors the NetApp Snapshots to ensure they follow their configured schedule.
NetApp_7mode_SnapmirrorDataSourceMonitors NetApp SnapMirror lag time, status and last transfer metrics.
NetApp_7mode_RAIDDataSourceMonitors the NetApp RAID block, stripe and tetris operations.
NetApp_7mode_QTreeDataSourceMonitors QTree NFS, CIFS and internal operations.
NetApp_7mode_PowerSuppliesDataSourceMonitors sensor operating status on the power supplies.
NetApp_7mode_NICDataSourceMonitors NetApp NIC (Network Interface Card) performance metrics such as operating state, throughput and frame transmission.
NetApp_7mode_NFSDataSourceMonitors NetApp NFSv3 and NFSv4 performance metrics such as IOPS, latency and calls.
NetApp_7mode_LUNsDataSourceMonitors NetApp LUN operational and performance metrics such as operating state, IOPS, throughput, latency, queue, storage utilization, etc.
NetApp_7mode_HostAdaptersDataSourceMonitors NetApp host adapter IOPS, data throughput, operating status and redundancy.
NetApp_7mode_GlobalPerformanceDataSourceMonitors NetApp global performance metrics.
NetApp_7mode_FansDataSourceMonitors NetApp cooling chassis fan operating state and RPM.
NetApp_7mode_DisksDataSourceMonitors NetApp disk health and performance metrics.
NetApp_7mode_StatusDataSourceAn overview of the status of the disks on a NetApp 7mode node.
NetApp_7mode_CurrentSensorsDataSourceMonitors the current sensors in system.
NetApp_7mode_ClusteringServicesDataSourceMonitors NetApp high availability clustering services.
NetApp_7mode_CableConnectorsDataSourceMonitors NetApp shelf cables and connectors.
NetApp_7mode_AggregatesDataSourceMonitors NetApp aggregate performance and storage metrics.
NetApp_7mode_TopologyTopologySourceGenerates NetApp 7mode topologies, including disks, volumes, and initiator edges.
In This Article