Hi
Trying to make an http request from an alertprofile when it sends åäö characters from some variables
Depending on what variable is used å is either Ã¥ (%folder%) and ? in %fvar_variable%
This is what is sent
{
"message": "Sk?netrafiken/%fvar_servername%/Skånetrafiken/Ping: fel",
"description": "",
"alias": "56156",
"priority": "P1",
"details": {
"Application": "Skånetrafiken",
"Server": "%fvar_servername%",
"Customer": "Sk?netrafiken",
"Reply": "",
"Status": "Unknown host",
"Recurrences": "4",
"RelatedUrl": "",
"CreateErrand": "https://pts.hogia.se/h2h/?HLTemplate=In ... 6156#page1"
},
"tags": [
"Sk?netrafiken",
"Skånetrafiken",
"%fvar_servername%"
]
http request with åäö variables
complete post
Hi here is the complete message
POST https://api.eu.opsgenie.com/v2/alerts
Host: api.eu.opsgenie.com
Content-Type: application/json
Authorization: xxxxx-xxxx-xxx-xxx-xxxxxx
{
"message": "%fvar_custname%/%fvar_servername%/%fvar_appdesc%%Folder%/%testname%",
"description": "%commentline1%",
"alias": "%testid%",
"priority": "P1",
"details": {
"Application": "%fvar_appdesc%%Folder%",
"Server": "%fvar_servername%",
"Customer":"%fvar_custname%",
"Reply": "%reply%",
"Status": "%status%",
"Recurrences": "%Recurrences%",
"RelatedUrl": "%RelatedUrl%",
"CreateErrand": "https://xyz.se/h2h/?HLTemplate=Incident ... tid%#page1"
},
"tags": [
"%fvar_custname%",
"%fvar_appdesc%%Folder%",
"%fvar_servername%"
]
}
POST https://api.eu.opsgenie.com/v2/alerts
Host: api.eu.opsgenie.com
Content-Type: application/json
Authorization: xxxxx-xxxx-xxx-xxx-xxxxxx
{
"message": "%fvar_custname%/%fvar_servername%/%fvar_appdesc%%Folder%/%testname%",
"description": "%commentline1%",
"alias": "%testid%",
"priority": "P1",
"details": {
"Application": "%fvar_appdesc%%Folder%",
"Server": "%fvar_servername%",
"Customer":"%fvar_custname%",
"Reply": "%reply%",
"Status": "%status%",
"Recurrences": "%Recurrences%",
"RelatedUrl": "%RelatedUrl%",
"CreateErrand": "https://xyz.se/h2h/?HLTemplate=Incident ... tid%#page1"
},
"tags": [
"%fvar_custname%",
"%fvar_appdesc%%Folder%",
"%fvar_servername%"
]
}
HostMonitor version?
If you are using latest version ( 12.98 ), please contact support @ks-soft.net, we will provide update.
Is that wrong (å <> Ã¥)?
Regards
Alex
We can correct this.? in %fvar_variable%
If you are using latest version ( 12.98 ), please contact support @ks-soft.net, we will provide update.
Looks like that's how system or web server or browser encodes-decodes Unicode->UTF8->Unicode.å is either Ã¥ (%folder%)
Is that wrong (å <> Ã¥)?
Regards
Alex
Hi
I would like to have it translated to å if possible
the ? character make the webapi return bad request. Ã¥ is not translated but dosen´t return bad request
the weird part is that i "message" %folder% is translated to å but in "application" it is returned as Ã¥
the ? character make the webapi return bad request. Ã¥ is not translated but dosen´t return bad request
the weird part is that i "message" %folder% is translated to å but in "application" it is returned as Ã¥
hm version
Hi
we are using version 12.99c version of hostmonitor
we are using version 12.99c version of hostmonitor
As I said we can correct this, please contact support, we will provide update.the ? character make the webapi return bad request.
What exactly application?the weird part is that i "message" %folder% is translated to å but in "application" it is returned as Ã¥
We think its not HostMonitor problem.
Regards
Alex
application
Have sent to support
I´m trying to send to Opsgenie API. But when verifiying I´m using https://webhook.site
both returns %folder% varible å the same way.
I´m trying to send to Opsgenie API. But when verifiying I´m using https://webhook.site
both returns %folder% varible å the same way.