Wondering if anybody has found a way to add Hardware Health Sensors using Orion SDK (python). If you have a Swis invoke query, that'll work as well.
Thx,
Savi
I added a page to the wiki to cover this. It is pretty minimal, but it at least explains that verb.
Hardware Health · solarwinds/OrionSDK Wiki · GitHub
Please see this thread: Automating node additions e2e: including Hardware Health Sensors
Thanks tdanner! I saw this thread where you posted the invoke query for disabling sensors. Can you please provide the same for enabling them?
swis.invoke('Orion.HardwareHealth.HardwareInfo', 'DisableHardwareHealth', 'N:589')
I tried the below query, but looks like I'm missing another param
swis.invoke('Orion.HardwareHealth.HardwareInfo', 'EnableHardwareHealth', 'N:589')Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/orionsdk/swisclient.py", line 29, in invoke
"Invoke/{}/{}".format(entity, verb), args).json()
File "/usr/local/lib/python2.7/dist-packages/orionsdk/swisclient.py", line 59, in _req
resp.raise_for_status()
File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 939, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Verb Orion.HardwareHealth.HardwareInfoBase.EnableHardwareHealth requires 2 parameters not 1 for url <api-server>/SolarWinds/InformationService/v3/Json/Invoke/Orion.HardwareHealth.HardwareInfo/EnableHardwareHealth
Re: Python Orion SDK - Q: HowTo discover new device into NPM BUT disabling some standard pollers
tdanner Perfect, thanks a lot!
Hello tdanner
I've tried the verb,
localhost/SolarWinds/InformationService/v3/Json/Invoke/Orion.HardwareHealth.HardwareInfoBase/EnableHardwareHealth
with body= ["N:212", 9]
and I get response:
{"Message":"Verb Orion.HardwareHealth.HardwareInfoBase.EnableHardwareHealth: Not found","ExceptionType":"SolarWinds.InformationService.Verb.VerbExecutorException","FullException":"SolarWinds.InformationService.Verb.VerbExecutorException: Verb Orion.HardwareHealth.HardwareInfoBase.EnableHardwareHealth: Not found\u000d\u000a at SolarWinds.InformationService.Core.InformationService.Invoke[T](String entity, String verb, Action`1 setupParameters, Func`2 extractReturnValue)"}
Is there anything wrong from EnableHardwareHealth verb
Thank you