NDO: Storing Host Alias in NDO?

Hendrik Baecker andurin at process-zero.de
Mon May 7 21:46:35 CEST 2007


Hi Lars,

I have only a nagios3 test environment here with ndo and there is a db
field for the alias in it:

SELECT display_name, alias FROM nagios_hosts n LIMIT 0,1000;

display_name is the host_name und alias the alias.

Is it different in nagios2-ndo?

Regards
Hendrik

Lars Michelsen schrieb:
> Hi devels,
> i'm searching for a way to display the host alias in NagVis. There are
> 2 ways I selected as possible solutions for me:
> 
> - Reading from NDO (But atm the host alias is not in NDO)
> - Reading from NagVis configuration (have to edit for each host manual)
> 
> The first method would be much more comfortable and is my favorite
> solution. In NagVis itselfes it is not the easiest solution to get
> this work but the cleanest.
> 
> Now, how to implement in NDO? I think the easiest way is to fill
> "name2" in nagios_objects table with the host alias - but the name2 is
> part of the index and a host-dataset is explicit without name2. So the
> cleanest solution would be to extend the nagios_hosts table with an
> attribute "host_alias".
> 
> Any better ideas/solutions for this?
> Are there reasons why host_alias is not stored in NDO?
> 
> Regards,
> Lars
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/




More information about the Developers mailing list