hostextinfo - What am I doing wrong!?!?!

Billy nagios at billyshouse.com
Wed Jul 2 02:30:26 CEST 2003


Hi Jamie,

	Ok, I've started drinking tea, done what you said below (to the
letter, but changed the host_name), but it still doesn't work....

Is there any debugging that I can turn on to verify that it's even reading
this file? Reason I ask, here's the modified hostextinfo.cfg file...

this is annoying

define hostextinfo
{
 host_name linux1
 statusmap_image cisco7206.gd2
 2d_coords              250, 100
}

Yes, that's right, the top of the file contains the phrase "this is
annoying" It doesn't crash out on a restart, which leads me to believe it's
not even reading in the file.

I recompiled it with the --with-template-extinfo in the ./configure.

Is there anyone that's got hostextinfo working on FreeBSD? I'm running
4.6.2-RELEASE.

Billy

-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Jamie
Baddeley
Sent: Tuesday, 1 July 2003 4:55 PM
To: Billy; nagios-users at lists.sourceforge.net

Hi Billy,

Here's what I do:
in cgi.cfg add:

xedtemplate_config_file=/etc/nagios/hostextinfo.cfg

create a file /etc/nagios/hostextinfo.cfg
inside that for each host:

define hostextinfo
{
 host_name foo.bar
 statusmap_image cisco7206.gd2
 2d_coords              250, 100
}

put in the appropriate entries i.e.
notes_url	url 
icon_image	image_file 
icon_image_alt	alt_string

etc inside the { brackets }

after that issue a:
/etc/init.d/nagios reload

and ease off on the coffee :-)

jamie

On Tue, 01 Jul 2003 17:04, Billy wrote:
> AAGGHHH!!!
>
> I'm tearing my hair out here guys. I just can't get this damn hostextinfo
> stuff working, no matter what I try. I've even resorted to using the
sample
> configs (without changing them) and seeing if I can get it going. once
> again. with no luck.
>
> Observations:
> Even if the nagios processes aren't running, I can still click around the
> site fine, is this right? I'll make the changes to the configs, and expect
> to see them on the pages, but even without nagios running, I can still get
> status info on the hosts and services.
>
> What's been done:
> I've basically moved everything that was -sample to .cfg. The only lines
> I've changed have been the user access
> (authorized_for_configuration_information, authorized_for_system_commands,
> etc) so that nagiosadmin can see the pages. I also commented out
> dependencies.cfg. Everything else is generates from the 'make
> install-config'. I've added this line to cgi.cfg.
>
>
hostextinfo[linux1]=/serverinfo/es-eds.html;nagios.gif;nagios.gif;novell40.
>g d2;IntranetWare 4.11;100,50;3.5,0.0,-1.5;
>
> Compile options:
> ./configure --prefix=/share/nagios-remote --with-nagios-user=nagios
> --with-nagios-group=nagios --with-template-extinfo
--with-gd-lib=/share/lib
> --with-gd-inc=/share/include --with-cgiurl=/nagios-remote/cgi-bin
> --with-htmurl=/nagios-remote
>
> Tried using templates, no good.
> I've also tried
>
> ./configure --prefix=/share/nagios-remote --with-nagios-user=nagios
> --with-nagios-group=nagios --with-gd-lib=/share/lib
> --with-gd-inc=/share/include --with-cgiurl=/nagios-remote/cgi-bin
> --with-htmurl=/nagios-remote
>
> Can someone send me a *really* basic config so that I can test to see
> what's wrong? I've been trying to figure this *@$@ out for weeks now, and
> it's really frustrating.
>
> Anyone.. please!!!
>
> Billy
>
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
>
> ::: Please include Nagios version, plugin version (-v) and OS when
> ::: reporting any issue. Messages without supporting info will risk being
> ::: sent to /dev/null


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue. 
::: Messages without supporting info will risk being sent to /dev/null



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list