I want to create a report in report studio that will show all of our dispatchers and show if they are up or down.
I can do this in javascript to basically go a GET request to the dispatcher address, and if it returns status 200 all is good. However, I don't really want to do this because I would like this report emailed to me and if its javascript then I am forced to email a html report and the status wont be when the report was generated, but rather, when the report is ran by opening it.
A better solution would be to create a simple Java servlet that takes a parameter and then returns a image. Then in Cognos I can add a image that references this servlet. A green icon would be that the dispatcher is up and red would be down.
However, im hoping that maybe Cognos has some built in functionality to do this. Is there a function or way in report studio to test a dispatcher before I create the servlet.
Thanks