esxcfg-volume -l
esxcfg-volume -M
cim . ( , RAID . , , .) maintenance .
CIM Adaptec /var/log/arcconf.log, . .. :
/var/spool/cron/crontabs/root, :
*/05 * * * * /vmfs/volumes/4ef49f1a-b2abe2ec-32c6-00123t13a19e2/arcconf_del.sh /etc/rc.local , cron :
/bin/kill $(cat /var/run/crond.pid)
/bin/echo '*/05 * * * * /vmfs/volumes/4ef49f1a-b2abe2ec-32c6-001b213a19e2/arcconf_del.sh' >> /var/spool/cron/crontabs/root
/bin/busybox crond
/vmfs/volumes/4ef49f1a-b2abe2ec-32c6-001b213a19e2/arcconf_del.sh:
#!/bin/sh
rm -f /var/log/arcconf.log
: chmod +x /vmfs/volumes/4ef49f1a-b2abe2ec-32c6-001b213a19e2/arcconf_del.sh
5 .
SSH, CIM .
RAID-. . , , , . , Adaptec arcconf Y, E K ( 18856 , ).
, .
, . Windows NSClient++ exchange.nagios.org/directory/Plugins/Hardware/Storage-Systems/RAID-Controllers/Windows-nrpe-3A-Check-Raid-adaptec-AAC/details
c , – , PowerShell:
$outputPath = 'C:\Program Files (x86)\Nagios\scripts\MegaSAS.log' Set-Content $outputPath ""; $raidCLI = 'C:\Program Files (x86)\CLI_Win_8.04.07\megacli64.exe' $raidArgs = '-LDInfo -Lall -aALL' $shiftString = 5 $searchPattern = "Virtual Drive:" Start-Process -FilePath $raidCLI -ArgumentList $raidArgs -Wait $arcconfOutput = Get-Content -Path $outputPath $logicalDevices = Select-String -Path $outputPath -Pattern $searchPattern; $healthCheckIndex = 0; foreach($logicalDevice in $logicalDevices) { $deviceState = $logicalDevice.get_linenumber(); $deviceStatus = $arcconfOutput.Get($deviceState+$shiftString); if($deviceStatus -match "/?Optimal") { $healthCheckIndex = $healthCheckIndex+1; } } if($healthCheckIndex -lt $logicalDevices.Count) { Write-Host "CRITICAL: Logical Device state failed"; } if($healthCheckIndex -eq $logicalDevices.Count) { Write-Host "OK: All logical devices works fine"; } else { Write-Host "Unknown: Error occured"; }
– Adaptec, LSI - . LSI , Adaptec .
– . , . , . .
esxcfg-volume -M
cim . ( , RAID . , , .) maintenance .
CIM Adaptec /var/log/arcconf.log, . .. :
/var/spool/cron/crontabs/root, :
*/05 * * * * /vmfs/volumes/4ef49f1a-b2abe2ec-32c6-00123t13a19e2/arcconf_del.sh /etc/rc.local , cron :
/bin/kill $(cat /var/run/crond.pid)
/bin/echo '*/05 * * * * /vmfs/volumes/4ef49f1a-b2abe2ec-32c6-001b213a19e2/arcconf_del.sh' >> /var/spool/cron/crontabs/root
/bin/busybox crond
/vmfs/volumes/4ef49f1a-b2abe2ec-32c6-001b213a19e2/arcconf_del.sh:
#!/bin/sh
rm -f /var/log/arcconf.log
: chmod +x /vmfs/volumes/4ef49f1a-b2abe2ec-32c6-001b213a19e2/arcconf_del.sh
5 .
SSH, CIM .
RAID-. . , , , . , Adaptec arcconf Y, E K ( 18856 , ).
, .
, . Windows NSClient++ exchange.nagios.org/directory/Plugins/Hardware/Storage-Systems/RAID-Controllers/Windows-nrpe-3A-Check-Raid-adaptec-AAC/details
c , – , PowerShell:
$outputPath = 'C:\Program Files (x86)\Nagios\scripts\MegaSAS.log' Set-Content $outputPath ""; $raidCLI = 'C:\Program Files (x86)\CLI_Win_8.04.07\megacli64.exe' $raidArgs = '-LDInfo -Lall -aALL' $shiftString = 5 $searchPattern = "Virtual Drive:" Start-Process -FilePath $raidCLI -ArgumentList $raidArgs -Wait $arcconfOutput = Get-Content -Path $outputPath $logicalDevices = Select-String -Path $outputPath -Pattern $searchPattern; $healthCheckIndex = 0; foreach($logicalDevice in $logicalDevices) { $deviceState = $logicalDevice.get_linenumber(); $deviceStatus = $arcconfOutput.Get($deviceState+$shiftString); if($deviceStatus -match "/?Optimal") { $healthCheckIndex = $healthCheckIndex+1; } } if($healthCheckIndex -lt $logicalDevices.Count) { Write-Host "CRITICAL: Logical Device state failed"; } if($healthCheckIndex -eq $logicalDevices.Count) { Write-Host "OK: All logical devices works fine"; } else { Write-Host "Unknown: Error occured"; }
– Adaptec, LSI - . LSI , Adaptec .
– . , . , . .
esxcfg-volume -M
cim . ( , RAID . , , .) maintenance .
CIM Adaptec /var/log/arcconf.log, . .. :
/var/spool/cron/crontabs/root, :
*/05 * * * * /vmfs/volumes/4ef49f1a-b2abe2ec-32c6-00123t13a19e2/arcconf_del.sh
/etc/rc.local , cron :
/bin/kill $(cat /var/run/crond.pid)
/bin/echo '*/05 * * * * /vmfs/volumes/4ef49f1a-b2abe2ec-32c6-001b213a19e2/arcconf_del.sh' >> /var/spool/cron/crontabs/root
/bin/busybox crond
/vmfs/volumes/4ef49f1a-b2abe2ec-32c6-001b213a19e2/arcconf_del.sh:
#!/bin/sh
rm -f /var/log/arcconf.log
: chmod +x /vmfs/volumes/4ef49f1a-b2abe2ec-32c6-001b213a19e2/arcconf_del.sh
5 .
SSH, CIM .
RAID-. . , , , . , Adaptec arcconf Y, E K ( 18856 , ).
, .
, . Windows NSClient++ exchange.nagios.org/directory/Plugins/Hardware/Storage-Systems/RAID-Controllers/Windows-nrpe-3A-Check-Raid-adaptec-AAC/details
c , – , PowerShell:
$outputPath = 'C:\Program Files (x86)\Nagios\scripts\MegaSAS.log' Set-Content $outputPath ""; $raidCLI = 'C:\Program Files (x86)\CLI_Win_8.04.07\megacli64.exe' $raidArgs = '-LDInfo -Lall -aALL' $shiftString = 5 $searchPattern = "Virtual Drive:" Start-Process -FilePath $raidCLI -ArgumentList $raidArgs -Wait $arcconfOutput = Get-Content -Path $outputPath $logicalDevices = Select-String -Path $outputPath -Pattern $searchPattern; $healthCheckIndex = 0; foreach($logicalDevice in $logicalDevices) { $deviceState = $logicalDevice.get_linenumber(); $deviceStatus = $arcconfOutput.Get($deviceState+$shiftString); if($deviceStatus -match "/?Optimal") { $healthCheckIndex = $healthCheckIndex+1; } } if($healthCheckIndex -lt $logicalDevices.Count) { Write-Host "CRITICAL: Logical Device state failed"; } if($healthCheckIndex -eq $logicalDevices.Count) { Write-Host "OK: All logical devices works fine"; } else { Write-Host "Unknown: Error occured"; }
– Adaptec, LSI - . LSI , Adaptec .
– . , . , . .
esxcfg-volume -M
cim . ( , RAID . , , .) maintenance .
CIM Adaptec /var/log/arcconf.log, . .. :
/var/spool/cron/crontabs/root, :
*/05 * * * * /vmfs/volumes/4ef49f1a-b2abe2ec-32c6-00123t13a19e2/arcconf_del.sh
/etc/rc.local , cron :
/bin/kill $(cat /var/run/crond.pid)
/bin/echo '*/05 * * * * /vmfs/volumes/4ef49f1a-b2abe2ec-32c6-001b213a19e2/arcconf_del.sh' >> /var/spool/cron/crontabs/root
/bin/busybox crond
/vmfs/volumes/4ef49f1a-b2abe2ec-32c6-001b213a19e2/arcconf_del.sh:
#!/bin/sh
rm -f /var/log/arcconf.log
: chmod +x /vmfs/volumes/4ef49f1a-b2abe2ec-32c6-001b213a19e2/arcconf_del.sh
5 .
SSH, CIM .
RAID-. . , , , . , Adaptec arcconf Y, E K ( 18856 , ).
, .
, . Windows NSClient++ exchange.nagios.org/directory/Plugins/Hardware/Storage-Systems/RAID-Controllers/Windows-nrpe-3A-Check-Raid-adaptec-AAC/details
c , – , PowerShell:
$outputPath = 'C:\Program Files (x86)\Nagios\scripts\MegaSAS.log' Set-Content $outputPath ""; $raidCLI = 'C:\Program Files (x86)\CLI_Win_8.04.07\megacli64.exe' $raidArgs = '-LDInfo -Lall -aALL' $shiftString = 5 $searchPattern = "Virtual Drive:" Start-Process -FilePath $raidCLI -ArgumentList $raidArgs -Wait $arcconfOutput = Get-Content -Path $outputPath $logicalDevices = Select-String -Path $outputPath -Pattern $searchPattern; $healthCheckIndex = 0; foreach($logicalDevice in $logicalDevices) { $deviceState = $logicalDevice.get_linenumber(); $deviceStatus = $arcconfOutput.Get($deviceState+$shiftString); if($deviceStatus -match "/?Optimal") { $healthCheckIndex = $healthCheckIndex+1; } } if($healthCheckIndex -lt $logicalDevices.Count) { Write-Host "CRITICAL: Logical Device state failed"; } if($healthCheckIndex -eq $logicalDevices.Count) { Write-Host "OK: All logical devices works fine"; } else { Write-Host "Unknown: Error occured"; }
– Adaptec, LSI - . LSI , Adaptec .
– . , . , . .
esxcfg-volume -M
cim . ( , RAID . , , .) maintenance .
CIM Adaptec /var/log/arcconf.log, . .. :
/var/spool/cron/crontabs/root, :
*/05 * * * * /vmfs/volumes/4ef49f1a-b2abe2ec-32c6-00123t13a19e2/arcconf_del.sh
/etc/rc.local , cron :
/bin/kill $(cat /var/run/crond.pid)
/bin/echo '*/05 * * * * /vmfs/volumes/4ef49f1a-b2abe2ec-32c6-001b213a19e2/arcconf_del.sh' >> /var/spool/cron/crontabs/root
/bin/busybox crond
/vmfs/volumes/4ef49f1a-b2abe2ec-32c6-001b213a19e2/arcconf_del.sh:
#!/bin/sh
rm -f /var/log/arcconf.log
: chmod +x /vmfs/volumes/4ef49f1a-b2abe2ec-32c6-001b213a19e2/arcconf_del.sh
5 .
SSH, CIM .
RAID-. . , , , . , Adaptec arcconf Y, E K ( 18856 , ).
, .
, . Windows NSClient++ exchange.nagios.org/directory/Plugins/Hardware/Storage-Systems/RAID-Controllers/Windows-nrpe-3A-Check-Raid-adaptec-AAC/details
c , – , PowerShell:
$outputPath = 'C:\Program Files (x86)\Nagios\scripts\MegaSAS.log' Set-Content $outputPath ""; $raidCLI = 'C:\Program Files (x86)\CLI_Win_8.04.07\megacli64.exe' $raidArgs = '-LDInfo -Lall -aALL' $shiftString = 5 $searchPattern = "Virtual Drive:" Start-Process -FilePath $raidCLI -ArgumentList $raidArgs -Wait $arcconfOutput = Get-Content -Path $outputPath $logicalDevices = Select-String -Path $outputPath -Pattern $searchPattern; $healthCheckIndex = 0; foreach($logicalDevice in $logicalDevices) { $deviceState = $logicalDevice.get_linenumber(); $deviceStatus = $arcconfOutput.Get($deviceState+$shiftString); if($deviceStatus -match "/?Optimal") { $healthCheckIndex = $healthCheckIndex+1; } } if($healthCheckIndex -lt $logicalDevices.Count) { Write-Host "CRITICAL: Logical Device state failed"; } if($healthCheckIndex -eq $logicalDevices.Count) { Write-Host "OK: All logical devices works fine"; } else { Write-Host "Unknown: Error occured"; }
– Adaptec, LSI - . LSI , Adaptec .
– . , . , . .
esxcfg-volume -M
cim . ( , RAID . , , .) maintenance .
CIM Adaptec /var/log/arcconf.log, . .. :
/var/spool/cron/crontabs/root, :
*/05 * * * * /vmfs/volumes/4ef49f1a-b2abe2ec-32c6-00123t13a19e2/arcconf_del.sh
/etc/rc.local , cron :
/bin/kill $(cat /var/run/crond.pid)
/bin/echo '*/05 * * * * /vmfs/volumes/4ef49f1a-b2abe2ec-32c6-001b213a19e2/arcconf_del.sh' >> /var/spool/cron/crontabs/root
/bin/busybox crond
/vmfs/volumes/4ef49f1a-b2abe2ec-32c6-001b213a19e2/arcconf_del.sh:
#!/bin/sh
rm -f /var/log/arcconf.log
: chmod +x /vmfs/volumes/4ef49f1a-b2abe2ec-32c6-001b213a19e2/arcconf_del.sh
5 .
SSH, CIM .
RAID-. . , , , . , Adaptec arcconf Y, E K ( 18856 , ).
, .
, . Windows NSClient++ exchange.nagios.org/directory/Plugins/Hardware/Storage-Systems/RAID-Controllers/Windows-nrpe-3A-Check-Raid-adaptec-AAC/details
c , – , PowerShell:
$outputPath = 'C:\Program Files (x86)\Nagios\scripts\MegaSAS.log' Set-Content $outputPath ""; $raidCLI = 'C:\Program Files (x86)\CLI_Win_8.04.07\megacli64.exe' $raidArgs = '-LDInfo -Lall -aALL' $shiftString = 5 $searchPattern = "Virtual Drive:" Start-Process -FilePath $raidCLI -ArgumentList $raidArgs -Wait $arcconfOutput = Get-Content -Path $outputPath $logicalDevices = Select-String -Path $outputPath -Pattern $searchPattern; $healthCheckIndex = 0; foreach($logicalDevice in $logicalDevices) { $deviceState = $logicalDevice.get_linenumber(); $deviceStatus = $arcconfOutput.Get($deviceState+$shiftString); if($deviceStatus -match "/?Optimal") { $healthCheckIndex = $healthCheckIndex+1; } } if($healthCheckIndex -lt $logicalDevices.Count) { Write-Host "CRITICAL: Logical Device state failed"; } if($healthCheckIndex -eq $logicalDevices.Count) { Write-Host "OK: All logical devices works fine"; } else { Write-Host "Unknown: Error occured"; }
– Adaptec, LSI - . LSI , Adaptec .
– . , . , . .
esxcfg-volume -M
cim . ( , RAID . , , .) maintenance .
CIM Adaptec /var/log/arcconf.log, . .. :
/var/spool/cron/crontabs/root, :
*/05 * * * * /vmfs/volumes/4ef49f1a-b2abe2ec-32c6-00123t13a19e2/arcconf_del.sh
/etc/rc.local , cron :
/bin/kill $(cat /var/run/crond.pid)
/bin/echo '*/05 * * * * /vmfs/volumes/4ef49f1a-b2abe2ec-32c6-001b213a19e2/arcconf_del.sh' >> /var/spool/cron/crontabs/root
/bin/busybox crond
/vmfs/volumes/4ef49f1a-b2abe2ec-32c6-001b213a19e2/arcconf_del.sh:
#!/bin/sh
rm -f /var/log/arcconf.log
: chmod +x /vmfs/volumes/4ef49f1a-b2abe2ec-32c6-001b213a19e2/arcconf_del.sh
5 .
SSH, CIM .
RAID-. . , , , . , Adaptec arcconf Y, E K ( 18856 , ).
, .
, . Windows NSClient++ exchange.nagios.org/directory/Plugins/Hardware/Storage-Systems/RAID-Controllers/Windows-nrpe-3A-Check-Raid-adaptec-AAC/details
c , – , PowerShell:
$outputPath = 'C:\Program Files (x86)\Nagios\scripts\MegaSAS.log' Set-Content $outputPath ""; $raidCLI = 'C:\Program Files (x86)\CLI_Win_8.04.07\megacli64.exe' $raidArgs = '-LDInfo -Lall -aALL' $shiftString = 5 $searchPattern = "Virtual Drive:" Start-Process -FilePath $raidCLI -ArgumentList $raidArgs -Wait $arcconfOutput = Get-Content -Path $outputPath $logicalDevices = Select-String -Path $outputPath -Pattern $searchPattern; $healthCheckIndex = 0; foreach($logicalDevice in $logicalDevices) { $deviceState = $logicalDevice.get_linenumber(); $deviceStatus = $arcconfOutput.Get($deviceState+$shiftString); if($deviceStatus -match "/?Optimal") { $healthCheckIndex = $healthCheckIndex+1; } } if($healthCheckIndex -lt $logicalDevices.Count) { Write-Host "CRITICAL: Logical Device state failed"; } if($healthCheckIndex -eq $logicalDevices.Count) { Write-Host "OK: All logical devices works fine"; } else { Write-Host "Unknown: Error occured"; }
– Adaptec, LSI - . LSI , Adaptec .
– . , . , . .
esxcfg-volume -M
cim . ( , RAID . , , .) maintenance .
CIM Adaptec /var/log/arcconf.log, . .. :
/var/spool/cron/crontabs/root, :
*/05 * * * * /vmfs/volumes/4ef49f1a-b2abe2ec-32c6-00123t13a19e2/arcconf_del.sh
/etc/rc.local , cron :
/bin/kill $(cat /var/run/crond.pid)
/bin/echo '*/05 * * * * /vmfs/volumes/4ef49f1a-b2abe2ec-32c6-001b213a19e2/arcconf_del.sh' >> /var/spool/cron/crontabs/root
/bin/busybox crond
/vmfs/volumes/4ef49f1a-b2abe2ec-32c6-001b213a19e2/arcconf_del.sh:
#!/bin/sh
rm -f /var/log/arcconf.log
: chmod +x /vmfs/volumes/4ef49f1a-b2abe2ec-32c6-001b213a19e2/arcconf_del.sh
5 .
SSH, CIM .
RAID-. . , , , . , Adaptec arcconf Y, E K ( 18856 , ).
, .
, . Windows NSClient++ exchange.nagios.org/directory/Plugins/Hardware/Storage-Systems/RAID-Controllers/Windows-nrpe-3A-Check-Raid-adaptec-AAC/details
c , – , PowerShell:
$outputPath = 'C:\Program Files (x86)\Nagios\scripts\MegaSAS.log' Set-Content $outputPath ""; $raidCLI = 'C:\Program Files (x86)\CLI_Win_8.04.07\megacli64.exe' $raidArgs = '-LDInfo -Lall -aALL' $shiftString = 5 $searchPattern = "Virtual Drive:" Start-Process -FilePath $raidCLI -ArgumentList $raidArgs -Wait $arcconfOutput = Get-Content -Path $outputPath $logicalDevices = Select-String -Path $outputPath -Pattern $searchPattern; $healthCheckIndex = 0; foreach($logicalDevice in $logicalDevices) { $deviceState = $logicalDevice.get_linenumber(); $deviceStatus = $arcconfOutput.Get($deviceState+$shiftString); if($deviceStatus -match "/?Optimal") { $healthCheckIndex = $healthCheckIndex+1; } } if($healthCheckIndex -lt $logicalDevices.Count) { Write-Host "CRITICAL: Logical Device state failed"; } if($healthCheckIndex -eq $logicalDevices.Count) { Write-Host "OK: All logical devices works fine"; } else { Write-Host "Unknown: Error occured"; }
– Adaptec, LSI - . LSI , Adaptec .
– . , . , . .
esxcfg-volume -M
cim . ( , RAID . , , .) maintenance .
CIM Adaptec /var/log/arcconf.log, . .. :
/var/spool/cron/crontabs/root, :
*/05 * * * * /vmfs/volumes/4ef49f1a-b2abe2ec-32c6-00123t13a19e2/arcconf_del.sh
/etc/rc.local , cron :
/bin/kill $(cat /var/run/crond.pid)
/bin/echo '*/05 * * * * /vmfs/volumes/4ef49f1a-b2abe2ec-32c6-001b213a19e2/arcconf_del.sh' >> /var/spool/cron/crontabs/root
/bin/busybox crond
/vmfs/volumes/4ef49f1a-b2abe2ec-32c6-001b213a19e2/arcconf_del.sh:
#!/bin/sh
rm -f /var/log/arcconf.log
: chmod +x /vmfs/volumes/4ef49f1a-b2abe2ec-32c6-001b213a19e2/arcconf_del.sh
5 .
SSH, CIM .
RAID-. . , , , . , Adaptec arcconf Y, E K ( 18856 , ).
, .
, . Windows NSClient++ exchange.nagios.org/directory/Plugins/Hardware/Storage-Systems/RAID-Controllers/Windows-nrpe-3A-Check-Raid-adaptec-AAC/details
c , – , PowerShell:
$outputPath = 'C:\Program Files (x86)\Nagios\scripts\MegaSAS.log' Set-Content $outputPath ""; $raidCLI = 'C:\Program Files (x86)\CLI_Win_8.04.07\megacli64.exe' $raidArgs = '-LDInfo -Lall -aALL' $shiftString = 5 $searchPattern = "Virtual Drive:" Start-Process -FilePath $raidCLI -ArgumentList $raidArgs -Wait $arcconfOutput = Get-Content -Path $outputPath $logicalDevices = Select-String -Path $outputPath -Pattern $searchPattern; $healthCheckIndex = 0; foreach($logicalDevice in $logicalDevices) { $deviceState = $logicalDevice.get_linenumber(); $deviceStatus = $arcconfOutput.Get($deviceState+$shiftString); if($deviceStatus -match "/?Optimal") { $healthCheckIndex = $healthCheckIndex+1; } } if($healthCheckIndex -lt $logicalDevices.Count) { Write-Host "CRITICAL: Logical Device state failed"; } if($healthCheckIndex -eq $logicalDevices.Count) { Write-Host "OK: All logical devices works fine"; } else { Write-Host "Unknown: Error occured"; }
– Adaptec, LSI - . LSI , Adaptec .
– . , . , . .
Source: https://habr.com/ru/post/186950/
All Articles