We have been using PASM for sometime and recently have begun a lift and shift to AWS. As part of that change we have dynamic servers which spin up and down based on demand.

Using the ADD_SERVER API I was able to develop an automated system that adds and then removes servers and the monitors and actions for those servers dynamically using the cxml export format. This has worked for several months with only a few hiccups.

We have just upgraded to version 7.1.0.104 and after doing this my system broke. The ADD_SERVER command works and the server (IP) is added to the correct group, but it is added with no monitors or actions. The API call returns only a :OK: and nothing else and no where in the logs on the server can I find any related error to either the server names, cxml or 'ADD_SERVER'. I am at a complete loss.

Here is a sample call that I am calling from node.js in a lambda function from AWS:

https://10.0.10.20/?KEY=9####MY_KEY####&API=ADD_SERVER&SERVER=10.4.71.142&CONFIG_PATH=C:Configsaws_in_wf.cxml&GROUP=Servers/Devices^aws_in^wf

I have confirmed the cxml exists in that location. I have confirmed it is good by manually importing it to a server. The group exists and my key is good (Otherwise it wouldn't add the blank server).

Any help???

asked 10 May '18, 15:24

Tom_B's gravatar image

Tom_B
112
accept rate: 0%


Hi Tom —

The update with the fix has been pushed out to preview version 7.1.1.32

https://www.poweradmin.com/products/server-monitoring/downloads/preview/

I don't know if you care, but the ADD_SERVER API has a new optional parameter, GETID, which will return the newly created server's ID (by default it does not). This is mentioned on the documentation page:

https://www.poweradmin.com/help/pa-server-monitor-7-1/config_api.aspx

Thanks
Quinn

Please make sure to mark your questions accepted when you have your answer by clicking the gray check mark to the left of the answer.

link

answered 11 May '18, 12:08

Quinn's gravatar image

Quinn ♦♦
14.4k3925
accept rate: 35%

1

This did the trick. We are back up and running

(15 May '18, 14:04) Tom_B
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×11
×1
×1

Asked: 10 May '18, 15:24

Seen: 2,001 times

Last updated: 15 May '18, 14:04