Get S.M.A.R.T. value through smartmontool
-
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.txtSMART-01.cmd code
@echo off
C:\NetXMS\Smartinfo "C:\netxms\SmartTest.txt" -Raw_Read_Error_Ratethe 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 writeint32($1)



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