DX NetOps

Expand all | Collapse all

PM - How to import/create new monitoring profiles using REST

  • 1.  PM - How to import/create new monitoring profiles using REST

    Posted 12-21-2018 01:56 PM

    Hi,

     

    I've exported a Monitoring Profile through REST, now I'd like to import it, is it possible?

     

    http://da_host:8581/rest/monitoringprofiles/documentation

     

    MonitoringProfile

    Description
    Defines the normalized data that will be polled and the rate at which to poll the data. A given monitoring profile can be associated with one or more groups of devices.
    URI & Operations
    Base URI = http://hostname:8581/rest/monitoringprofiles/
    hostname:8581
    Specifies the Data Aggregator host name. 8581 is the required port.
    create
    Creates an item of the specified type with the provided values.
    URL: http://hostname:8581/rest/monitoringprofiles/
    HTTP method = POST
    XSD for provided XML: http://hostname:8581/rest/monitoringprofiles/xsd/create.xsd

     

    Below Monitoring Profile output

     

    <MonitoringProfileList>
    <MonitoringProfile version="1.1.0">
    <ID>3920296</ID>
    <ChangeDetectionRateUnits>HOURS</ChangeDetectionRateUnits>
    <FacetTypesList>
    <FacetTypes>
    {http://im.ca.com/normalizer}NormalizedAvailabilityInfo
    </FacetTypes>
    <FacetTypes>{http://im.ca.com/normalizer}NormalizedCPUInfo</FacetTypes>
    <FacetTypes>{http://im.ca.com/normalizer}NormalizedPortInfo</FacetTypes>
    <FacetTypes>{http://im.ca.com/normalizer}NormalizedMemoryInfo</FacetTypes>
    <FacetTypes>
    {http://im.ca.com/normalizer}NormalizedReachabilityInfo
    </FacetTypes>
    </FacetTypesList>
    <Description>All Managed Devices</Description>
    <ChangeDetectionRate>1440</ChangeDetectionRate>
    <AutoUpdateMetricFamilies>true</AutoUpdateMetricFamilies>
    <PollRate>NORMAL</PollRate>
    <MonitoredMetricsList>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedCPUInfo.cpuNiceUtilization
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedCPUInfo.cpuIdleUtilization
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedPortInfo.PctDiscardsIn
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedPortInfo.Discards
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedPortInfo.PctErrorsOut
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedCPUInfo.SysCPULoadLast5Minutes
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedMemoryInfo.Total
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedPortInfo.SpeedOut
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedPortInfo.PctDiscards
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedPortInfo.PctCollisionsOut
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedCPUInfo.SysCPULoadLastMinute
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedPortInfo.Utilization
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedPortInfo.PctErrors
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedPortInfo.Availability
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedPortInfo.BitsPerSecond
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedPortInfo.CollisionsOut
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedCPUInfo.MemoryUtilization
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedMemoryInfo.Free
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedPortInfo.Bits
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedPortInfo.ErrorsIn
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedCPUInfo.cpuUserUtilization
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedCPUInfo.Utilization
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedMemoryInfo.Utilization
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedMemoryInfo.Utilization64
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedPortInfo.PctErrorsIn
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedMemoryInfo.Used
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedPortInfo.DiscardsIn
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedCPUInfo.cpuSystemUtilization
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedPortInfo.BitsPerSecondIn
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedPortInfo.UtilizationIn
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedPortInfo.SpeedIn
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedPortInfo.BitsIn
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedCPUInfo.SysCPULoadLast15Minutes
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedPortInfo.UtilizationOut
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedPortInfo.PctDiscardsOut
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedPortInfo.BitsPerSecondOut
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedPortInfo.DiscardsOut
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedPortInfo.BitsOut
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedPortInfo.Errors
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedPortInfo.ErrorsOut
    </MonitoredMetrics>
    <MonitoredMetrics>
    {http://im.ca.com/normalizer}NormalizedCPUInfo.cpuWaitUtilization
    </MonitoredMetrics>
    </MonitoredMetricsList>
    <RelatesTo>
    <GroupIDList relatesURL="relatesto/groups" rootURL="groups">
    <ID>324890</ID>
    </GroupIDList>
    </RelatesTo>
    <Item version="1.0.0">
    <Name>MP-Template_TEST</Name>
    <CreateTime>Fri Nov 16 14:46:32 2018 +0000</CreateTime>
    <NameLock>LOCKED</NameLock>
    </Item>
    </MonitoringProfile>
    </MonitoringProfileList>


  • 2.  Re: PM - How to import/create new monitoring profiles using REST

    Broadcom Employee
    Posted 01-04-2019 12:35 PM

    Did you try a REST POST to import a custom MP?

     

    If yes what was the results message? 200 OK? Something else?



  • 3.  Re: PM - How to import/create new monitoring profiles using REST

    Broadcom Employee
    Posted 02-01-2019 04:17 PM

    Any update available for this? Does the problem remain?