Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Check TeraStation Storage
0.2
2012-10-18
- Nagios 3.x
GPL
60728
File | Description |
---|---|
check_terastation_storage.php | check_terastation_storage.php |
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
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.
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.
Reviews (1)
Script qui fait ce qu'on lui demande :-)
I used this script with Centreon, and for execute it, add this line on header script:
#!/usr/bin/php
Delete your php calling in Nagios command line :
define command{
command_name check_terastation_storage
command_line $USER1$/check_terastation_storage.php $HOSTADDRESS$ $USER2$ 5 2
}
$USER1$ = Path to plugin
$USER2$ = community
5 and 2 = warning and critique value
Freindly,
I used this script with Centreon, and for execute it, add this line on header script:
#!/usr/bin/php
Delete your php calling in Nagios command line :
define command{
command_name check_terastation_storage
command_line $USER1$/check_terastation_storage.php $HOSTADDRESS$ $USER2$ 5 2
}
$USER1$ = Path to plugin
$USER2$ = community
5 and 2 = warning and critique value
Freindly,