I have a small utility that has been very useful to us here internally. You simply visit the webpage and it will return a list of all servers that currently have an active trigger. It's been working great for quite some time. I just updated to v3.0 and it's now essentially useless.
How it works
It's a very simple utility. There's some logic server side to handle authenticating with a read-only ID. Once that auth is processed, it sends a simple query to the API:
In v2, this returned a list of all active triggers along with their hostname and a few details about the trigger. This allowed me to build a webpage with some simple JavaScript that contained all servers with an active trigger.
In v3, this returns almost all of the above information. It does not contain the hostname (or any value I can find that even points to the host with the issue). This makes it impossible to list the servers that are having the issues... only a semi-cryptic list of issues.
It seems that this is because v2.4 deprecated the "expandData" param and v3.0 removed it. However, I cannot locate any replacement for this parameter.
How it works
It's a very simple utility. There's some logic server side to handle authenticating with a read-only ID. Once that auth is processed, it sends a simple query to the API:
Code:
{"jsonrpc":"2.0",
"method":"trigger.get",
"auth":"<valid>",
"id":1,
"params":{"output":["triggerid","description","priority","error"],
"expandData":1,
"expandDescription":1,
"filter":{"value":1,
"status":0
}
}
}
In v3, this returns almost all of the above information. It does not contain the hostname (or any value I can find that even points to the host with the issue). This makes it impossible to list the servers that are having the issues... only a semi-cryptic list of issues.
It seems that this is because v2.4 deprecated the "expandData" param and v3.0 removed it. However, I cannot locate any replacement for this parameter.
.
Comment