Installation

Check NetApp-SnapCenter checks the SnapCenter database for failed or missing jobs.

Installation Steps

  1. Create the directory /usr/local/monitoring-plugins.pro/netapp-snapcenter/var/support (if it does not already exist) and untar the downloaded archive to its target dir.

    mkdir -p /usr/local/monitoring-plugins.pro/netapp-snapcenter/var/support
    tar -xzf check-netapp-snapcenter-1.1.0.tar.gz --directory /usr/local/monitoring-plugins.pro/netapp-snapcenter/
    
    Why var/support ...
    Explanation of the tar command ...
  2. Copy the license file to its default directory.

    mkdir /usr/local/monitoring-plugins.pro/netapp-snapcenter/etc
    cp CNR-00000-00000_check_netapp_pro.dat /usr/local/monitoring-plugins.pro/netapp-snapcenter/etc
    

    The example-configuration directory contains a license.cfg that will monitor the above directory for expiring licenses. More information about the license file and how to check for expiration can be found in the chapter License File.

  3. Change the owner of the files to the monitoring-daemons user. (In the example below, change the username from nagios to e.g. icinga or whatever your daemon runs with.)

    cd /usr/local/monitoring-plugins.pro/
    chown -R nagios netapp-snapcenter/
    
  4. Create a monitoring user for the database server. The SnapCenter check does not get its data from the filer but from the database used by the SnapCenter application. This user should not have more than read-only rights since its credentials will be stored in plain text.

    Read more about how to create that user ...
  5. Adapt the example configuration.

    • Copy the example-files to etc/:

      cd /usr/local/monitoring-plugins.pro/netapp-snapcenter/
      cp etc.example/* etc/
      
    • Write the credentials of the database-user created in the previous step into the commands.cfg file:

      vi etc/commands.cfg
      ...
      
    • Also the hosts.cfg will need your attention (tell it about the host-names which should get monitored)

      vi etc/hosts.cfg
      ...
      
  6. Let the monitoring system know about the location of the configuration files. E.g. on Nagios or Icinga add the following line to the main configuration file (nagios.cfg, icinga.cfg, …)

    cfg_dir=/usr/local/monitoring-plugins.pro/netapp-snapcenter/etc
    

Result

After these steps you can reload the monitoring-servers configuration and should see the results.

By default check_netapp_snapcenter will query Backup-jobs only. So if there are no Backup-jobs you will get 0 results. You can change this job-type filter to whatever you want (search for the --job-type parameter in the command-line help). See below for details.

Consult --help on the commandline for the many options offered by this check.

Job Type Details

As already mentioned above by default Check NetApp-SnapCenter will query Backup-jobs only. You can change that behavior with the --job-type parameter. But the exact spelling of the job-type in the database differs sometimes from its spelling in the SnapCenters GUI. You will find the database-spelling in the output of our checks together with their job-id. You must use the database-spelling for the --job-type parameter.

Example:

70125 : Backup of Resource Group ''L0001_VMWARE'' with policy ''daily7withRepl'' : 2020-12-02 04:00:14 : 2020-12-02 04:52:55 : Backup : Completed

Explanation: This line is for the job with ID 70125 and its type is Backup (which is the default).