The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.
Rather thanconnecting to our system at 2:00 AM to ensure it's functioning for other time zone users, I'm looking for a tool that would alert me if it goes down. A recent example is during an automatedbackup the backup fails and the system does not restart. Since these run in the middle of the night, do you admins get up and verify thatthe system is running, or do you use technolgy to get a full night sleep and have happy users on the other side of the world? Thanks!
The simpliest way for us is running below windows batch file on Windchill server every half hour or whatever frequency you want as a scheduled job.
Because over 90% of the time whenever Windchill has any major issues or downtime, no users can log in due to either Windchill, Apache, Tomcat, and/or Windchill DS issues. So as long as a user can log in, we consider Windchill is running fine.
The OOTB Windchill java class to authenticate Windchill login is wt.auth.Authentication so just run it in command line to verify if Windchill is up.
Replace the windchill username, password, emails and mail server host names to fit your enviroment.
smtpmail.exe is a freeware can be downloaded (google it) or use any other email command(s) available on your Windchill server.
Sample of our windows batch file :
@echo off
REM Check if Windchill is running fine and users can log in
E:\ptc\Windchill_10.1\Windchill\bin\windchill.exe wt.auth.Authentication user=<windchill username="> password=<password>
if %errorlevel%==0 goto end
set error="Windchill PRODUCTION is DOWN"
E:\tools\bin\SMTPMAIL.EXE from=<your or=" any=" email="> to=<your email="> subject=%error% server=<mail server=" host=">
:end
exit