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

  1. Home
  2. Support
  3. Get S.M.A.R.T. value through smartmontool

Get S.M.A.R.T. value through smartmontool

Scheduled Pinned Locked Moved Support
1 Posts 1 Posters 11.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    S
    sonadorje
    wrote on last edited by
    #1

    Expert:
      This is the detail of configure smartmontool.
      1.how to configure agent's file at client?

    ExternalParametersProvider = C:\netxms\Smart.cmd:3600
    ExternalParameter = Read_Error_Rate:cmd.exe /c C:\NetXMS\SMART-01.cmd
    ExternalParameter = Spin_Up_Time:cmd.exe /c C:\NetXMS\SMART-03.cmd
    ExternalParameter = Reallocated_Sector_Ct:cmd.exe /c C:\NetXMS\SMART-05.cmd
    ExternalParameter = Seek_Error_Rate:cmd.exe /c C:\NetXMS\SMART-07.cmd
    ExternalParameter = Spin_Retry_Count:cmd.exe /c C:\NetXMS\SMART-10.cmd
    ExternalParameter = Calibration_Retry_Count:cmd.exe /c C:\NetXMS\SMART-11.cmd
    ExternalParameter = G-Sense_Error_Rate:cmd.exe /c C:\NetXMS\SMART-191.cmd
    ExternalParameter = Reallocated_Event_Count:cmd.exe /c C:\NetXMS\SMART-196.cmd
    ExternalParameter = Current_Pending_Sector:cmd.exe /c C:\NetXMS\SMART-197.cmd
    ExternalParameter = UDMA_CRC_Error_Count:cmd.exe /c C:\NetXMS\SMART-199.cmd
    ExternalParameter = Multi_Zone_Error_Rate:cmd.exe /c C:\NetXMS\SMART-200.cmd

     
    smart.cmd

    @echo off
    C:\smartmontools\bin\smartctl.exe -A -f brief sda > C:\netxms\SmartTest.txt

    SMART-01.cmd code

    @echo off
    C:\NetXMS\Smartinfo "C:\netxms\SmartTest.txt" -Raw_Read_Error_Rate

    the smartinfo is a tools writed by myself,it read value from smartTest.txt that smartctl output.

    2.how to create a DCI and get return value?
      after create a DCI,in the transformation write

    int32($1)
    

     


    2016-06-13_09h58_57.png

    2016-06-13_10h16_10.png

    2016-06-13_10h16_41.png

    SmartInfo.zip

    1 Reply Last reply
    0

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • 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