In order to produce statistics via NX Server Manager, you need to start the nxsensor daemon on the NX Node host and the nxstat daemon on the NX Server host. The nxsensor daemon is in charge of producing data that is then elaborated by nxstat and provided to the Manager. To start nxsensor, you need firstly to edit the node configuration file on the NX Node host. Enable the EnableSensor key in the node.cfg file and ensure that values set for the following keys do fit your environment:
StatisticsHost = "127.0.0.1"
The hostname or IP address where the nxstat daemon, in charge of collecting and elaborating data provided by nxsensor, will be assumed to be running.
NodeSensorPort = "19250"
The port where the NX server will contact nxsensor daemon to collect the statistics data. The key is also used by nxsensor to know the network interface where it will listen for incoming connections.
The commands to handle the nxsensor daemon, in charge of producing data related to the node host, are:
nxnode --sensor start
nxnode --sensor restart
nxnode --sensor stop
In order to activate the nxstat daemon, edit the server configuration file available in the default installation at /usr/NX/etc/server.cfg to activate the EnableStatistics key and configure the following key to fit your environment:
ServerSensorPort = "19250"
Specify the port where the server will contact the nxsensor daemon to collect the statistics.
The commands to handle the nxstat daemon, in charge of elaborating the data provided by the nxsensor daemon running on the node host, are:
nxserver --statistics start
nxserver --statistics restart
nxserver --statistics stop