Nagios Plugin to Enumerate and Erase disks on rack mounted servers

  • Status Closed
  • Budget N/A
  • Total Bids 6

Project Description

I work for a small NOC. Customers Have asked for the ability to erase disks on hosted servers. All servers run some flavor of Linux, Mostly SLES and Red Hat.


We need a NAGIOS style plugin to erase disks, using a number of methods outlined below.

Project must be written in Perl, preferably Object Oriented Perl

Must be written in pure Perl.

Minimum Perl version on each server is [url removed, login to view]

The Following Perl Modules are allowed::

All Standard Perl modules







Other modules by Arrangement


There can be 2 to 24 disks on each server, A customer can own more than one server in a rack, or have a whole rack of servers.

SSH is used to communicate between servers.


Plugin will be run as root

Needs to do 2 to 24 disks and up

built in help

one, many or all disks can be targeted by block device name or slot number ( see below)

Needs to use the following utilities;


Dban Dwipe

Controller based secure erase ( see below)*

dd can be used to 'zero' drives'

Dban option need only support 'DoD 5220-22-M standard 3-pass' standard

**Preferred method** is controller based secure erase.

All RAID/Disk controllers are made by LSI.

MegaCLI utility is installed on all servers

MegaCli commands and SNMP commands are available to be used.

LSI provides extensive documentation on their website about how to use this utility

SNMP is also available for monitoring

MegaCLi examples;

MegaCli -SecureErase



[Normal [ |ErasePattern ErasePatternA|ErasePattern ErasePatternA ErasePattern ErasePatternB]]|

[Thorough [ |ErasePattern ErasePatternA|ErasePattern ErasePatternA ErasePattern ErasePatternB]]]

| Stop | ShowProg | ProgDsply [-PhysDrv [E0:S0,E1:S1,...] | -Lx|-L0,1,2|-LALL] -aN|-a0,1,2|-aALL

Progress can also be tracked from Controller Logs. There are existing NAGIOS Plugins to monitor disks via megacli/snmp

There are important considerations to be made,versus controller output and Linux output. Linux devices must be mapped to Controller devices and/or slots

We need to be sure we are targeting the right disks

Disks can be in JBOD/ RAID 0/ RAID 1/RAID 5/RAID6 configurations. controller commands must be used to tear down RAID config on the drives, LINUX core utilities can be used to determine drive health, mount/unmount the target device(s)

Get free quotes for a project like this
Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online