• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home /
  • Public Forums /
  • Application Monitoring & UEM /
  • AppMon & UEM Open Q&A /
avatar image
Question by Harshal P. · Jun 04, 2013 at 02:32 PM · plugins

Datapower domains

Hi,

My client informed me that there are multiple domains on a single datapower device. He asked me if it would be possible to retrieve the metrics of each individual domain.

From my understanding, the plug-in currently retrieves the metrics for the overall datapower device. Please let me know if this is possible.

Thanks,

Harshal.

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

2 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Chuck M. · Jun 04, 2013 at 10:40 PM

Harshal,

If you run a curl command from the dT Server/Collector against that same appliance and domain, do you get a proper response?

where the curl command looks like this ...

curl -k -u uid:pwd -d @envelope.xml https://<dpdevice>:5550/service/mgmt/current

and where envelope.xml contains something like this ...

<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><dp:request domain="YOURDOMAINNAMEHERE" xmlns:dp="http://www.datapower.com/schemas/management"><dp:get-status class="ConnectionsAccepted"/></dp:request></env:Body></env:Envelope>

and the response should look something like this ...

<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><d
p:response xmlns:dp="http://www.datapower.com/schemas/management"><dp:timestamp>;
2013-05-29T15:52:59-04:00</dp:timestamp><dp:status><Version xmlns:env="http://ww
w.w3.org/2003/05/soap-envelope">;
<Version>XI50.4.0.2.1</Version>
<Build>205760</Build>
<BuildDate>2011/11/15 11:02:50</BuildDate>
<WatchdogBuild>XI50.4.0.2.1</WatchdogBuild>
<InstalledDPOS>XI50.4.0.2.1</InstalledDPOS>
<RunningDPOS>XI50.4.0.2.1</RunningDPOS>
<LibraryMQ>Obsoleted by provider LibraryVersion</LibraryMQ>
<CoprocVersion>Obsoleted by provider LibraryVersion</CoprocVersion>
<LibraryXMS>Obsoleted by provider LibraryVersion</LibraryXMS>
<Serial>6804341</Serial>
<XMLAccelerator>xg3</XMLAccelerator></Version></dp:status></dp:response></env:Bo
dy></env:Envelope>

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Chuck M. · Jun 04, 2013 at 05:41 PM

Harshal,

Have a look at the SOMA SOAP Envelope Template property of the DataPower Monitor. It has the domain embedded in there (see below). You can create multiple instances of the monitor with different templates pointing to different domains.

<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><dp:request domain="default" xmlns:dp="http://www.datapower.com/schemas/management"><dp:get-status class=" (SOMAMONITORCLASS)"/></dp:request></env:Body></env:Envelope>

Hope that helps!

Comment

People who like this

0 Show 8 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Harshal P. · Jun 04, 2013 at 08:04 PM 0
Share

Hi Chuck,

Thank you for the reply. That is what I am looking for. I am sorry I didn't look through the template in a detailed manner.

Regards,

Harshal.

avatar image Harshal P. · Jun 04, 2013 at 10:32 PM 0
Share

Hi Chuck,

I received a list of domains from the DP Admin; however, when I replace anyone of them with the default monitor, all the retrieved metrics have null values, as seen in the image below.

The monitor does not fail and the HostReachable metric is "1", indicating that the monitor is able to reach the host.

Am I missing anything? Is there a domain setting that needs to be enabled?

Please let me know.

Thanks,

Harshal.

avatar image Jacob P. Harshal P. · May 04, 2015 at 11:05 PM 0
Share

Hey Harshal, how did you solve this problem? I am experiencing it as well. I think it might have something to do with following a redirect?? If I put a "1" in Max Redirects in the monitor options, I get an error "entity enclosing requests cannot be redirected without user intervention". I'm working on getting access to the collector box to curl from it to the DP server now.

 

EDIT: I can curl successfully (see below), but the plugin still returns null for all values except the host reachable measures

curl - k -u username:password -d @envelope.xml https://<ip>:5550/service/mgmt/current

envelope.xml:

<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><dp:request domain="EC_Gateway-PRD" xmlns:dp="http://www.datapower.com/schemas/management"><dp:get-status class="CPUUsage"/></dp:request></env:Body></env:Envelope>

 

Response:

<?xml version="1.0" encoding="UTF-8"?>

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><dp:response xmlns:dp="http://www.datapower.com/schemas/management"><dp:timestamp>2015-05-04T14:05:21-05:00</dp:timestamp><dp:status><CPUUsage read-only="true" xmlns:env="http://www.w3.org/2003/05/soap-envelope">

<tenSeconds read-only="true">0</tenSeconds>

<oneMinute read-only="true">0</oneMinute>

<tenMinutes read-only="true">1</tenMinutes>

<oneHour read-only="true">0</oneHour>

<oneDay read-only="true">0</oneDay></CPUUsage></dp:status></dp:response></env:Body>

 

avatar image Dave M. Jacob P. · May 05, 2015 at 01:48 AM 0
Share

Unless I am missing something, this request seems to be working as expected.  Note how the following entry has a non-zero value:

"<tenMinutes read-only="true">1</tenMinutes>"

When I run locally, I get zeros for CPU but I think it is just because DP is not doing much at the moment, which seems to be the case for your DP also.


avatar image Jacob P. Dave M. · May 05, 2015 at 02:19 AM 0
Share

I agree with you that the curl request seems to be working as expected. However, the DataPower monitor keeps returning "null" for all values, even though I'm using the exact same username/password/IP/protocol/url/SOAP envelope as I did with curl. And if I copy the soap request out of the monitor logs and try that in curl, it works. So I'm not sure why the same thing works over curl and not from the monitor, both of which are being run from the same collector.

avatar image Dave M. Jacob P. · May 05, 2015 at 04:53 AM 0
Share

I see now.  I thought you meant the curl was failing too...  Did you try turning up the logging level on the plugin also?

avatar image Jacob P. Dave M. · May 06, 2015 at 08:12 PM 0
Share

After I turned the log level to fine, I realized the monitor's responses were all "authentication failure". I determined that whoever set up the monitor had a typo in the password field. Thanks for the suggestion! 

avatar image Harshal P. Jacob P. · May 12, 2015 at 01:27 AM 0
Share

Hi Jacob

I apologize for replying late. I ran into the exact same issue, i.e. authentication failure when trying to get the domain level data for DP plugin.

The DP admin verified that the username/password combination has the access to the domain.

I figured that I was seeing "Authentication Failure" because I had the domain name wrong. The domain name has to be exact, as it is in the DP device. In the SOMA template, I defined it as domain = "Contract", while in the DP, it is defined as "QA1_DP1_Contract".

After changing it to the latter, I see all the relevant metrics.

Hope that helps.

Regards,

Harshal.

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

License Count Plugin support for AppMon 7.0

Error building a custom plugin I am developing

Generic Execution Plugin: Problem with quoting of spaces

Data power plugin not working! No data in dashboard.

dynaTrace 5.0 plugin to Silk Performer 9.5

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A