Displaying user and server load data of the remote host in Xmanager
PROBLEM DESCRIPTION
This article explains how you can use the Detail column in Xmanager to display useful data such as user information and server load.
RESOLUTION
Xmanager 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:
Add the following line in /etc/gdm/gdm.conf or /etc/gdm/gdm/custom.conf:
Willing=/etc/gdm/Xwilling
Create /etc/gdm/Xwilling and add the following lines:
#!/bin/sh 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}"
Change the permission on /etc/gdm/Xwilling
chmod a+x /etc/gdm/Xwilling
- Check Xmanager for Xwilling information