Dejal

This site is designed to take advantage of CSS. If you are seeing this, CSS must not be available or enabled in your browser. Everything should still work, but won't be as pretty. :)

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
{Password}
ps ax | grep -v grep | grep {Application}
EOF

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?