Header RSS Feed
 
» Nagios Plugins

Nagios Plugin: EMC/Iomega StorCenter NAS

Last Update: January 20, 2014

With this plugin you can do several checks on your EMC/Iomega StorCenter NAS.
The plugin successfully works on a px4-300r. Please let me know wheter or not it works for another model, too.

Download check_storcenter check_storcenter.sh
Download plugin and save it in your Nagios plugin folder (e.g. /usr/local/nagios/libexec)
5026 downloads so far...

Compatibility with StorCenter models
px4-300r: All checks work
ix2/ix2-200: mem check does not work

Version History
20111010 Created plugin (types: disk, raid, cpu, mem)
20111011 Added info type
20111013.0 Corrected uptime (but device returns strange value?)
20111013.1 Corrected uptime (using hrSystemUptime.0 now)
20111020 Disk type now doesnt return CRITICAL anymore if disks are missing
20111031 Using vqeU in mem type (if response comes with kB string) - corrects mem check
20140120 Added snmp authentication

Requirements
1) SNMP needs to be enabled on the NAS. To activate SNMP, do the following steps:
Log on to your StorCenter NAS and select Network -> Protocols -> SNMP.
Set username (e.g. nagios) and a password, although the password won't be needed.

2) The following commands must exist and be executable by your nagios user on your Nagios server:
snmpwalk, tr

------------------------

Usage

On the command line as nagios user:

./check_storcenter -H host -U user -t type [-w warning] [-c critical]
./check_storcenter -H mynas -U nagios -t disk
./check_storcenter -H mynas -U nagios -t cpu -w 20 -c 30

------------------------

Definition of the parameters

-H Hostname or IP address of StorCenter NAS
-U Username you have defined in the SNMP settings of StorCenter
-P Password you have defined in the SNMP settings of StorCenter
-t Type of check you want to do (see the definition of types further down)
[-w] Warning threshold (optional and only in combination with certain types)
[-c] Critical threshold (optional and only in combination with certain types)
--help Help text for correct usage of this script

------------------------

Definition of the different check types:

disk -> Checks hard disks for their current status
raid -> Checks the RAID status
cpu -> Check current CPU load (thresholds possible)
mem -> Check current memory (RAM) utilization (thresholds possible)
info -> Outputs some general information of the device"

------------------------

Command definition in your commands.cfg:

# 'check_storcenter' command definition
define command{
command_name check_storcenter
command_line $USER1$/check_storcenter -H $HOSTADDRESS$ -U $ARG1$ -t $ARG2$ $ARG3$
}

------------------------

Service checks:

# Check StorCenter Disk
define service{
use generic-service
host_name nas1
service_description Disk Status
check_command check_storcenter!nagios!disk
}

In this example, the username 'nagios' is used and the check type is 'disk'.

-------

# Check StorCenter Raid
define service{
use generic-service
host_name nas1
service_description Raid Status
check_command check_storcenter!nagios!raid
}

-------

# Check StorCenter CPU
define service{
use generic-service
host_name nas1
service_description CPU Load
check_command check_storcenter!nagios!cpu!-w 25 -c 30
}

In this example, the username 'nagios' is used and the check type is 'cpu'. The thresholds are normal integers and represent the percentage of CPU usage. A warning notification will be sent if the cpu load is higher or equal to 25%, a critical notification at 30%.

-------

# Check StorCenter Memory (RAM)
define service{
use generic-service
host_name nas1
service_description Memory Usage
check_command check_storcenter!nagios!mem!-w 75 -c 85
}

In this example, the username 'nagios' is used and the check type is 'mem'. The thresholds are normal integers and represent the percentage of memory usage. A warning notification will be sent if the memory utilization is higher or equal to 75%, a critical notification at 85%.

-------

# Check StorCenter Information
define service{
use generic-service
host_name nas1
service_description Information
check_command check_storcenter!nagios!info
}

------------------------

Nagios screenshots:

Nagios Check StorCenter NAS


Go to Homepage home
Linux Howtos how to's
Monitoring Plugins monitoring plugins
Links links

Valid HTML 4.01 Transitional
Valid CSS!
[Valid RSS]

6979 Days
until Death of Computers
Why?