BarryODonovan.com

The thoughts, ramblings and rants of Barry O'Donovan

Categories

My Links

Search Posts


Nagios Plugin for the Promise VTrak 200i

June 6th, 2007 by Barry O'Donovan

For a project I was working on, I installed a Promise VTrak M200i disk shelf (i for iSCSI but then that’s a whole other blog post!) and needed to add it into the customers management systems.

Unfortunately there didn’t seem to be a lot of information out there on Promise’s SNMP MIBs so with a bit of playing about, I was able to dig out the ones I needed. The Nagios plug-in I wrote and am making available here will monitor the shelf via SNMP and alert on the following chassis issues:

  • critical if any of the shelf’s disk states changes from “OK”;
  • warning if the battery state changes from “FullyCharged”;
  • critical if either of the PSU states change from “Powered On and Functional”;
  • critical is any of the cooling devices (fans) change from “Functional”;
  • critical if any of the temperature sensors’ states change from “normal”;
  • critical if any of the drives go offline or are missing; and
  • warning if any of the drives go into the rebuilding state or have their PFA flag set.

While this is specifically designed for a single M200i, it should be easily customisable for other models.

It can be downloaded from here (http://www.opensolutions.ie/). It will also appear on the development section of this site and Nagios Plugins.

OIDs Used

1.3.6.1.4.1.7933.1.10.2.1.1.1.8
The table of physical disk statuses.
.1.3.6.1.4.1.7933.2.1.7.1.1.14.1.1
The battery status.
.1.3.6.1.4.1.7933.2.1.4.1.1.2.1
The table of Power Supply Unit statuses.
.1.3.6.1.4.1.7933.2.1.3.1.1.3.1
The table of cooling device/fan statuses.
.1.3.6.1.4.1.7933.2.1.5.1.1.3
The table of temperature sensor statuses.
.1.3.6.1.4.1.7933.1.10.1.2.1.1.22.1
The number of drives that are offline.
.1.3.6.1.4.1.7933.1.10.1.2.1.1.23.1
The number of drives in the PFA status set.
.1.3.6.1.4.1.7933.1.10.1.2.1.1.24.1
The number of drives in rebuild status.
.1.3.6.1.4.1.7933.1.10.1.2.1.1.25.1
The number of drives that are missing.

Posted in Linux, OSS, Recipes, Software | 5 Comments »

5 Responses

  1. Anon E Mousse Says:

    awesome, I’ve been looking for these OIDs. Thanks

  2. free fico Says:

    Good day! Me credit is good enough. I am an active traveler therefore use frequent flier card to earn bonus miles. Now I am looking for one more rewards card. I am going to apply for a new one online at the site. But do not know for sure whether it is a real site or not. Could you answer me as soon as possible?

    0 percent balance transfer fees 0 percent interest discover credit card

  3. oper Says:

    OIDs for E-Class (tested on E310s)

    my $snmpDiskStatusTable = ’1.3.6.1.4.1.7933.1.20.2.1.1.8.1′;
    my $snmpBatteryStatus = ‘.1.3.6.1.4.1.7933.1.20.1.15.1.14.1.1.1′;
    my $snmpPSUStatusTable = ‘.1.3.6.1.4.1.7933.1.20.1.12.1.2′;
    my $snmpCoolingDeviceStatusTable = ‘.1.3.6.1.4.1.7933.1.20.1.11.1.3′;
    my $snmpTemperatureStatusTable = ‘.1.3.6.1.4.1.7933.1.20.1.13.1.3′;
    my $snmpDrivesOffline = ‘.1.3.6.1.4.1.7933.1.20.1.3.1.21.1.1′;
    my $snmpDrivesWithPFA = ‘.1.3.6.1.4.1.7933.1.20.1.3.1.22.1.1′;
    my $snmpDrivesRebuilding = ‘.1.3.6.1.4.1.7933.1.20.1.3.1.23.1.1′;
    my $snmpDrivesMissing = ‘.1.3.6.1.4.1.7933.1.20.1.3.1.24.1.1′;

  4. nfilus Says:

    You may also want to take a look at the plugin at
    http://www.consol.de/apple/nagios-plugins/check-promise-vtrak/

    I’m using a Provigo 510S from Transtec which is similar to the Promise VTrak series. My OIDs are as follows:

    my $snmpDiskStatusTable=’.1.3.6.1.4.1.7933.1.20.2.1.1.8.1′;
    my $snmpPSUStatusTable=’.1.3.6.1.4.1.7933.1.20.1.12.1.2.1.1′;
    my $snmpCoolingDeviceStatusTable=’.1.3.6.1.4.1.7933.1.20.1.11.1.3.1.1′;
    my $snmpTemperatureStatusTable=’.1.3.6.1.4.1.7933.1.20.1.13.1.3.1.1′;
    my $snmpDrivesOffline=’.1.3.6.1.4.1.7933.1.20.1.3.1.21.1.1′;
    my $snmpDrivesWithPFA=’.1.3.6.1.4.1.7933.1.20.1.3.1.22.1.1′;
    my $snmpDrivesRebuilding=’.1.3.6.1.4.1.7933.1.20.1.3.1.23.1.1′;
    my $snmpDrivesMissing=’.1.3.6.1.4.1.7933.1.20.1.3.1.24.1.1′;

  5. oper Says:

    Cool :)
    I’m also working on cacti template for this stuff – mostly in the background, so only snmp queries are ready by now. If you are also interested in finishing it and making avaliable to the public pls let me know.

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.