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

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
shaul999
Posts: 3
Joined: Wed Apr 30, 2014 7:22 am

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

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post by abrist »

I presume this can be done, but you would have to modify the cgi sources and recompile.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
shaul999
Posts: 3
Joined: Wed Apr 30, 2014 7:22 am

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

Post by shaul999 »

Would you know how to point me to the relevant section in the cgi sources?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked