Check NetApp-SnapCenter checks the SnapCenter database for failed or missing jobs.
Create the directory /usr/local/monitoring-plugins.pro/netapp-snapcenter/var/support
(if it does not already exist) and untar the downloaded archive to it.
mkdir -p /usr/local/monitoring-plugins.pro/netapp-snapcenter/var/support
tar -xzf check-netapp-snapcenter-1.0.0.tar.gz --directory /usr/local/monitoring-plugins.pro/netapp-snapcenter/
Copy the license file to its default directory. Since Check NetApp-SnapCenter is part of the Check NetAppPRO-suite it does not require a special license.
cp CNR-00000-00000_check_netapp_pro.dat /usr/local/monitoring-plugins.pro/netapp-snapcenter/etc
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/netapp-snapcenter
chown -R nagios netapp-rest/
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 have not more than read-only rights since its credentials will be stored in plain text.
Adapt the example configuration.
Write the credentials of the database-user created in the previous step into the commands-file:
cd /usr/local/monitoring-plugins.pro/netapp-snapcenter/etc/
vi commands.cfg
...
Also the hosts.cfg
will need your attention (tell it about the host-names which should get monitored)
vi hosts.cfg
...
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
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.
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).