This patch is in response to feature request ID: 3024351 Show tag field in host interface.
It will display up to 3 extra fields in the host list. (it also includes the sort fix from 3194461)
If you change nothing it will show the Primary User, Tag 1 and Tag 2
It can also be configured to display any inventory fields you want - read on for details:-
---- Changing the settings -------
If you want to disable this extra behaviour on line 30 set $morefields = 0;
To choose which 3 fields you would like to display
configure $Label1, $Label2, $Label3 from lines 32-34
and $Field1, $Field2, $Field3 from lines 115 to 118
I have used these $ variables so that eventually these could be added as proper FOG VIEW SETTINGS if this code gets adopted.
Log in to post a comment.