We are trying to create a checkpoint(preferably through a scheduled task) to make sure the cognos connection website is up and running. We outsourced our servers and there has been some issues with server up time during business hours. Before the users notice that the website is down we would like to get notified by email or text. Any simple solutions exist out there?
You can use Powershell. Here is an example.
https://dmitrysotnikov.wordpress.com/2008/05/29/monitor-web-site-availability/ (https://dmitrysotnikov.wordpress.com/2008/05/29/monitor-web-site-availability/)
(I have no affiliation or endorsement of the above site, I just googled for it.)
Hi bdbits,
Can you please let me the step by step to do this ?
How to use this code in Power shell ?
Thanks,
Nagoole
Quote from: nagoole on 17 Sep 2015 05:19:43 AM
Hi bdbits,
Can you please let me the step by step to do this ?
How to use this code in Power shell ?
Thanks,
Nagoole
Well, if I read Bob's post accurately, he just told you he googled for that answer. That says to me that he hasn't used it much if at all. Why in that case are you asking him for step-by-step instructions? Why aren't you out there on the internet researching how to do it yourself and then posting up the answer once you figure it out?
MF.
Thanks for your advise ;D
There's also this command to find out the status of a Cognos server:
http://<machine.domain.com>:<9300>/p2pd/servlet (//http://<machine.domain.com>:<9300>/p2pd/servlet)
Insert your own <server name> and <port>
I'm attaching sample output from this. The final line shows "State: Running" for a primary server, and "State: Running as standby" for a secondary server.
If you're not comfortable with the PowerShell suggestion, maybe you could run this command and then parse its output?
We got the command to work and shows us a status. Thank you. Any info on how to automate that into a scheduled task?