Check TeraStation Storage

Bookmark and Share

Rating
0 votes
Favoured:
0
Current Version
0.2
Last Release Date
2012-10-18
Compatible With
  • Nagios 3.x
Owner
License
GPL
Hits
14300
Files:
FileDescription
check_terastation_storage.phpcheck_terastation_storage.php
Check TeraStation Storage
Check remaining storage capacity of Buffalo TeraStations via SNMP
check_terastation_storage.php
Check storage capacity of Buffalo TeraStations via SNMP

V0.2
Updated to use more accurate vendor specific OIDs.
Should now be compatible with all SNMP enabled TeraStation models.
This has been tested to work with models: TS.XE4, TS.XE8, and TS5000 Series.

The following OIDs are used.
Raid Array1 total size in GB: iso.3.6.1.4.1.5227.27.1.3.1.3.1
Raid Array1 amount used in %: iso.3.6.1.4.1.5227.27.1.3.1.4.1
*If you have more than one array, just increment the last digit.

USAGE: php check_terastation_storage.php HOST COMMUNITY WARNING CRITICAL
HOST=IP or FQDN of the target TeraStation
COMMUNITY=SNMP Community name
WARNING=Level of amount free to trigger warning in percentage.
CRITICAL=Level of amount free to trigger critical in percentage.
EXAMPLE: php check_terastation_storage.php 192.168.1.1 public 5 2

Include in commands.cfg
define command{
command_name check_terastation_storage
command_line php /path/to/check_terastation_storage.php $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$
}

This plugin requires php5-snmp to be installed.

Written by Kyle M.
Reviewed and edited by Joshua K Roberson.