Nagios Logo Issues

Pete Shelfo PShelfo at embrex.com
Fri Jul 7 16:00:59 CEST 2006


I have played around some more.  I realized that the cgi.cfg-sample file
had no reference of the extended host information.  I copied and setup
the nagios.cfg-sample and cgi-cfg-sample in my production environment to
make sure an old command from the 1.X days is not messing things up.

Nagios fired up still without any images.  I unremarked the
#cfg_file=/usr/local/nagios/etc/hostextinfo.cfg and Nagios would
startup.  Here is the error:

Reading configuration data...

Error: Cannot open main configuration file
'/usr/local/nagios/etc/nagios/cfg' for reading!

***> The name of the main configuration file looks suspicious...

     Make sure you are specifying the name of the MAIN configuration
file on
     the command line and not the name of another configuration file.
The
     main configuration file is typically
'/usr/local/nagios/etc/nagios.cfg'

***> One or more problems was encountered while processing the config
files...

     Check your configuration file(s) to ensure that they contain valid
     directives and data defintions.  If you are upgrading from a
previous
     version of Nagios, you should be aware that some
variables/definitions
     may have been removed or modified in this version.  Make sure to
read
     the HTML documentation regarding the config files, as well as the
     'Whats New' section to find out what has changed.

It is odd that by adding this cfg_file statement the system tries to
look for nagios/cfg instead of nagios.cfg.  If I remark out the line the
system fires up just fine.

-----Original Message-----
From: Patrick Morris [mailto:patrick.morris at hp.com] 
Sent: Thursday, July 06, 2006 7:25 PM
To: Pete Shelfo
Cc: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios Logo Issues

Sorry -- misread what you sent.  Long day here.

What didn't Nagios like?  That's a perfectly valid config line.  If it
didn't like it, either you mistyped it, there are other errors, or you 
aren't running the version of Nagios you think you are.

On Thu, 06 Jul 2006, Pete Shelfo wrote:

> Acutally the format you sent me is how I have things setup.  I tried
> typing in the full path as a test but that did not matter.  I sent
that
> test reference to Jim Perrin as an example of what I had tried.
> 
> I was looking in the sample configuration files and came across a
> statement in nagios.cfg-sample file:
> 
> # Extended host/service info definitions are now stored along with
> # other object definitions:
> #cfg_file=/usr/local/nagios/etc/hostextinfo.cfg
> #cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg
> 
> Have the image locations changed in the new versions?  I tried add the
> cfg_file=/usr/local/nagios/etc/hostextinfo.cfg statement to my
> nagios.cfg file but nagios did not like the command.
> 
> -----Original Message-----
> From: Morris, Patrick [mailto:patrick.morris at hp.com] 
> Sent: Thursday, July 06, 2006 5:32 PM
> To: Pete Shelfo
> Cc: nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] Nagios Logo Issues
> 
> 
> > -----Original Message-----
> > From: Pete Shelfo [mailto:PShelfo at embrex.com] 
> > Sent: Thursday, July 06, 2006 1:35 PM
> > To: Morris, Patrick
> > Cc: nagios-users at lists.sourceforge.net
> > Subject: RE: [Nagios-users] Nagios Logo Issues
> > 
> > Thanks for your response.
> > 
> > I have the images loaded in 
> > /usr/local/nagios/share/images/logos which is the correct location.
> > 
> > I have tried many different types of images and have even 
> > downloaded the new image pack so that rules out corruption.  
> > I have about 15 different images reference and none of them work.
> > 
> > I don't have any broken images to check the URL on.  All 
> > hosts have no graphics similar to a fresh install.
> > 
> > The statusmap.cgi does show a graphic - it is just the 
> > unknown question mark for every host I have. 
> > 
> > A fresh install of Nagios looks this way so I believe the 
> > Nagios or Apache is not even looking at the graphics - I just 
> > can't tell why.
> 
> Well, that narrows it down considerably. Hadn't figured out 'til now
> that you were saying it's not even trying to show your logos.
> 
> If that's the case, then it's definitely a Nagios configuration issue.
> 
> I just went backed and looked at a previous message you sent Jim
Perrin
> on this subject, and your icon_image and statusmap_image definitions
are
> definitely not right.  Just use the filename, instead of the entire
> path.  Assuming Nagios was compiled to use the HTML path you think is
> correct, that's all you need.
> 
> To use the example you sent:
> 
> Incorrect:
> 
> define hostextinfo{
> host_name servername
> icon_image /usr/local/nagios/share/images/logos/win40.gif
> statusmap_image /usr/local/nagios/share/images/logos/win40.gd2
> }
> 
> 
> Correct:
> 
> define hostextinfo{
> host_name servername
> icon_image win40.gif
> statusmap_image win40.gd2
> }
> 
> 
> This e-mail is intended solely for the person or entity to which it is
addressed and may contain confidential and/or privileged information.
Any review, dissemination, copying, printing or other use of this e-mail
by persons or entities other than the addressee is prohibited.  If you
have received this e-mail in error, please contact the sender
immediately and delete the material from any computer.
> 
> 

-- 
Patrick Morris
Snapfish/HP
303 Second Street
Suite 500, South Tower
San Francisco, CA 94107
(415) 979-3727



This e-mail is intended solely for the person or entity to which it is addressed and may contain confidential and/or privileged information.  Any review, dissemination, copying, printing or other use of this e-mail by persons or entities other than the addressee is prohibited.  If you have received this e-mail in error, please contact the sender immediately and delete the material from any computer.



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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