Subversion Repositories vnag

Compare Revisions

No changes between revisions

Regard whitespace Rev 67 → Rev 68

/trunk/README.md
29,6 → 29,7
- **last**: Checks the output of the tool "last" and warns when logins from suspicious IP adresses are detected.
- **mdstat**: Parses the output of "/proc/mdstat" and warns when drives inside a RAID array have failed.
- **mediawiki_version**: Checks MediaWiki installations for updates.
- **megaraid**: Checks MegaRAID (MegaCLI64) RAID arrays for degraded arrays, SMART warnings, or failing batteries.
- **minecraft_java_version**: Checks the version of a local Minecraft Java server for updates.
- **net2ftp_version**: Checks [net2ftp](https://www.net2ftp.com/) installations for updates.
- **nextcloud_version**: Checks Nextcloud installations for updates.
/trunk/plugins/megaraid/MegaRaidCheck.class.php
0,0 → 1,175
<?php /* <ViaThinkSoftSignature>
x0TUq9AscwEzm20qbzj5jrBoiQchEvHi00gPikIfDMz66iw1W2/4y8yLDOjOX0AV9
tbIXflk2weq0JcUeJPVH9k8TKqt3Oqh8nobvSjhGmO/KxG/QiDVcw82lER9ZDVcc7
OhB8nsWDQ2xxkfgv4ZEv1rdmLP0AuH5tEHv709eVGYWZf5Fd9EFJ++TtKS16lwim4
AUYIOYPCTjbD/J+7KtY3uxc4QV9am+EyLRIkeBeo1UcjccWhfh7Yw8OfTh0RDinzH
1rkMCRC4cSSVXQlkLOfJkPSNrgwyZ6i61hB5W3CwFFefaXEkzQfcwtQnz9GrzK5U4
6LV+gHa+QSaSSoyBg4VJ+kYhyfzXHR33LTURSnSHZpdjzQ+cR3SVDxUhJNcx1b+yj
Zhl4hwlskI83FVLweCjz3lcGD259Uy62WOYwZFOMjpUVjyKfloMRJFsoqOKYjxv9V
9SriY8A0GDaWq9XML3CuUtSs2hPAK024uxMY8NfppLi7F0jEioOwyILekWB/HioYa
8JAyRvDqgUCWWU10Uw7PlH1RUmkbL1bcMmiD29BxZh+rp/dJ/IdZ0BCUiXtcs5jgR
K4STam7277Fh3Ok5i1n/TkHM/Mk58ro/6HmBKpPnlMn16Z/dPzQXKlsIT/swRyIX9
G+hTijkSgtBa2QJ30OQr1+EM4l0sGSlE4hb+DbWwmplI5yz8asTKlE7DNXonPmNBz
9WUsAzsxQIsgaWY3tBHPss/shcOIeuotAsuoquhdnhBbcr6tAFDIuDsG4EqoljpBh
b8yIjNSJdy+d7lBK+tY5u8zBlN0UO8A4E5pEKk+YvPrMV+O/Hu32ZH2y+DuvfWojC
M60ueYnQ4+hbczVLVTnjkofyCbkLxCZHoUyLoVsdyLP7ViOaAZiriZnO5aXT5WPfG
b929o+LO+sP37d7UC0Npl/j9GJeIcLxqZcTO+XBt5tHwVtDOam+H/WW0FuZUOo2bQ
Ex1MM9EKoUhfcTAdD4mlgcLKLqRvZIvDLSxvAxkEsBlSP8pA4QJGcUP9Q4X+5dgdg
UFpn6i94DGA5CLtfzRRtZXQ5ynZyIxOU893kd6ZLQkPhi5aRuBUWDGAktgPfWUphl
+Ht75rsaU2kd1nwaeH/90Aftxzek/bBtSHR7EXK5nBESw41SITuAdVrr6wi5VSqjy
mqeVW0cPax89e26uqnwBTP+RuZ1TOy8eDAV+2KwQKBtS9lIw2M/8e3YsSfcT15tZX
yQ6sk/UXculG71x796oNAdu8mSLrN03WTtO/4qLfIcX2/MunIm0MwudzYa+fzHzWh
nkv8NryrsTKNAKl00WCJWlSJeTgDSY/jHeJUWDzJijkZHA8daZyCOUwL79przBhC/
A==
</ViaThinkSoftSignature> */ ?>
<?php
 
/*
* VNag - Nagios Framework for PHP
* Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
* Licensed under the terms of the Apache 2.0 license
*
* Revision 2023-09-13
*
* Changelog:
* 2023-09-13 1.0 Initial release
*/
 
declare(ticks=1);
 
class MegaRaidCheck extends VNag {
private $executable = '/opt/MegaRAID/MegaCli/MegaCli64'; // TODO: make configurable (Also with sudo?)
 
public function __construct() {
parent::__construct();
 
if ($this->is_http_mode()) {
// Don't allow the standard arguments via $_REQUEST
$this->registerExpectedStandardArguments('');
} else {
$this->registerExpectedStandardArguments('Vhtv');
}
 
$this->getHelpManager()->setPluginName('vnag_megaraid');
$this->getHelpManager()->setVersion('1.0');
$this->getHelpManager()->setShortDescription('This plugin checks the controller and disk status of a MegaRAID controller (using MegaCli64).');
$this->getHelpManager()->setCopyright('Copyright (C) 2011-$CURYEAR$ Daniel Marschall, ViaThinkSoft.');
$this->getHelpManager()->setSyntax('$SCRIPTNAME$');
$this->getHelpManager()->setFootNotes('If you encounter bugs, please contact ViaThinkSoft at www.viathinksoft.com');
}
 
private function megacli_logical_disk_status($adapter='ALL') {
$mock_file = __DIR__.'/status_ld.mock';
 
if (file_exists($mock_file)) {
$out = explode("\n", file_get_contents($mock_file));
} else {
$cmd = escapeshellcmd($this->executable).' -LDInfo -Lall '.escapeshellarg('-a'.$adapter).' -NoLog';
$out = array();
exec($cmd, $out, $ec);
 
// DEBUG: file_put_contents($mock_file, implode("\n", $out));
}
 
$drives = [];
$cur_drive_id = '???';
$cur_drive_name = '';
foreach ($out as $line) {
if (preg_match('@Virtual Drive: (\d+)@', $line, $m)) $cur_drive_id = $m[1];
if (preg_match('@Name\s*:([^\n]*)@', $line, $m)) $cur_drive_name = trim($m[1]);
if (preg_match('@State\s*:([^\n]*)@', $line, $m)) {
$drives[] = [$cur_drive_id, $cur_drive_name, trim($m[1])];
$cur_drive_id = '???';
$cur_drive_name = '';
}
}
 
foreach ($drives as list($cur_drive_id, $cur_drive_name, $cur_drive_status)) {
if (strtolower($cur_drive_status) == 'offline') $status = VNag::STATUS_CRITICAL/*?*/;
else if (strpos($cur_drive_status, 'degraded') !== false) $status = VNag::STATUS_CRITICAL;
else if (strtolower($cur_drive_status) == 'optimal') $status = VNag::STATUS_OK;
else if (strtolower($cur_drive_status) == 'initialize') $status = VNag::STATUS_WARNING;
else if (strtolower($cur_drive_status) == 'checkconsistency') $status = VNag::STATUS_WARNING;
else $status = VNag::STATUS_UNKNOWN;
 
$cur_drive_hf_name = $cur_drive_id . (!empty($cur_drive_name) ? " ($cur_drive_name)" : "");
$msg = "Logical drive $cur_drive_hf_name: $cur_drive_status";
$verbosity = $status == VNag::STATUS_OK ? VNag::VERBOSITY_ADDITIONAL_INFORMATION : VNag::VERBOSITY_SUMMARY;
$this->addVerboseMessage($msg, $verbosity);
$this->setStatus($status);
}
}
 
private function megacli_smart_disk_status($adapter='ALL') {
$mock_file = __DIR__.'/status_pd.mock';
 
if (file_exists($mock_file)) {
$out = explode("\n", file_get_contents($mock_file));
} else {
$cmd = escapeshellcmd($this->executable).' -PDList '.escapeshellarg('-a'.$adapter).' -NoLog';
$out = array();
exec($cmd, $out, $ec);
 
// DEBUG: file_put_contents($mock_file, implode("\n", $out));
}
 
$drives = [];
$cur_drive_id = '???';
foreach ($out as $line) {
if (preg_match('@Slot Number: (\d+)@', $line, $m)) $cur_drive_id = $m[1];
if (preg_match('@Drive has flagged a S.M.A.R.T alert\s*:([^\n]*)@', $line, $m)) {
$drives[] = [$cur_drive_id, trim($m[1])];
$cur_drive_id = '???';
}
}
 
foreach ($drives as list($cur_drive_id, $cur_drive_status)) {
if (strtolower($cur_drive_status) == 'no') $status = VNag::STATUS_OK;
else $status = VNag::STATUS_CRITICAL; // unsure if there will be a "yes" or any other output
 
$msg = "Physical drive $cur_drive_id: SMART alert? $cur_drive_status";
$verbosity = $status == VNag::STATUS_OK ? VNag::VERBOSITY_ADDITIONAL_INFORMATION : VNag::VERBOSITY_SUMMARY;
$this->addVerboseMessage($msg, $verbosity);
$this->setStatus($status);
}
}
 
private function megacli_battery_status($adapter='ALL') {
$mock_file = __DIR__.'/status_battery.mock';
 
if (file_exists($mock_file)) {
$out = explode("\n", file_get_contents($mock_file));
} else {
$cmd = escapeshellcmd($this->executable).' -AdpBbuCmd '.escapeshellarg('-a'.$adapter).' -NoLog';
$out = array();
exec($cmd, $out, $ec);
 
// DEBUG: file_put_contents($mock_file, implode("\n", $out));
}
 
$battery_status = '???';
foreach ($out as $line) {
if (preg_match('@Battery State\s*:([^\n]*)@', $line, $m)) {
$battery_status = trim($m[1]);
}
}
 
if (strtolower($battery_status) == 'missing') $status = VNag::STATUS_WARNING;
else if (strtolower($battery_status) == 'optimal') $status = VNag::STATUS_OK;
else if (strtolower($battery_status) == 'failed') $status = VNag::STATUS_CRITICAL;
else if (strtolower($battery_status) == 'learning') $status = VNag::STATUS_WARNING;
else if (strpos($battery_status, 'degraded') !== false) $status = VNag::STATUS_CRITICAL;
else $status = VNag::STATUS_UNKNOWN;
 
$msg = "Battery Status: $battery_status";
$verbosity = $status == VNag::STATUS_OK ? VNag::VERBOSITY_ADDITIONAL_INFORMATION : VNag::VERBOSITY_SUMMARY;
$this->addVerboseMessage($msg, $verbosity);
$this->setStatus($status);
}
 
protected function cbRun() {
$this->megacli_logical_disk_status();
$this->megacli_smart_disk_status();
$this->megacli_battery_status();
}
}
/trunk/plugins/megaraid/check_megaraid
0,0 → 1,43
#!/usr/bin/php
<?php /* <ViaThinkSoftSignature>
4HS1Y20ejujNz6CTN3QIEKSZ7Ml9Li9E4MpEzts0DMWhGveAU7o0vNXaoSM7cuw5H
omVFobcC/rroiDD/js3C4t3JSPNW+yM+NjHmVY8xwQlBVZjtE0EbuXgOLU4U2S6o/
dqOgLJ0G/j6jEz7r9bQ8rfYysy1vCMtIMVYq3TlDtjmwZkSE4Sh7gyUBqBQ+yXsM/
dtp2mEfny4O3GPCPspgeD90Jz0UyNWwaTHyyw+NuaoX+8May+ElgweF9cXyIYQavs
SmIl9nT+tm6h0bfTzQxBlJrfvsgQ9Zgkbtgd8x91+PVOErIhUAHBmI9tOpx4gbCqf
6KGxCO88I1Ho+Gkw/Hjx/wyZCQlqkJf3vD/6rWDweXpx4KYDrha6niDGscwfIclDq
N7aD92aXouncZr/TOZfIFOuwT9QMNEVj/y4NZZ/eVSCLtlqgo3vA3bequaHqUJWVZ
jjNAKbvRovIzOdNwkedw/Dh4ZT/2hHFSPXqWS0nQa4Odjk+k2IRhaNRxN5LWtJb5O
X6XUZ6Zj8DkEOHdUAiPwngGwE2B6KBHmmex6rGcRK+4f6h7PqRnBF76W5DvU/Qxa4
JVINQhDj3mde4BAQ9ArDZGNewI0TjLWDZdptyOb75xZWcOknT1xB6CqV6/8XcQjoj
PfqAxAmmEV5FBldNOPJm5Mepeyqet0KF4+7OuBRb3n5mppgYkhASt94vxIyarOPaG
h7rX2L3ebntHYaKZ9yTPyMNseIgo1UVRrz16vvECohMK1YUyXqBhR3V/GuZvgVlps
eVWvkVdRMfPMd0s4FD6Ja/3nzihfbJdDIXrrU7DXcNYtpi4dO9UEvf9sxm1it9yhK
4BG6Hi/PTUqP+lsxSr6lBwqAAvATgSTFOEtKy8vrSrQ0W5l1PlXQdO9czksIaFAwc
BP9PbdymDLYDKzlEX4ax/o9WMne/0ADs3YF8f6dYt47gZWIc4BXuFTt6THPzcTQQp
9yW45ms6/Iruw2S9tuzrd8T/J0G2k6HShP8fthlXq6F+CX1eUhqf5VeaPbjKTU8I2
oa4143v9+N8nTY/7X+r3fPik5wbdGCf4ogn/QvzDt3Vxg+Us7w7LvLZsOLH4AqteD
KJ/LeQl1/R0T1VtCuHOKUIdk3AhBySt56MeTsv49ff3UP98fOpfRPI9AKD8hN5tOo
Jm6QXgowH8SQQqtTVD5lGKpQAGVxSrUuqS/emIEmeVnW2XJqJyeC/RqKx52+rIsn7
xBfKzGOORbEg+dZMiw1bkef10Ydver3TGWIX8CxdiGGiYEHRANV8c8IQ8nWmFZoJr
kAh3w9W/r4bVMCMKFVGAp5J6GrEdRmTxQ9JOZo1pVSbvaouvnVTD0CuoNF2mvBFy3
w==
</ViaThinkSoftSignature> */ ?>
<?php
 
/*
* VNag - Nagios Framework for PHP
* Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
* Licensed under the terms of the Apache 2.0 license
*
* Revision 2023-09-13
*/
 
declare(ticks=1);
 
require_once __DIR__ . '/../../framework/vnag_framework.inc.php';
require_once __DIR__.'/MegaRaidCheck.class.php';
 
$job = new MegaRaidCheck();
$job->run();
unset($job);
Property changes:
Added: svn:executable
+*
\ No newline at end of property
/trunk/plugins/megaraid/icinga2.conf
0,0 → 1,37
// Put this file in /etc/icinga2/conf.d/...
 
// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2023-09-13
 
// ATTENTION!
// To make this work, you need to add following to /etc/sudoers (adjust the paths)
// nagios ALL=(root) NOPASSWD:/daten/vnag/plugins/megaraid/check_megaraid
// You MUST make sure that the script check_megaraid and all other VNag scripts are
// owned by root, otherwise the owner could change the code, and it would be executed with
// root privileges!
 
object CheckCommand "vnag_megaraid" {
command = [
"/usr/bin/sudo",
 
// PLEASE ADJUST THIS PATH
"/daten/vnag/plugins/megaraid/check_megaraid"
]
 
arguments = {
}
}
 
// Example usage:
//
// apply Service "example_megaraid" {
// import "generic-service"
// check_command = "vnag_megaraid"
// check_interval = 15m
// vars = {
// }
// assign where host.name == NodeName
// }
/trunk/plugins/megaraid/status_battery.mock_
0,0 → 1,59
 
BBU status for Adapter: 0
 
BatteryType: CVPM02
Voltage: 9837 mV
Current: 0 mA
Temperature: 24 C
Battery State: Optimal
BBU Firmware Status:
 
Charging Status : None
Voltage : OK
Temperature : OK
Learn Cycle Requested : No
Learn Cycle Active : No
Learn Cycle Status : OK
Learn Cycle Timeout : No
I2c Errors Detected : No
Battery Pack Missing : No
Battery Replacement required : No
Remaining Capacity Low : No
Periodic Learn Required : No
Transparent Learn : No
No space to cache offload : No
Pack is about to fail & should be replaced : No
Cache Offload premium feature required : No
Module microcode update required : No
 
BBU GasGauge Status: 0x6652
Pack energy : 338 J
Capacitance : 102
Remaining reserve space : 93
 
Battery backup charge time : 0 hours
 
BBU Design Info for Adapter: 0
 
Date of Manufacture: 01/27, 2016
Design Capacity: 283 J
Design Voltage: 9411 mV
Serial Number: 7262
Manufacture Name: LSI
Firmware Version : 25849-03
Device Name: CVPM02
Device Chemistry: EDLC
Battery FRU: N/A
TMM FRU: N/A
Module Version = 25849-03
Transparent Learn = 1
App Data = 0
 
BBU Properties for Adapter: 0
 
Auto Learn Period: 28 Days
Next Learn time: Thu Oct 5 14:30:43 2023
Learn Delay Interval:0 Hours
Auto-Learn Mode: Transparent
 
Exit Code: 0x00
/trunk/plugins/megaraid/status_ld.mock_
0,0 → 1,71
 
 
Adapter 0 -- Virtual Drive Information:
Virtual Drive: 0 (Target Id: 0)
Name :
RAID Level : Primary-1, Secondary-0, RAID Level Qualifier-0
Size : 3.637 TB
Sector Size : 512
Is VD emulated : Yes
Mirror Data : 3.637 TB
State : Optimal
Strip Size : 256 KB
Number Of Drives : 2
Span Depth : 1
Default Cache Policy: WriteBack, ReadAhead, Direct, No Write Cache if Bad BBU
Current Cache Policy: WriteBack, ReadAhead, Direct, No Write Cache if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy : Disk's Default
Encryption Type : None
PI type: No PI
 
Is VD Cached: No
 
 
Virtual Drive: 1 (Target Id: 1)
Name :
RAID Level : Primary-0, Secondary-0, RAID Level Qualifier-0
Size : 3.637 TB
Sector Size : 512
Is VD emulated : Yes
Parity Size : 0
State : Optimal
Strip Size : 256 KB
Number Of Drives : 1
Span Depth : 1
Default Cache Policy: WriteBack, ReadAdaptive, Direct, No Write Cache if Bad BBU
Current Cache Policy: WriteBack, ReadAdaptive, Direct, No Write Cache if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy : Disk's Default
Encryption Type : None
PI type: No PI
 
Is VD Cached: No
 
 
Virtual Drive: 2 (Target Id: 2)
Name :
RAID Level : Primary-0, Secondary-0, RAID Level Qualifier-0
Size : 3.637 TB
Sector Size : 512
Is VD emulated : Yes
Parity Size : 0
State : Optimal
Strip Size : 256 KB
Number Of Drives : 1
Span Depth : 1
Default Cache Policy: WriteBack, ReadAdaptive, Direct, No Write Cache if Bad BBU
Current Cache Policy: WriteBack, ReadAdaptive, Direct, No Write Cache if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy : Disk's Default
Encryption Type : None
PI type: No PI
 
Is VD Cached: No
 
 
 
Exit Code: 0x00
/trunk/plugins/megaraid/status_pd.mock_
0,0 → 1,205
 
Adapter #0
 
Enclosure Device ID: 0
Slot Number: 0
Drive's position: DiskGroup: 0, Span: 0, Arm: 0
Enclosure position: 1
Device Id: 3
WWN: 50000399ebe801a0
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SATA
 
Raw Size: 3.638 TB [0x1d1c0beb0 Sectors]
Non Coerced Size: 3.637 TB [0x1d1b0beb0 Sectors]
Coerced Size: 3.637 TB [0x1d1a94800 Sectors]
Sector Size: 512
Logical Sector Size: 512
Physical Sector Size: 4096
Firmware state: Online, Spun Up
Commissioned Spare : No
Emergency Spare : No
Device Firmware Level: FP2A
Shield Counter: 0
Successful diagnostics completion on : N/A
SAS Address(0): 0x500e004aaaaaaa00
Connected Port Number: 0(path0)
Inquiry Data: 302GKI3DFSAATOSHIBA MD04ACA400 FP2A
FDE Capable: Not Capable
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None
Device Speed: 6.0Gb/s
Link Speed: 6.0Gb/s
Media Type: Hard Disk Device
Drive: Not Certified
Drive Temperature :32C (89.60 F)
PI Eligibility: No
Drive is formatted for PI information: No
PI: No PI
Drive's NCQ setting : Enabled
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Drive has flagged a S.M.A.R.T alert : No
 
 
 
Enclosure Device ID: 0
Slot Number: 1
Drive's position: DiskGroup: 0, Span: 0, Arm: 1
Enclosure position: 1
Device Id: 2
WWN: 50000398fb900bdb
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SATA
 
Raw Size: 3.638 TB [0x1d1c0beb0 Sectors]
Non Coerced Size: 3.637 TB [0x1d1b0beb0 Sectors]
Coerced Size: 3.637 TB [0x1d1a94800 Sectors]
Sector Size: 512
Logical Sector Size: 512
Physical Sector Size: 4096
Firmware state: Online, Spun Up
Commissioned Spare : No
Emergency Spare : No
Device Firmware Level: FP1R
Shield Counter: 0
Successful diagnostics completion on : N/A
SAS Address(0): 0x500e004aaaaaaa01
Connected Port Number: 0(path0)
Inquiry Data: Z8C5K18KFBBGTOSHIBA HDWE140 FP1R
FDE Capable: Not Capable
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None
Device Speed: 6.0Gb/s
Link Speed: 6.0Gb/s
Media Type: Hard Disk Device
Drive: Not Certified
Drive Temperature :32C (89.60 F)
PI Eligibility: No
Drive is formatted for PI information: No
PI: No PI
Drive's NCQ setting : Enabled
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Drive has flagged a S.M.A.R.T alert : No
 
 
 
Enclosure Device ID: 0
Slot Number: 2
Drive's position: DiskGroup: 1, Span: 0, Arm: 0
Enclosure position: 1
Device Id: 4
WWN: 50000399ebe8019f
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SATA
 
Raw Size: 3.638 TB [0x1d1c0beb0 Sectors]
Non Coerced Size: 3.637 TB [0x1d1b0beb0 Sectors]
Coerced Size: 3.637 TB [0x1d1a94800 Sectors]
Sector Size: 512
Logical Sector Size: 512
Physical Sector Size: 4096
Firmware state: Online, Spun Up
Commissioned Spare : No
Emergency Spare : No
Device Firmware Level: FP2A
Shield Counter: 0
Successful diagnostics completion on : N/A
SAS Address(0): 0x500e004aaaaaaa02
Connected Port Number: 0(path0)
Inquiry Data: 302GKI3CFSAATOSHIBA MD04ACA400 FP2A
FDE Capable: Not Capable
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None
Device Speed: 6.0Gb/s
Link Speed: 6.0Gb/s
Media Type: Hard Disk Device
Drive: Not Certified
Drive Temperature :33C (91.40 F)
PI Eligibility: No
Drive is formatted for PI information: No
PI: No PI
Drive's NCQ setting : Enabled
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Drive has flagged a S.M.A.R.T alert : No
 
 
 
Enclosure Device ID: 0
Slot Number: 3
Drive's position: DiskGroup: 2, Span: 0, Arm: 0
Enclosure position: 1
Device Id: 1
WWN: 50000399ebe801a1
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SATA
 
Raw Size: 3.638 TB [0x1d1c0beb0 Sectors]
Non Coerced Size: 3.637 TB [0x1d1b0beb0 Sectors]
Coerced Size: 3.637 TB [0x1d1a94800 Sectors]
Sector Size: 512
Logical Sector Size: 512
Physical Sector Size: 4096
Firmware state: Online, Spun Up
Commissioned Spare : No
Emergency Spare : No
Device Firmware Level: FP2A
Shield Counter: 0
Successful diagnostics completion on : N/A
SAS Address(0): 0x500e004aaaaaaa03
Connected Port Number: 0(path0)
Inquiry Data: 302GKI3EFSAATOSHIBA MD04ACA400 FP2A
FDE Capable: Not Capable
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None
Device Speed: 6.0Gb/s
Link Speed: 6.0Gb/s
Media Type: Hard Disk Device
Drive: Not Certified
Drive Temperature :30C (86.00 F)
PI Eligibility: No
Drive is formatted for PI information: No
PI: No PI
Drive's NCQ setting : Enabled
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Drive has flagged a S.M.A.R.T alert : No
 
 
 
 
Exit Code: 0x00