Netapp3.pl
Posted: Mon Aug 16, 2010 5:39 am
Stupid question maybe... I want to use the netapp3.pl script as posted in on Nagios Exchange.
Question I have... it does not seem possible to give more then one variable to the script, or do I misunderstand the way the script works? This is the help file...
/check_netapp3.pl --help
check_netapp plugin for Nagios monitors the status of a NetApp system
Usage:
-H, --hostname
hostname to query (required)
-C, --community
SNMP read community (defaults to public)
-t, --timeout
seconds before the plugin times out (default=15)
-p, --port
SNMP port (default 161)
-P, --snmp_version
1 for SNMP v1 (default),
2 for SNMP v2c
3 for SNMP v3 (requires -U & -L)
-L, --seclevel
"noAuthNoPriv"
"authNoPriv" (requires -a & -A)
"authpriv" (requires -a -x & -A)
-U, --secname
user name for SNMPv3 context
-a, --authproto
authentication protocol (MD5 or SHA1)
-A, --authpass
authentication password
-X, --privpass
privacy password in hex with 0x prefix generated by snmpkey
-V, --version
plugin version
-w, --warning
warning level
-c, --critical
critical level
-o, --volume
volume to query (defaults to all)
-h, --help
usage help
-v, --variable
variable to query, can be:
CACHEAGE - Cache Age
CIFSOPS - CIFS Operations
CPBACK - Back to Back Consistency Time
CPTIME - Consistency Full Time
CPULOAD - CPU load
DISKREAD - Bytes Disk Read
DISKUSED - disk space avail
DISKUSED64 - disk space avail
DISKWRITE - Bytes Disk Write
FAILEDDISK - disk failed state
FAN - fan failed state
GLOBALSTATUS - Global Status
NDMPSESSIONS - NDMP Sessions
NETRCVD - Net In
NETSENT - Net Out
NFSOPS - NFS Operations
NVRAM - nvram battery status
PERINODE - percentage inode space avail
PERUSED - percentage space used
PS - Power Supply failed state
SNAPSHOT - volume snapshot status
TAPEREAD - Bytes Tape Read
TAPEWRITE - Bytes Tape Write
TEMP - over temperature check
UPTIME - up time
Now what char do I use (on cmdline) to check several checks in one command? I tried different chars but the check only seems to check 1 at the time.. Which would imply I would have to use x number lines to check all of the above, which is totally undesirable ...
Any suggestions on other, more usable checks (perl of sh) for netapp filers are welcome too.
TYIA
Question I have... it does not seem possible to give more then one variable to the script, or do I misunderstand the way the script works? This is the help file...
/check_netapp3.pl --help
check_netapp plugin for Nagios monitors the status of a NetApp system
Usage:
-H, --hostname
hostname to query (required)
-C, --community
SNMP read community (defaults to public)
-t, --timeout
seconds before the plugin times out (default=15)
-p, --port
SNMP port (default 161)
-P, --snmp_version
1 for SNMP v1 (default),
2 for SNMP v2c
3 for SNMP v3 (requires -U & -L)
-L, --seclevel
"noAuthNoPriv"
"authNoPriv" (requires -a & -A)
"authpriv" (requires -a -x & -A)
-U, --secname
user name for SNMPv3 context
-a, --authproto
authentication protocol (MD5 or SHA1)
-A, --authpass
authentication password
-X, --privpass
privacy password in hex with 0x prefix generated by snmpkey
-V, --version
plugin version
-w, --warning
warning level
-c, --critical
critical level
-o, --volume
volume to query (defaults to all)
-h, --help
usage help
-v, --variable
variable to query, can be:
CACHEAGE - Cache Age
CIFSOPS - CIFS Operations
CPBACK - Back to Back Consistency Time
CPTIME - Consistency Full Time
CPULOAD - CPU load
DISKREAD - Bytes Disk Read
DISKUSED - disk space avail
DISKUSED64 - disk space avail
DISKWRITE - Bytes Disk Write
FAILEDDISK - disk failed state
FAN - fan failed state
GLOBALSTATUS - Global Status
NDMPSESSIONS - NDMP Sessions
NETRCVD - Net In
NETSENT - Net Out
NFSOPS - NFS Operations
NVRAM - nvram battery status
PERINODE - percentage inode space avail
PERUSED - percentage space used
PS - Power Supply failed state
SNAPSHOT - volume snapshot status
TAPEREAD - Bytes Tape Read
TAPEWRITE - Bytes Tape Write
TEMP - over temperature check
UPTIME - up time
Now what char do I use (on cmdline) to check several checks in one command? I tried different chars but the check only seems to check 1 at the time.. Which would imply I would have to use x number lines to check all of the above, which is totally undesirable ...
Any suggestions on other, more usable checks (perl of sh) for netapp filers are welcome too.
TYIA