Skip to main content
scott22478995
Participant
May 21, 2015
Question

How to tell programmatically check InDesign Server is functioning properly

  • May 21, 2015
  • 1 reply
  • 493 views

We have InDesign Server CS5.5 deployed in our environment and, occasionally, the windows service will be running however it doesn't seem to function and needs to be restarted.  Obviously, this causes impacts to our user base as well as satisfaction issues.  I'm wondering if anyone knows of an technical approach to invoke it programmatically to see if its responding in a way that would declare it online and operational.  The desired goal would be to put availability monitoring on it in such a way that it would notify us as soon as an outage was detected but cannot find an elegant way to do this.  We tried to invoke an API to create a PDF but it generates a new folder and document each time it is checked plus this seems like a somewhat heavy operation.  Since we wanted monitoring on it to check very regularly, every minute or less, we had concerns that this approach would end up leaking a lot of storage.

Any thoughts would be appreciated!  Please be aware that I'm very much a novice when it comes to InDesign Server

This topic has been closed for replies.

1 reply

Harbs.
Legend
May 21, 2015

The simplest method is to regularly write a time stamp to a file at a predefined location.

Harbs.
Legend
May 21, 2015

Here's what I use. It's very light-weight, and works quite well...

function RecordActivity(){

    try{

        var time = new Date().getTime();

        if(typeof gLastTimeStamp == "undefined" || (time - gLastTimeStamp) > 500){

            gActivityFile.open("w");

            gActivityFile.write(time);

            gActivityFile.close();

            gLastTimeStamp = time;

        }

    }catch(err){

        LogError("Error Recording Activity",err);

    }

}

scott22478995
Participant
May 21, 2015

Thanks.  I'm going to have to learn a bit (or a lot) more about InDesign Server I think to know where to stick this.  If you can offer up any reference doc or advice, it would be greatly appreciated.  I get the strategy and can read the code but just don't know the hook in.