gpm system name
We use glanceplus to monitor our systems.
Hopefully a simple question. How does one amend the system name in the gpm windows, as they are showing something fifferent to the host name gpm was fired up from?
Is the name displayed by gpm same as the name displayed by the "hostname" or "uname -n" commands, or is it different from those too?
There are several ways gpm might be using to get the hostname:
- by querying the system hostname (equivalent to the "hostname" command)
- by querying the legacy nodename ("uname -n")
- or as a result of IP-to-hostname lookup (from /etc/hosts and/or DNS)
The "hostname" and "uname -n" won't agree with each other if the hostname is longer than 8 ASCII characters.
If your /etc/hosts file or DNS domain contains out-of-date information, the third method might return different information than the others.
I didn't realize that was there either.
For those that may be interested, here's the appropriate excerpt from the /var/opt/perf/parm file:
# The default for the following id parameter is to use the system's # hostname. If you would like the metric GBL_SYSTEM_ID to be something # other than the hostname, you may uncomment the following and replace # "system-id" with your preferred name. #id = system-id