On 16 Jul 2003 00:58:28 -0700
(E-Mail Removed) (Michi) wrote:
> Hello,
>
> i installed nagios on a linux machine _suse 7.3" and it works fine!
> Now i want to configure the CGI script in order to display my hosts in
> a 2 D and 3 D statusmap and it works fine too, but the coordinates are
> standard and it doesn't display the network i like.
> I want to give the hosts other coordinates. _ but this doesn't work!
> I have read something about this, but everything don't work. I think
> nagios doesn't find my self configurated coordinates??
>
> In order to configure the coordinates i configured the
> /install/nagios/nagios-1.1/sample-config/template-extinfo/hostextinfo.cfg
> For example:
>
>
> define hostextinfo{
> use hei1
>
> host_name Server1
> 2d_coords 100,350
> 3d_coords 4.0,0.0,0.0
> }
>
>
>
> define hostextinfo{
> use hei1
>
> host_name Server2
> 2d_coords 100,350
> 3d_coords 6.0,0.0,0.0
> }
>
>
> then i compile and install nagios again. But nothing changes???????
>
> My questions:
>
> - how can i configure/compile nagios to give me the option to
> configure 2d coordinates and 3d coordinates?
> - Can someone give me an example about a running configuration script
> (cgi.cfg, hostextendinfo.cfg...) ??????
>
> I hope someone can help me
>
> Michi
When you compile nagios, which hostextinfo method did you use?
--with-mysql-extinfo - hostextinfo is kept in mysql database.
--with-pgsql-extinfo - hostextinfo is kept in postgres database.
--with-default-extinfo - hostextinfo is kept in CGI config file (deprecated)
--with-template-extinfo - hostextinfo using templates ( what you are trying to do)
If you want to use templates, compile nagios with --with-template-extinfo.
Then in your CGI config, tell it where template-extinfo file is.
xedtemplate_config_file=/install/nagios/nagios-1.1/sample-config/template-extinfo/hostextinfo.cfg
Hope this helps