Re: sitescope api to read particular monitor status

Thanks Alexey,

But I am getting an error saying ....

Getting snapshot...SiteScope_sis_path_delimiter_Testing_sis_path_delimiter_testSnapshot of testerror_message = Invalid path to group. Group could not be found : [Ljava.lang.String;@4eacfd32error_code = 55200Snapshot of SiteScopeerror_message = Invalid path to group. Group could not be found : [Ljava.lang.String;@6031549cerror_code = 55200Snapshot of Testingerror_message = Invalid path to group. Group could not be found : [Ljava.lang.String;@7ce69b4ferror_code = 55200

Re: sitescope api to read particular monitor status

Hi ALexey,

I tried using Test_sis_path_delimiter_test...

But then also i am getting same result...

Getting snapshot...Testing_sis_path_delimiter_testSnapshot of testerror_message = Invalid path to group. Group could not be found : [Ljava.lang.String;@660a06c8error_code = 55200Snapshot of Testingerror_message = Invalid path to group. Group could not be found : [Ljava.lang.String;@1bae6280error_code = 55200

from there you can take out the path, in my case"Health of my Diag systems/sov02bac29.eu.hpecorp.net Windows/CPU sov02bac29.eu.hpecorp.net"or in SiteScope API talk:"Health of my Diag systems_sis_path_delimiter_sov02bac29.eu.hpecorp.net Windows_sis_path_delimiter_CPU sov02bac29.eu.hpecorp.net"

To check out if the path works, try again, this time using the path and not the name,so report all monitors under the group "Health of my Diag systems":

I actually recall an issue where the API reportederror_message = Invalid path to group. Group could not be found : [Ljava.lang.String;@1bae6280error_code = 55200but it was not at all related to the paht.

BTW, if you really used the command below

get_monitor_snapshots.bat -fullPathsToMonitors Testing_sis_path_delimiter_test..then I think you need to change it to"Testing_sis_path_delimiter_test_sis_path_delimiter_"the path always has to end with a delimiter.

GreetingsSiggi

Customer SupportMicro Focus

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.

Wrong parameters : full_path:Health of my Diag systems_sis_path_delimiter_Properties to filter. Each key stored in map will be filtered and not included in returned snapshot.Allowed filter values:name, full_path, type, target_ip, target_name, target_display_name, updated_date ...

I assume that I simply cannot provide via command line the map the API call expects in a proper format.

When I use Soap UI, it works like a charm:

Did you already try anything else than just the command line?

BTW, when I use the SOAP UI and don't specify any parameters I also get

{"": {"error_message": "Invalid path to group. Group could not be found : [Ljava.lang.String;@24d097cb","error_code": "55200"}}

GreetingsSiggi

Customer SupportMicro Focus

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.

Re: sitescope api to read particular monitor status

Hi Siggi,

Thanks for your reply. I am very new to SiteScope and their APIs can you please guide me through SOAP. I read the basic stuff of it and understood theory part of it. But can u guide me how to implement it.

Re: sitescope api to read particular monitor status

Hi OBAID9469,

what exactly do you need to know?

To be able to use the API, you need to find the method / function / call you wanna use,for example getMonitorSnapshotsand then either write a Java program and implement the call to getMonitorSnapshots as described inSiteScope Public API Reference Guide Part 1: SOAP-based APIs Chapter 1: Configuration APIs getMonitorSnapshots

The getMonitorSnapshots method returns the corresponding snapshots for the given monitors.Usage public HashMap getMonitorSnapshots(String[] fullPathsToMonitors,HashMap propertiesFilter,String username,String password,String identifier)throws ExternalServiceAPIException

OR

if you prefer not to code anything, checkSiteScope Public API Reference Guide Part 2: REST APIs

SiteScope REST APIs can be invoked using any known REST client framework or tool.

Chapter 4: Configuration APIs getMonitorSnapshots

Here you can find all the information you neeed:REST End Point/api/monitors/snapshots

Method GET

Query ParametersfullPathsToMonitors – An array of monitor paths to which snapshots are to be returned. ..

identifier – Identifier to be associated with enable/disable operation and written to audit log.

Re: sitescope api to read particular monitor status

Even i am getting the same error when trying to call api from command prompt using batch script. Below is the output that i am getting. can you please help error_message = Invalid path to group. Group could not be found : [Ljava.lang.String;@73a0b077 error_code = 55200

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.