Page 1 of 1

is it possible to display the "alias" in the main screen?

Posted: Wed Apr 30, 2014 7:31 am
by shaul999
Hi,

Currently the main page (service problems) displays all the service problems as needed, the columns are: host, service, status, etc...

I would like to display instead of the "host" column, an "alias" column

The reason is that I would like to give "nice" names in the alias, and use a long and unfriendly DNS name as the host name (which is also the address to which Nagios will reach for service checks on that host)

Is this possible at all?

Thanks
Shaul

Re: is it possible to display the "alias" in the main screen

Posted: Wed Apr 30, 2014 1:45 pm
by abrist
I presume this can be done, but you would have to modify the cgi sources and recompile.

Re: is it possible to display the "alias" in the main screen

Posted: Thu May 01, 2014 6:31 am
by shaul999
Would you know how to point me to the relevant section in the cgi sources?

Re: is it possible to display the "alias" in the main screen

Posted: Thu May 01, 2014 9:54 am
by abrist
I would start by pointing you towards: the status.c file:
/path/to/nagios/source/cgi/status.c
Take a look at the "show_service_detail" function.