Statusmap error
Potter, G M (Greg)
GPotter at MarathonOil.com
Mon Jan 27 23:23:00 CET 2003
I didn't modify anyting in the Makefile, here are the notes I made after several
attempts to install, and the frustration of gd not working. It worked for me
YMMV. I am running on Solaris 7 on an Ultra 5 by the way. Using Nagios 1.0
Greg
# File: $HOME/notes/nagios
#Here is what I had to do to get nagios running on Solaris.
# be sure to install in this order as the gd and nagios rely on JPEG being
# there when configure is run to find the correct libraries and headers. (I think)
- pkgadd -d ./zlib-1.1.4-sol7-sparc-local.gz
- pkgadd -d ./openssl-0.9.6g-sol7-sparc-local.gz
- pkgadd -d ./openssh-3.4p1-sol7-sparc-local.gz
- install /etc/init.d/sshd /etc/rc2.d/S90sshd
- pkgadd -d ./prngd-0.9.25-sol7-sparc-local
- mkdir /var/spool/prngd
- install /etc/init.d/prngd /etc/rc2.d/S90prngd
- add sshd user:9005 and group:902
- mkdir /var/empty
- pkgadd -d ./gcc-3.2-sol7-sparc-local.gz
- Add /usr/ccs/bin to PATH
- mkdir /usr/local/jpeg
- cd /usr/local/jpeg
- tar xvf /moc/okc/home/tc8/sun/jpegsrc.v6b.tar
- cd /usr/local/jpeg-6b
- ./configure
- make
- make test
- make install
- make install-lib
- make install-headers
- untar libpng-1.2.5 to /usr/local/png/
- cd /usr/local/png/libpng-1.2.5
- cp scripts/makefile.solaris Makefile
- make
- make test
- make install
- untar gd to /usr/local/perl/build/gd-2.0.8
- cd /usr/local/gd/gd-2.0.8
- vi configure # add /usr/openwin/lib /usr/openwin/include to Include and
- # link variables
- ./configure
- make
- make install
- mkdir /usr/local/perl5/build
- cd /usr/local/perl5/build
- tar xvf /moc/okc/home/tc8/sun/perl-5.6.1.tar
- fix the Configure script and makedepend.SH script
- sh ./Configure -d -Dprefix=/moc/okc/software/perl
- make
- make test
- make install
- Add user and group nagios
- mkdir /usr/local/nagios
- cd /usr/local/nagios
- tar xvf /moc/okc/home/tc8/sun/nagios-1.0.tar
- cd nagios-1.0
- ./configure
- make all
- make install
- make install-commandmode
- make install-init
- create link to apache htdocs for nagios documentation
- ln -s /usr/local/nagios/nag*/html/docs nagiosdocs
- Documentation on web page, find setting up the web interface under
installing Nagios
- follow the instructions for configuring the httpd.conf files.
- vi /usr/local/apache/conf/httpd.conf
ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/
<Directory "/usr/local/nagios/sbin/">
AllowOverride AuthConfig
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
Alias /nagios/ /usr/local/nagios/share/
<Directory "/usr/local/nagios/share">
Options None
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
- Add SetENV LD_LIBRARY_PATH /usr/local/lib to httpd.conf file.
- To get the status map, histograms, etc ... working you need to have
installed the gd, png, jpeg, and zlib libraries on your system.
> -----Original Message-----
> From: Brian Ipsen [mailto:Brian.Ipsen at andebakken.dk]
> Sent: Monday, January 27, 2003 3:40 PM
> To: Potter, G M (Greg)
> Cc: Nagios List
> Subject: RE: [Nagios-users] Statusmap error
>
>
> Hi,
>
> > Do you get an error message in the apache error log file about
> > statusmap.cgi exiting prematurely? I had a problem with that,
> > and I believe the problem was in the order I installed/compiled
> > the pieces that gd uses. I.E. libpng, libjpeg, and libgd.
>
> I have that exact problem on an 1.0 installation right now.
> Could you give me a hint on how things should be patched in
> the makefile to get things running ??
>
> Thanks in advance
>
> /Brian
>
>
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
More information about the Users
mailing list