Statusmap error

Jayson Kliger jayson at sonictrading.com
Wed Jan 22 20:56:06 CET 2003


Yes the permissions are correct for those files nagios:nagios, and the
path is correct as well /usr/local/nagios/share/images/logos....thank
you for helping me with this......

On Wed, 2003-01-22 at 09:58, Jeff McKeon wrote:
> Double check the directory you have your images in, make sure the file
> permissions on those files are set to nagios:nagios
> 
> the icons should be in:
> 
> /usr/local/nagios/share/images/logos/
> 
> On Wed, 2003-01-22 at 08:38, Jayson Kliger wrote:
> > Yes, I removed that entry..
> > 
> > On Wed, 2003-01-22 at 08:06, Jeff McKeon wrote:
> > > Did you remove the entry pointing to it from the cgi.cfg?  That's where
> > > the problem is, not the file itself.
> > > 
> > > On Tue, 2003-01-21 at 15:11, Jayson Kliger wrote:
> > > > I removed the second cfg file, reload/restart..status map is still
> > > > showing the same view, no icons...is it possible that I missed something
> > > > in the main cgi.cfg file? 
> > > > 
> > > > 
> > > > 
> > > > On Tue, 2003-01-21 at 14:17, Jeff McKeon wrote:
> > > > > I only use one file.  I don't think you need two and even if you did,
> > > > > you have the same cgi.cfg attribute pointing to two different files.  it
> > > > > will probably use the second one (figureing it would overwrite the first
> > > > > entry) and you don't have a statusmap_image setting in that one.  get
> > > > > rid of you second entry in cgi.cfg and do a reload on nagios
> > > > > 
> > > > > /etc/init.d/nagios reload
> > > > > /etc/init.d/nagios restart
> > > > > 
> > > > > On Tue, 2003-01-21 at 14:18, Jayson Kliger wrote:
> > > > > > going by the documentation I created two cfg's 
> > > > > > the first one:
> > > > > >  hostextinfo.cfg
> > > > > > define hostextinfo{
> > > > > >  host_name       krull
> > > > > >  icon_image      redhat.png
> > > > > >  icon_image_alt  redhat.gif
> > > > > >  vrml_image      redhat.png
> > > > > >  statusmap_image redhat.gd2
> > > > > >  }
> > > > > > 
> > > > > > the second:
> > > > > > serviceextinfo.cfg
> > > > > > define serviceextinfo{
> > > > > >  host_name           krull
> > > > > >  service_description PING
> > > > > >  icon_image          redhat.png
> > > > > >  icon_image_alt      redhat.gif
> > > > > >  }
> > > > > > 
> > > > > > and the two entries that I have added to the end of the cgi.cfg:
> > > > > > xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg
> > > > > > xedtemplate_config_file=/usr/local/nagios/etc/serviceextinfo.cfg
> > > > > > 
> > > > > > 
> > > > > > On Tue, 2003-01-21 at 13:49, Jeff McKeon wrote:
> > > > > > > Jayson,
> > > > > > > 
> > > > > > > send me your extended info cfg file in the body of an email...
> > > > > > > 
> > > > > > > jeff
> > > > > > > 
> > > > > > > On Tue, 2003-01-21 at 13:52, Jayson Kliger wrote:
> > > > > > > > Hello Jeff,
> > > > > > > > 
> > > > > > > > Thank you for your input it has been extremely appreciated, I did find
> > > > > > > > the reference to extended info for the hosts in the documentation that
> > > > > > > > you had mentioned, I added the required lines to the cgi.cfg file, and
> > > > > > > > created the new cfg files..it appears to work (kind of),my status map
> > > > > > > > still shows no icons (I just get out lined box for "nagios process" and
> > > > > > > > and outlined box for the "host" machine with the green active circle
> > > > > > > > around it) the info box that pops up when you roll your mouse over it
> > > > > > > > shows the icon (thank you) as well as the other cgi's , including the
> > > > > > > > statuswrl (however the icon is "blocky" I will keep tooling around with
> > > > > > > > it hopefully I will find the problem. Thank you again for you time and
> > > > > > > > help.
> > > > > > > > 
> > > > > > > > Jayson
> > > > > > > > 
> > > > > > > > On Tue, 2003-01-21 at 07:53, Jeff McKeon wrote:
> > > > > > > > > jayson,
> > > > > > > > > 
> > > > > > > > > sorry but I was out on the road yesterday.  
> > > > > > > > > 
> > > > > > > > > to get the images correct you need to place the image files in the 
> > > > > > > > > 
> > > > > > > > > /usr/local/nagios/share/images/logos/ 
> > > > > > > > > 
> > > > > > > > > directory and then you need to create a whole new .cfg file for the
> > > > > > > > > extended attributes of the hosts.  you can name this file anything you
> > > > > > > > > want and put it in the .../nagios/etc directory with all the rest of the
> > > > > > > > > cfg files.  The documentation has the file information but there isn't a
> > > > > > > > > sample file included that I know of.
> > > > > > > > > 
> > > > > > > > > after that file is created you must change the line in the cgi.cfg to
> > > > > > > > > point to it.
> > > > > > > > > 
> > > > > > > > > xedtemplate_config_file=/usr/local/nagios/etc/filename.cfg
> > > > > > > > > 
> > > > > > > > > As for the httpd.conf line and what it does, I'm not totally sure. 
> > > > > > > > > Someone helped me out with that last week.  It's apparently not in the
> > > > > > > > > nagios docs.  I believe it just tells httpd where to find the libs for
> > > > > > > > > the cgi code.
> > > > > > > > > 
> > > > > > > > > enjoy!
> > > > > > > > > 
> > > > > > > > > Jeff
> > > > > > > > > 
> > > > > > > > > On Fri, 2003-01-17 at 20:23, Jayson Kliger wrote:
> > > > > > > > > > Thank YOU! That did it,that gave me the layout, but for some reason the
> > > > > > > > > > icons don't show? Maybe I just have to tweak that file a little more
> > > > > > > > > > ....more importantly, what exactly did that addition to the httpd.conf
> > > > > > > > > > file do, put the the lib dir in the httpd path? Thanks again ..now I can
> > > > > > > > > > almost go home..
> > > > > > > > > > 
> > > > > > > > > > On Fri, 2003-01-17 at 19:55, jsm at inpro.net wrote:
> > > > > > > > > > > There's a line you need to add to your httpd.conf file.  Just went throught
> > > > > > > > > > > this last week.
> > > > > > > > > > > 
> > > > > > > > > > > SetENV LD_LIBRARY_PATH /usr/local/lib
> > > > > > > > > > > 
> > > > > > > > > > > just add it to the end of the file and it may do the trick...
> > > > > > > > > > > 
> > > > > > > > > > > ----- Original Message -----
> > > > > > > > > > > From: "Jayson Kliger" <jayson at sonictrading.com>
> > > > > > > > > > > To: <nagios-users at lists.sourceforge.net>
> > > > > > > > > > > Sent: Friday, January 17, 2003 7:45 PM
> > > > > > > > > > > Subject: [Nagios-users] Statusmap error
> > > > > > > > > > > 
> > > > > > > > > > > 
> > > > > > > > > > > > Hello,
> > > > > > > > > > > >
> > > > > > > > > > > > I currently have running Nagios running on a RH8 machine, and it is
> > > > > > > > > > > > monitoring the test box that I have set up,  I have read the docs, and
> > > > > > > > > > > > mailing-list archives, but I am still having issues with the
> > > > > > > > > > > > statsmap.cgi. I have made the (what I feel are the correct, but probably
> > > > > > > > > > > > aren't) changes to the cgi.cfg file <hostextinfo>and<serviceextinfo>
> > > > > > > > > > > > sections .the default_statusmap/default_statuswrl layouts have been set
> > > > > > > > > > > > to default 4 (circular).. When ever I try to access statusmap I get an
> > > > > > > > > > > > error 500 Premature end of script? Any hints as to where I should begin
> > > > > > > > > > > > to track down the problem? I believe that I have all the required libs
> > > > > > > > > > > > installed...I am kind of stuck at this point, any ideas?
> > > > > > > > > > > >
> > > > > > > > > > > > Thanks in advance
> > > > > > > > > > > > Jay
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > -------------------------------------------------------
> > > > > > > > > > > > This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will
> > > > > > > > > > > > allow you to extend the highest allowed 128 bit encryption to all your
> > > > > > > > > > > > clients even if they use browsers that are limited to 40 bit encryption.
> > > > > > > > > > > > Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en
> > > > > > > > > > > > _______________________________________________
> > > > > > > > > > > > Nagios-users mailing list
> > > > > > > > > > > > Nagios-users at lists.sourceforge.net
> > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users
> > > > > > > > > > > 
> > > > > > > > > > 
> > > > > > > > > > 
> > > > > > > > > 
> > > > > > > > > 
> > > > > > > > 
> > > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > 
> > > > > > 
> > > > > 
> > > > > 
> > > > 
> > > > 
> > > 
> > > 
> > 
> > 
> 
> 




-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp




More information about the Users mailing list