本格的なオペレーティングシステムを使用する場合、通常は問題は発生しません。通常、RAIDコントローラーから情報を受信するためのドライバーとソフトウェアがあります。
ただし、vCenterの形式で追加のバインドを行わずにESXiサーバーを使用する場合、コントローラーから情報を取得することは完全に簡単ではありません。
まず、ESXiは本格的なオペレーティングシステムではないため、ESXiにインストールできるソフトウェアの選択肢が限られています。 理論的には、追加のライブラリをサーバーにインストールすることができます。これにより、cliインターフェースを実行してコントローラーを制御できるようになります。 しかし、この解決策はシステムの構造に介入する必要があり、結果の予測が不十分になる可能性があり、さらに自動監視用のインターフェースを取得するという主要な問題の解決策を提供しないため、悪いです。
この問題を解決するには、ESXi CIMに付属のサーバーを使用できます。 この場合、CIMサポート付きドライバー、VMware用のCIMプロバイダー、およびこのCIMサーバーと通信できるソフトウェアが必要です。
だから、我々は持っています-Nagios、Windowsシステム上のNagiosクライアントとESXi。
通常、ESXi自体にドライバーをインストールしても問題は発生しません。vibパッケージをサーバーにアップロードし、他のvibパッケージと同様にesxcliまたはesxupdateを使用してインストールするだけです。 もちろん、その前にすべてのゲストシステムをオフにして、ESXiをメンテナンスモードにする必要があります。
最も興味深いことは後で始まります-サーバーが起動すると、データストアがホストに接続されていないことがわかります。 データストアをESXi 5に接続するには、UUIDを保持したままVMwareクライアントスナップインを介してリストに追加する必要があります。ESXi4.1では、コンソールで少し作業する必要があります。
まず、使用可能なボリュームのリストを表示します。
esxcfg-volume -l
次に、必要なボリュームをマウントします。–Mスイッチは、ボリュームを永続的にマウントすることを示します。
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 .
– . , . , . .