Fw: 1)GOOD plugin documentation? 2)library issues.

Josh joshua at turquoise.net
Thu Feb 13 00:50:28 CET 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Telling apache about LD_LIBRARY_PATH worked just fine. Thanks much for the help, it's handy to know that solaris doesn't
make that available to everything.
For those of us unfamiliar with apache the fix was simple.
Open your apache conf file, usually /usr/local/apache/conf/httpd.conf
Add in the line
SetEnv LD_LIBRARY_PATH /usr/lib:/usr/local/lib:/other/lib/dirs
You may need to use PassEnv instead of SetEnv for older versions of apache (previous to 1.1 I belive)
Thanks again Robert and hopefully I will be able to find some good docs on making custom plug-ins if not I will play
with it and write some.
- ----- Original Message -----
From: "Roberto Moral" <roberto at quantiva.com>
To: "Josh" <joshua at turquoise.net>
Sent: Wednesday, February 12, 2003 12:35 PM
Subject: Re: [Nagios-users] 1)GOOD plugin documentation? 2)library issues.


Hello Josh,


There are a couple of ways to deal with your problem.

1 is with LD_LIBRARY_PATH, by default Solaris does not include this path
as a path where libraries can be found so using the LD_LIBRARY_PATH will
add that gd libraries, there is also a way of telling Apache in its
config file about LD_LIBRARY_PATH

The second option is to create symbolic links to the libraries in
/usr/lib so the symbolic link /usr/lib/libdg.so.2 would point to
/usr/local/lib/libgd.so.2.0.0 this is time consuming becase you need to
link every library in /usr/local/lib

good luck.

On Wed, 2003-02-12 at 17:12, Josh wrote:

>    First off this program rules, I have been searching for usefull documentation on writing plugins for nagios but
> havent found much.
>   So any links/whatever there would be greaetly appreciated.
>
> Secondly:
>
>    I have been struggling with running nagios on sloaris 2.7 and have ironed everything out except for one issue.
> For the status map to work you need to have the gd/jpg/png lib installed. The most recent verisions of all have been
> isntalled, on installing the GD lib it checked for and found the png and jpg libs fine and dandy, also that install
went
> fine.
> When one actually clicks on the status map link we get an internal server error and the following line appears in the
> apache error logs.
>
> --begin log snippet--
>
> ld.so.1: statusmap.cgi: fatal: libgd.so.2: open failed: No such file or directory
> [Wed Feb 12 12:01:59 2003] [error] [client 63.72.207.34] Premature end of script headers:
> /usr/local/nagios/sbin//statusmap.cgi
>
> --end log snippet--
>
> The file name 'libgd.so.2' is a symbolic link in /usr/local/lib that points to /usr/local/lib/libgd.so.2.0.0
> the ls -l /usr/local/lib/libgd.so* output shows me this:
>
> --begin ls output--
>
> lrwxrwxrwx   1 root     other         14 Feb 10 13:33 libgd.so -> libgd.so.2.0.0
> lrwxrwxrwx   1 root     other         14 Feb 10 13:33 libgd.so.2 -> libgd.so.2.0.0
> -rwxr-xr-x   1 bin        bin     479764 Feb 10 13:33 libgd.so.2.0.0
>
> --end ls output--
>
> I have compiled nagios using:
> --with-gd-lib=/usr/local/lib --with-gd-inc=/usr/local/inc
>
> I for grins, put a symbolic link to the file in a few other dirs i thought it maybe trying to look in, even though it
> was compiled with the gd dir specified.
> Anyhelp on this matter would make me a pretty happy fellow.
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> 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

Roberto Moral
SR. UNIX Systems Administrator
- -------------------------------------
roberto at quantiva.com
Tel: 609-514-8513 | cell: 609-346-5601
Quantiva, inc.
100 Village Blvd. 3rd Floor
Princeton, NJ 08540

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>

iQA/AwUBPkrdv5xQX+BoQW4CEQInrACfUfyxsHmj7IrX0baIpTDG2r8UB7oAn2Cc
oJkLpydrKjWPCqPcTx3aV4wJ
=MIIk
-----END PGP SIGNATURE-----




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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