Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20958

Re: Devices not polling after adding using SDK

$
0
0

Hi,

 

I've provided the REST api sample below which I used to create a node and assign pollers. It does work and polling happens. Please let me know if there is something missing/ added in your script from what is provided below. If not provide the script that you use for creating the node via REST.

Details provided for creating node are just samples. Provide your node IP and other information when running the same.

 

curl -k -u admin: -X POST -H "Content-Type: application/json" https://localhost:17778/SolarWinds/InformationService/v3/Json/Create/Orion.Nodes -d @"CreateNode.txt"

 

Contents of CreateNode.txt

 

{    "EntityType":"Orion.Nodes",

    "IPAddress":"10.10.1.1",

    "IPAddressGUID":"044648a4-0000-0000-0000-000000000000",

    "Caption":"",

    "DynamicIP":"false",

    "EngineID":"1",

    "Status":"1",

    "UnManaged":"false",

    "Allow64BitCounters":"false",

    "SysObjectID":"",

    "MachineType":"",

    "VendorIcon":"",

    "ObjectSubType":"SNMP",

    "SNMPVersion":"2",

    "Community":"public",

    "RediscoveryInterval":"5",

    "PollInterval":"120",

    "StatCollection":"10",

    "BufferNoMemThisHour":"-2",

    "BufferNoMemToday":"-2",

    "BufferSmMissThisHour":"-2",

      "BufferSmMissToday":"-2",

      "BufferMdMissThisHour":"-2",

      "BufferMdMissToday":"-2",

      "BufferBgMissThisHour":"-2",

      "BufferBgMissToday":"-2",

      "BufferLgMissThisHour":"-2",

      "BufferLgMissToday":"-2",

      "BufferHgMissThisHour":"-2",

      "BufferHgMissToday":"-2"

}

 

A node will be polled only when a poller is assigned to it. Provided the script for the same. You can change the PollerType based on your need.

 

curl -k -u admin: -X POST -H "Content-Type: application/json" https://localhost:17778/SolarWinds/InformationService/v3/Json/Create/Orion.Pollers -d @"C:\Users\Administrator\Desktop\c\CreatePollers.txt"

 

Contents of CreatePollers.txt

 

{

    "NetObject":"N:1",

    "NetObjectType":"N",

    "NetObjectID":"1",

    "PollerType":"N.Details.SNMP.Generic"

}


Viewing all articles
Browse latest Browse all 20958

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>