Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

I

IcebreakerKrasin

@IcebreakerKrasin
Unfollow Follow
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to use the External List and ExternalMetricProvider correctly?
    I IcebreakerKrasin
    Support (Russian)

    Good day! 
    I added an External List and an ExternalMetricProvider to the agent configuration file.:

    ExternalList = RaidController: powershell.exe -NoLogo -STA -NoProfile
    -NonInteractive -File "C:\Backup\StartRI.ps1" -List

    ExternalMetricProvider = powershell.exe -NoLogo -STA -NoProfile
    -NonInteractive -File "C:\Backup\StartRI.ps1":600

    Test script for getting controller parameters:

    $PSCommandPath = "C:\Backup\C_Model.ps1"
    Start-Process powershell -ArgumentList '-NoProfile -NonInteractive -ExecutionPolicy Bypass -File "C:\Backup\C_Model.ps1'
    -Verb RunAs
    $prefix = 'Product Name'
    $ExecuteStoreCLI = Get-Content -Path 'C:\Backup\Storcli\Windows\RaidInfo.txt' -Raw
    $ArrayStorCli = ConvertFrom-Json  $ExecuteStoreCLI
    $reportLine = ([String]::Format("{0} ={1}",
                $prefix,
                $ArrayStorCli.Controllers.'Response data'.'Product Name'       
    ))
    Write-Output  $reportLine

    The script returns a string like:
    Product Name = AVAGO MegaRAID SAS 9440-8i


    The question is this: How do I make the result, a row named "AVAGO MegaRAID SAS 9440-8i" appear in the "Value" column? For me, all the results are recorded only in the "Description" column, regardless of whether it is numeric or string data. What format should I output the string from the script in order to get the correct Key\Value for ExternalMetricProvider?

    Metrica Settings:

  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups