Bug #40658 Show short hostnames for servers if possible
Submitted: 12 Nov 2008 8:06 Modified: 9 Jan 2015 10:04
Reporter: Simon Mudd (OCA) Email Updates:
Status: Closed Impact on me:
Category:MySQL Enterprise Monitor: Web Severity:S4 (Feature request)
Version: OS:Any
Assigned to: CPU Architecture:Any
Tags: windmill

[12 Nov 2008 8:06] Simon Mudd
We currently run several hosts on our merlin instance. We also use a standard naming convention for most of them.

The merlin agent install allows us to choose the name use but the current non-attended install doesn't allow us to specify shortnames which is what we used using a custom install method on our 1.3 instance.

Hence a large part of the left hand side of the web gui shows the domain part of the hostname which wastes space better dedicated to graphs or other useful information. 

We call the current non-attended install as follows from a script. 
./$binary \
        --mode unattended \
        --installdir $install_dir \
        --mysqlconnmethod tcpip \
        --mysqlhost $mysql_host \
        --mysqlport $mysql_port \
        --mysqluser $mysql_user \
        --mysqlpassword $mysql_pass \
        --enableproxy 1 \
        --managerhost $merlin_server \
        --managerport 80 \
        --managersslport 443 \
        --usessl 1 \
        --agentuser $agent_user \
        --agentpassword $agent_pass

Note: mysql_host is normally "localhost".

How to repeat:
Install agent on a 100 or so servers which have long FQDNs.

Suggested fix:
One solution is to enable the agent installer to allow the mysql name to be defined (when using the unattended mode) so we can use a shorter name.

The other perhaps better solution is to optionally (toggle?) simply to show a short hostname UNLESS the name is not unique. This I think might be better and perhaps should be the default.
[12 Nov 2008 8:47] Simon Mudd
Also remove the :3306 which is the default mysql port as it adds no useful information.
[5 Feb 2009 10:58] Valeriy Kravchuk
Thank you for the feature request.