Action Profile http request max length

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
totte
Posts: 55
Joined: Wed May 30, 2007 3:40 am

Action Profile http request max length

Post by totte »

Hi

I´m using Action profile http Request to to send alerts and having problems that our http request somtimes gets cut and resulting in 400 bad requests.

What is the max length and is it possible to adjust it?

Request that is sent is
The last 4 rows is being cut( marked with red color below)


{
"message": "ab/ababababab031/distribution/LogReader ptProd: Tables",
"description": "Börja med att starta om logreader agenten på ababababab32/33. Problem med den replikerade ptPROD, felar denna kolla DB Owner på ptProd, finns ett larm under DaRT/DB Cluster/ptProd - ptProd Ower. Den ska vara SA, är den det kolla i Replication Monitor på DaRT SQLen för vidare felsökning",
"alias": "68291",
"priority": "P1",
"details": {
"Application": "distribution",
"Server": "abababab031",
"Customer":"ab",
"Reply": "OK: EXECUTING (IN PROGRESS) Start 2023-09-15 09:59, dur 0:0.",
"Status": "Ok",
"Recurrences": "3457",
"RelatedUrl": "",
"CreateErrand": "https://ababababb.com/h2h/?HLTemplate=I ... dfs1#page1",
"CreateErrandDynamics": "<a href=https://asdfadsf.asdfdasf.po/h2h2/?TID= ... ge1>Create Dynamics</a>",
"Customerid": "1",
"productnumber": "%fvar_productnumber%"
},
"tags": [
"SL"

"distribution",
"TFMSDBP031"
]
}

KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

HostMonitor version?
Limit? 2MB I think.
May be you forgot comma before "distribution"?

Regards
Alex
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

We found the bug - it sends complete data packet but sometimes HostMonitor may calculate "content-length" parameter incorrectly.
If "%fvar_productnumber%" always has the same length then you may calculate and insert "content-length" line manually.

Otherwise we can provide update today.
If you are using latest version (14.20), please send request to support @ ks-soft.net, provide your order number and/or registration name.

Regards
Alex
Post Reply