Page 1 of 1

Host Status Detail page - Alias Display Length

Posted: Wed Mar 08, 2017 10:27 am
by TBT
The Alias field has a character limit (of 64) when displayed on the Host Status Details page for any network element. Are we wrong to think this wasn't always the case, and also, is there a way to display the entire text field in these views?

Example, the text field is cut off: Court - Physical Internal Switch - Stack (ICRM / Corporate LAN - Second Floor, Room 2034)
hostdetails.PNG

Re: Host Status Detail page - Alias Display Length

Posted: Wed Mar 08, 2017 2:09 pm
by lmiltchev
Try expanding the size by running:

Code: Select all

echo 'alter table nagios_hosts modify alias mediumtext not null;' | mysql -uroot -pnagiosxi nagios
Note: If you changed your "default" db password or if you are using an offloaded db, modify the above command.

Let us know if this helped.

Re: Host Status Detail page - Alias Display Length

Posted: Thu Mar 09, 2017 9:15 am
by TBT
That works. For the sake of asking, what is the purpose of truncating that field, aesthetics?

Re: Host Status Detail page - Alias Display Length

Posted: Thu Mar 09, 2017 11:02 am
by tmcdonald
There might not have been any specific reason beyond "I need a limit for this field and 64 seems long enough".