Quantcast
Channel: THWACK: Popular Discussions - Orion SDK
Viewing all articles
Browse latest Browse all 3719

Node Resource Discovery Via JSON API

$
0
0

So the configuration seems to be properly set.

 

The community is being properly set and I get a completed discovery profile status but the polling and interface discovery isnt automatically working using the JSON api.

 

It will only work if I manually click in the UI to poll and list resources, then it will find everything.

 

CONFIG DATA

 

[{"Name": "app1.phx1",

   "EngineID": 1,

   "JobTimeoutSeconds": 3600,

   "SearchTimeoutMiliseconds": 2000,

   "SnmpTimeoutMiliseconds": 2000,

   "SnmpRetries": 3,

   "RepeatIntervalMiliseconds": 1500,

   "SnmpPort": 161,

   "HopCount": 0,

   "PreferredSnmpVersion": "SNMP2c",

   "DisableIcmp": "false",

   "AllowDuplicateNodes": "false",

   "IsAutoImport": "true",

   "IsHidden": "true",

   "PluginConfigurations": [  

       {"PluginConfigurationItem":"<?xml version='1.0' encoding='utf-16'?><PluginItems><knownTypes><ArrayOfstring xmlns:i='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://schemas.microsoft.com/2003/10/Serialization/Arrays'><string>SolarWinds.Orion.Core.Models.Discovery.CoreDiscoveryPluginConfiguration,SolarWinds.Orion.Core.Models</string></ArrayOfstring></knownTypes><pluginItem><ArrayOfDiscoveryPluginConfigurationBase xmlns:i='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://schemas.datacontract.org/2004/07/SolarWinds.Orion.Core.Models.Discovery'><DiscoveryPluginConfigurationBase xmlns:d2p1='http://schemas.solarwinds.com/2008/Orion' i:type='d2p1:CoreDiscoveryPluginConfiguration'><d2p1:ActiveDirectoryList /><d2p1:AddressRange /><d2p1:AgentsAddresses xmlns:d3p1='http://schemas.microsoft.com/2003/10/Serialization/Arrays' /><d2p1:AutoImportVolumeTypes xmlns:d3p1='http://schemas.datacontract.org/2004/07/SolarWinds.Common.Snmp' i:nil='true' /><d2p1:BulkList xmlns:d3p1='http://schemas.microsoft.com/2003/10/Serialization/Arrays'><d3p1:string>IP_HIDDEN</d3p1:string></d2p1:BulkList><d2p1:Credentials><d2p1:credentials><knownTypes><ArrayOfstring xmlns:i='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://schemas.microsoft.com/2003/10/Serialization/Arrays' /></knownTypes><pluginItem><d2p1:ArrayOfCredential xmlns:i='http://www.w3.org/2001/XMLSchema-instance' /></pluginItem></d2p1:credentials></d2p1:Credentials><d2p1:DiscoverAgentNodes>false</d2p1:DiscoverAgentNodes><d2p1:PreferredPollingMethod>SNMP</d2p1:PreferredPollingMethod><d2p1:SharedCredentials xmlns:d3p1='http://schemas.microsoft.com/2003/10/Serialization/Arrays'><d3p1:KeyValueOfintint><d3p1:Key>1</d3p1:Key><d3p1:Value>3</d3p1:Value></d3p1:KeyValueOfintint></d2p1:SharedCredentials><d2p1:SubnetList /><d2p1:WMICredentials /><d2p1:WmiRetries>2</d2p1:WmiRetries><d2p1:WmiRetryInterval>PT1S</d2p1:WmiRetryInterval></DiscoveryPluginConfigurationBase></ArrayOfDiscoveryPluginConfigurationBase></pluginItem></PluginItems>"},

       {"PluginConfigurationItem":"<?xml version='1.0' encoding='utf-16'?><PluginItems><knownTypes><ArrayOfstring xmlns:i='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://schemas.microsoft.com/2003/10/Serialization/Arrays'><string>SolarWinds.Interfaces.Common.Models.Discovery.InterfacesDiscoveryPluginConfiguration,SolarWinds.Interfaces.Common</string></ArrayOfstring></knownTypes><pluginItem><ArrayOfDiscoveryPluginConfigurationBase xmlns:i='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://schemas.datacontract.org/2004/07/SolarWinds.Orion.Core.Models.Discovery'><DiscoveryPluginConfigurationBase xmlns:d2p1='http://schemas.solarwinds.com/2008/Interfaces' i:type='d2p1:InterfacesDiscoveryPluginConfiguration'><d2p1:AutoImportExpressionFilter xmlns:d3p1='http://schemas.datacontract.org/2004/07/' i:nil='true' /><d2p1:AutoImportStatus xmlns:d3p1='http://schemas.datacontract.org/2004/07/SolarWinds.Interfaces.Common.Enums'><d3p1:IfAutoImportStatus>Up</d3p1:IfAutoImportStatus><d3p1:IfAutoImportStatus>Down</d3p1:IfAutoImportStatus><d3p1:IfAutoImportStatus>Shutdown</d3p1:IfAutoImportStatus></d2p1:AutoImportStatus><d2p1:AutoImportVirtualTypes xmlns:d3p1='http://schemas.datacontract.org/2004/07/System'><d3p1:boolean>true</d3p1:boolean><d3p1:boolean>false</d3p1:boolean></d2p1:AutoImportVirtualTypes><d2p1:AutoImportVlanPortTypes xmlns:d3p1='http://schemas.datacontract.org/2004/07/SolarWinds.Orion.Core.Models.Enums'><d3p1:VlanPortType>Trunk</d3p1:VlanPortType><d3p1:VlanPortType>Access</d3p1:VlanPortType><d3p1:VlanPortType>Unknown</d3p1:VlanPortType></d2p1:AutoImportVlanPortTypes><d2p1:DiscoverVLANs>false</d2p1:DiscoverVLANs></DiscoveryPluginConfigurationBase></ArrayOfDiscoveryPluginConfigurationBase></pluginItem></PluginItems>"}    

   ]

  }]

 

This works fine.

 

This is the details of the Node after creation.

 

NODE DATA

 

Array

(

    [NodeID] => ID_HIDDEN

    [ObjectSubType] => SNMP

    [SNMPVersion] => 2

    [Community] => publ1c15

    [IP] => IP_HIDDEN

    [IPAddressType] => IPv4

    [Caption] => UT_app1.phx1_11-14_07:42

    [NodeDescription] => app1.phx1

    [Description] =>

    [Status] => 1

    [SystemUpTime] =>

    [PercentMemoryAvailable] =>

    [MemoryAvailable] =>

    [MemoryUsed] => -2

    [TotalMemory] =>

    [CPULoad] => -2

    [EngineID] => 1

    [UnManaged] =>

    [UnManageFrom] => 1899-12-30T00:00:00.0000000Z

    [UnManageUntil] => 1899-12-30T00:00:00.0000000Z

    [Uri] => NODE_URL

    [Division] => PremierWest

    [Delimiter] => |

    [VIP] => No

    [SystemsGrouping] => SystemsGrouping

    [NetcoolNotify] => Yes

    [SmartWan] => Yes

    [CustomerName] => TELE : PHX1

    [CustomerID] => 30848

)

 

It just simply wont poll and detect resources automatically only manually. Can you let me know what I need to do.

 

It wont detect the machine type, memory, all those things automatically.

 

Thank you.


Viewing all articles
Browse latest Browse all 3719

Trending Articles



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