Documentation
PerfIf-Check
Checks transfer and errors per ethernet interface.
Usage
$ check_netapp.pl PerfIf -H <hostname|IP> -u <user%pass> -z recv_data|send_data|recv_errors|... -w -c [--help] [...]
Description
This plugin checks various performance counters of a NetApps ethernet interface. The counters supported by this plugin are: recv_drop_packets, recv_mcasts, recv_data, collisions, send_packets, send_mcasts, recv_errors, send_errors, send_data, recv_packets WHICH COUNTERS CAN I MONITOR? Short answer: use --explore=counters Long answer: Not all counters are supported on every system. The plugin will tell you, if you have chosen a non-existing counter and exit with UNKNOWN. To get a list of supported counters, available on the particular system use --explore=counters. Performance-data will be printed for all checked interfaces. Consider using -v for debugging, if you are not satisfied with the result.
Simple Examples
Note: The '-u' switch is missing in all the following examples, so the filer-credentials are taken from the default-file: '/usr/local/nagios/etc/netapp_credentials'
$ check_netapp PerfIf -H filer -z recv_data -w 2000B/s -c 3000B/s -n e0c
Check the data received on interface e0c - warn if data rate is greater than 2000 Byte per second, exit critical if data rate is greater than 3000.
$ check_netapp PerfIf -H filer -z recv_data -w 2000 -c 3000 -n e0c
Same as above, but auto-detecting the unit.Please read the help section about --warning to understand the effect this feature might have on the performance.
$ check_netapp PerfIf -H filer -z recv_errors -w 20/s -c 50/s
Warn if more than 20 errors per second when receiving packets.
Advanced Examples
Note: Host- and credential-arguments are omitted. So you have to fill in -H$ check_netapp PerfIf -H filer --explore=counters
List all available interface counters on the target system.
$ check_netapp PerfIf -H filer --explore=instances
List all available interfaces on the target system.
$ check_netapp PerfIf -H filer -z recv_errors -w 20/s -c 50/s -I ^e\d
Check all interfaces, whose name starts with 'e' followed by a number. Eg. e0a, e0b, e1a, ...Please read the help of the Usage-module for more examples about the --include and --exclude-switches.