Simon icon Simon
Flexible server monitoring

Is App running on a remote server

I want to know if it's possible to run the "Is App Running" test on another server not the host server where Simon resides?
Thank you

David Sinclair's picture

Re: Is App running on a remote server

You can add a similar service to that by writing a script. You could SSH into another machine, then use ps or another tool to check for the app.

I tried to create a Script-based service with the following script:

ssh {Machine Name} << EOF
ps ax | grep -v grep | grep {Application}

But it fails with the error:

Pseudo-terminal will not be allocated because stdin is not a terminal.

This happens if I do the equivalent in the Terminal, too, so it isn't a Simon-specific issue.

Perhaps someone else can clarify a way to send actions to SSH?