Check status remotely?

Forum / General Discussions / Check status remotely?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #34030

    Is there any sort of API available (or even just a command-line client more fully-featured than nxplayer) which will allow me to programatically connect to a NoMachine server and see if the NX server is running and sharing the desktop, see if anyone else is logged in, etc?

    I have NoMachine 6.11 deployed on many systems on my network (various operating systems), and occasionally the NX server will go down, or say that no desktops are available.  Usually I don’t know until someone reports that they are unable to log in.  It would be nice to be able to keep tabs on them and automatically restart the service if necessary (which usually fixes the problems).


    NoMachine already offers some information for monitoring and performing some administration tasks when using Cloud Server and multi server environment {LINK to CS} in the version 7. Following version 8 Cloud Server will provide much more admin tasks of the connected servers.

    In the same time if you are preffer to stay with version 6, maybe you can use some of the monitoring tools by configuring them to monitor some processes or commands.

    I can present one simple script that can show number of connected user and if some of the services are disabled :

    usersConnected=<code>sudo /etc/NX/nxserver --history | grep -c Connected</code>
    echo "INFO: Number of connected users on this server is: $usersConnected"
    sudo /etc/NX/nxserver --status | grep -i 'Failed\|Stopped\|Disabled' ; nxstatus=$?
    if [ $nxstatus -eq 0 ]; then
       echo "INFO: NoMachine has problem"
       echo "INFO: NoMachine all services are operational"
Viewing 2 posts - 1 through 2 (of 2 total)

This topic was marked as solved, you can't post.