рдЪрд╛рд▓рд╛рдХ рдХреЗ рдЖрд╡рд┐рд╖реНрдХрд╛рд░ рдХреЗ рд▓рд┐рдП рд▓рдХреНрд╖реНрдп

рдЕрдзрд┐рдХрд╛рдВрд╢ рдкреНрд░рд╢рд╛рд╕рдХ рдЬрд╛рдирддреЗ рд╣реИрдВ рдХрд┐ рдЕрдкрдиреЗ рд╕рдордп, рддрдВрддреНрд░рд┐рдХрд╛рдУрдВ рдФрд░ рдЙрдкрдпреЛрдЧрдХрд░реНрддрд╛ рдбреЗрдЯрд╛ рдХреЛ рд╕рдВрд░рдХреНрд╖рд┐рдд рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП, RAID рд╕рд░рдгрд┐рдпреЛрдВ рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рдирд╛ рдЖрд╡рд╢реНрдпрдХ рд╣реИред рд╣рд╛рд▓рд╛рдВрдХрд┐, рдЙрдирдХрд╛ рдЙрдкрдпреЛрдЧ рдХреЗрд╡рд▓ рдЙрдЪрд┐рдд рд╣реИ рдЕрдЧрд░ рдкрд░реНрдпрд╛рдкреНрдд рдирд┐рдЧрд░рд╛рдиреА рдкреНрд░рдгрд╛рд▓реА рд╣реЛред
рдпрджрд┐ рдЖрдк рдПрдХ рдкреВрд░реНрдг-рд╕рдВрдЪрд╛рд▓рд┐рдд рдСрдкрд░реЗрдЯрд┐рдВрдЧ рд╕рд┐рд╕реНрдЯрдо рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рддреЗ рд╣реИрдВ, рддреЛ рд╕рдорд╕реНрдпрд╛рдПрдВ рдЖрдорддреМрд░ рдкрд░ рдЙрддреНрдкрдиреНрди рдирд╣реАрдВ рд╣реЛрддреА рд╣реИрдВ: рдПрдХ RAID рдирд┐рдпрдВрддреНрд░рдХ рд╕реЗ рдЬрд╛рдирдХрд╛рд░реА рдкреНрд░рд╛рдкреНрдд рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдЖрдорддреМрд░ рдкрд░ рдбреНрд░рд╛рдЗрд╡рд░ рдФрд░ рд╕реЙрдлрд╝реНрдЯрд╡реЗрдпрд░ рд╣реЛрддреЗ рд╣реИрдВред

рд▓реЗрдХрд┐рди vCenter рдХреЗ рд░реВрдк рдореЗрдВ рдЕрддрд┐рд░рд┐рдХреНрдд рдмрдВрдзрди рдХреЗ рдмрд┐рдирд╛ ESXi рд╕рд░реНрд╡рд░ рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рдиреЗ рдХреЗ рдорд╛рдорд▓реЗ рдореЗрдВ, рдирд┐рдпрдВрддреНрд░рдХреЛрдВ рд╕реЗ рдЬрд╛рдирдХрд╛рд░реА рдкреНрд░рд╛рдкреНрдд рдХрд░рдирд╛ рдкреВрд░реА рддрд░рд╣ рд╕реЗ рддреБрдЪреНрдЫ рдирд╣реАрдВ рд╣реЛ рд╕рдХрддрд╛ рд╣реИред

рд╕рдмрд╕реЗ рдкрд╣рд▓реЗ, ESXi рдкреВрд░реНрдг рд╡рд┐рдХрд╕рд┐рдд рдСрдкрд░реЗрдЯрд┐рдВрдЧ рд╕рд┐рд╕реНрдЯрдо рдирд╣реАрдВ рд╣реИ, рдЗрд╕рд▓рд┐рдП, рд╣рдо рд╕реЙрдлреНрдЯрд╡реЗрдпрд░ рдХреА рдкрд╕рдВрдж рдореЗрдВ рд╕реАрдорд┐рдд рд╣реИрдВ рдЬрд┐рд╕реЗ рд╣рдо рдЗрд╕рдХреЗ рд▓рд┐рдП рдЗрдВрд╕реНрдЯреЙрд▓ рдХрд░ рд╕рдХрддреЗ рд╣реИрдВред рд╕рд░реНрд╡рд░ рдкрд░ рдЕрддрд┐рд░рд┐рдХреНрдд рд▓рд╛рдЗрдмреНрд░реЗрд░реА рд╕реНрдерд╛рдкрд┐рдд рдХрд░рдирд╛ рд╕реИрджреНрдзрд╛рдВрддрд┐рдХ рд░реВрдк рд╕реЗ рд╕рдВрднрд╡ рд╣реИ, рдЬреЛ рдирд┐рдпрдВрддреНрд░рдХ рдХреЛ рдирд┐рдпрдВрддреНрд░рд┐рдд рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдХреНрд▓реА рдЗрдВрдЯрд░рдлрд╝реЗрд╕ рдХреЛ рдЪрд▓рд╛рдиреЗ рдХреЗ рд▓рд┐рдП рд╕рдВрднрд╡ рдмрдирд╛ рджреЗрдЧрд╛ред рд▓реЗрдХрд┐рди рдпрд╣ рд╕рдорд╛рдзрд╛рди рдЦрд░рд╛рдм рд╣реИ, рдХреНрдпреЛрдВрдХрд┐ рд╕рд┐рд╕реНрдЯрдо рдХреА рд╕рдВрд░рдЪрдирд╛ рдореЗрдВ рд╣рд╕реНрддрдХреНрд╖реЗрдк рдХрд░рдирд╛ рдЖрд╡рд╢реНрдпрдХ рд╣реИ, рдЬрд┐рд╕рд╕реЗ рдЦрд░рд╛рдм рдЕрдиреБрдорд╛рдирд┐рдд рдкрд░рд┐рдгрд╛рдо рд╣реЛ рд╕рдХрддреЗ рд╣реИрдВ, рдЗрд╕рдХреЗ рдЕрд▓рд╛рд╡рд╛, рдпрд╣ рдореБрдЦреНрдп рд╕рдорд╕реНрдпрд╛ рдХрд╛ рд╕рдорд╛рдзрд╛рди рдкреНрд░рджрд╛рди рдирд╣реАрдВ рдХрд░рддрд╛ рд╣реИ - рд╕реНрд╡рдЪрд╛рд▓рд┐рдд рдирд┐рдЧрд░рд╛рдиреА рдХреЗ рд▓рд┐рдП рдПрдХ рдЗрдВрдЯрд░рдлрд╝реЗрд╕ рдкреНрд░рд╛рдкреНрдд рдХрд░рдирд╛ред

рд╣рдорд╛рд░реА рд╕рдорд╕реНрдпрд╛ рдХреЛ рд╣рд▓ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП, рдЖрдк ESXi CIM рдХреЗ рд╕рд╛рде рджрд┐рдП рдЧрдП рд╕рд░реНрд╡рд░ рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░ рд╕рдХрддреЗ рд╣реИрдВред рдЗрд╕ рдорд╛рдорд▓реЗ рдореЗрдВ рд╣рдореЗрдВ рдЖрд╡рд╢реНрдпрдХрддрд╛ рд╣реЛрдЧреА: CIM рд╕рдкреЛрд░реНрдЯ рд╡рд╛рд▓рд╛ рдбреНрд░рд╛рдЗрд╡рд░, VMware рдХреЗ рд▓рд┐рдП CIM рдкреНрд░рджрд╛рддрд╛ рдФрд░ рдЗрд╕ IMIM рд╕рд░реНрд╡рд░ рдХреЗ рд╕рд╛рде рд╕рдВрдЪрд╛рд░ рдХрд░рдиреЗ рдореЗрдВ рд╕рдХреНрд╖рдо рд╕реЙрдлрд╝реНрдЯрд╡реЗрдпрд░ред

рдЗрд╕рд▓рд┐рдП, рд╣рдорд╛рд░реЗ рдкрд╛рд╕ - рд╡рд┐рдВрдбреЛрдЬ рд╕рд┐рд╕реНрдЯрдо рдФрд░ рдИрдПрд╕рдПрдХреНрд╕рдЖрдИ рдкрд░ рдирд╛рдЧрд┐рдпреЛрд╕, рдирд╛рдЧрд┐рдпреЛрд╕ рдХреНрд▓рд╛рдЗрдВрдЯ рд╣реИрдВред

ESXi рдкрд░ рдбреНрд░рд╛рдЗрд╡рд░реЛрдВ рдХреЛ рд╕реНрдерд╛рдкрд┐рдд рдХрд░рдирд╛, рдПрдХ рдирд┐рдпрдо рдХреЗ рд░реВрдк рдореЗрдВ, рд╕рдорд╕реНрдпрд╛рдУрдВ рдХрд╛ рдХрд╛рд░рдг рдирд╣реАрдВ рдмрдирддрд╛ рд╣реИ: рдЖрдкрдХреЛ рдХреЗрд╡рд▓ vib рдкреИрдХреЗрдЬ рдХреЛ рд╕рд░реНрд╡рд░ рдкрд░ рдЕрдкрд▓реЛрдб рдХрд░рдиреЗ рдФрд░ рдХрд┐рд╕реА рднреА рдЕрдиреНрдп vib рдкреИрдХреЗрдЬ рдХреА рддрд░рд╣ esxcli рдпрд╛ esxupdate рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рдХреЗ рдЗрд╕реЗ рд╕реНрдерд╛рдкрд┐рдд рдХрд░рдиреЗ рдХреА рдЖрд╡рд╢реНрдпрдХрддрд╛ рд╣реИред рдмреЗрд╢рдХ, рдЗрд╕рд╕реЗ рдкрд╣рд▓реЗ рдЖрдкрдХреЛ рд╕рднреА рдЕрддрд┐рдерд┐ рдкреНрд░рдгрд╛рд▓рд┐рдпреЛрдВ рдХреЛ рдмрдВрдж рдХрд░рдиреЗ рдФрд░ ESXi рдХреЛ рд░рдЦрд░рдЦрд╛рд╡ рдореЛрдб рдореЗрдВ рд░рдЦрдиреЗ рдХреА рдЖрд╡рд╢реНрдпрдХрддрд╛ рд╣реИред

рд╕рдмрд╕реЗ рджрд┐рд▓рдЪрд╕реНрдк рдмрд╛рдд рдмрд╛рдж рдореЗрдВ рд╢реБрд░реВ рд╣реЛрддреА рд╣реИ - рдЬрдм рд╕рд░реНрд╡рд░ рдмреВрдЯ рд╣реЛрддрд╛ рд╣реИ, рддреЛ рдпрд╣ рдкрддрд╛ рдЪрд▓рддрд╛ рд╣реИ рдХрд┐ рд╣рдорд╛рд░рд╛ рдбреЗрдЯрд╛рд╕реНрдЯреЛрд░ рдЕрдм рд╣реЛрд╕реНрдЯ рд╕реЗ рдЬреБрдбрд╝рд╛ рдирд╣реАрдВ рд╣реИред ESXi 5 рдореЗрдВ рдбреЗрдЯрд╛рд╕реНрдЯреЛрд░ рдХрдиреЗрдХреНрдЯ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП, рдЖрдкрдХреЛ рдмрд╕ UUID рдХреЛ рдмрдирд╛рдП рд░рдЦрдиреЗ рдХреЗ рджреМрд░рд╛рди VMware рдХреНрд▓рд╛рдЗрдВрдЯ рд╕реНрдиреИрдк-рдЗрди рдХреЗ рдорд╛рдзреНрдпрдо рд╕реЗ рд╕реВрдЪреА рдореЗрдВ рдЬреЛрдбрд╝рдирд╛ рд╣реЛрдЧрд╛, ESXi 4.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 .

тАУ . , . , . .
  1. 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 .

    тАУ . , . , . .
  2. 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 .

    тАУ . , . , . .
  3. 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 .

    тАУ . , . , . .
  4. 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 .

    тАУ . , . , . .
  5. 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/In186950/


All Articles