Xmanager Knowledge Base

Displaying user and server load data of the remote host in Xbrowser

Last modified: Wednesday, February 27, 2013 9:26 PM


This article explains how you can use the Detail column in Xbrowser to display useful data such as user information and server load.


Xbrowser displays the Willing message received from the remote host on the detail column. This message can be configured by users to send useful information from the server.

The following example shows you can configure the Willing message using gdm and gdm-binary:

1. Add the following line in /etc/gdm/gdm.conf or /etc/gdm/gdm/custom.conf:


2. Create /etc/gdm/Xwilling and add the following lines:

load="`uptime|sed -e 's/^.*load[^0-9]*//'`"
nrusers="`who|cut -c 1-8|sort -u|wc -l|sed 's/^[ ]*//'`"
s=""; [ "$nrusers" != 1 ] && s=s
echo "${nrusers} user${s}, load: ${load}"

3. Change the permission on /etc/gdm/Xwilling

chmod a+x /etc/gdm/Xwilling

4. Check Xbrowser for Xwilling information