<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-15">


<META content="MSHTML 5.50.4611.1300" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=447025315-11102002><FONT face="Comic Sans MS" color=#000080 
size=2>I guess I get to eat my words.  ;)</FONT></SPAN></DIV>
<DIV><SPAN class=447025315-11102002><FONT face="Comic Sans MS" color=#000080 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=447025315-11102002><FONT face="Comic Sans MS" color=#000080 
size=2>That makes sense though.  To a point.  For example, sendmail 
typically looks for sendmail.cf at /etc/sendmail.cf.  But you can specify 
the config file on the command line.  It makes sense to me to be able to 
have a daemon default to a particular fully qualified pathname, but also to be 
able to specify any alternative (no matter how silly ;).</FONT></SPAN></DIV>
<DIV><SPAN class=447025315-11102002><FONT face="Comic Sans MS" color=#000080 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=447025315-11102002><FONT face="Comic Sans MS" color=#000080 
size=2>I remember you sending that e-mail, Russell, now that you mention 
it.  If I could blame lack of caffeine, I would.  
;)</FONT></SPAN></DIV>
<DIV><SPAN class=447025315-11102002><FONT face="Comic Sans MS" color=#000080 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=447025315-11102002><FONT face="Comic Sans MS" color=#000080 
size=2>jc</FONT></SPAN></DIV>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Russell Scibetti 
  [mailto:russell@quadrix.com]<BR><B>Sent:</B> Friday, October 11, 2002 9:35 
  AM<BR><B>To:</B> Louie Cagasan<BR><B>Cc:</B> Carroll, Jim P [Contractor]; 
  nagios-users@lists.sourceforge.net<BR><B>Subject:</B> Re: [Nagios-users] 
  Multiple nagios monitors in one machine<BR><BR></FONT></DIV>The nagios daemon 
  doesn't have any hardcoded paths (you start it with 1 argument, the location 
  of the nagios.cfg file).  However, the CGI's do use a hardcoded path 
  (look in common/locations.h) for where to find the cgi.cfg. <BR><BR>For 
  multiple instances of CGI's, you can either re-configure and remake every 
  time, or use a patch that I made and sent out to the list previously.  It 
  takes advantage of environment variables you can set in the httpd.conf for 
  each set/location of CGI's.<BR><BR>If anyone wants, I can go back and repost 
  the email I wrote and the patch.<BR><BR>-Russell<BR><BR>Louie Cagasan 
  wrote:<BR>
  <BLOCKQUOTE cite="mid:1034298823.5419.7.camel@expedient.skycablenet.com" 
  type="cite"><PRE wrap="">Jim,<BR><BR>I've checked all the cfg files and there isn't any item pointing to any<BR>of the cgi files. So that's out. And like I said, when copying a<BR>statusmap.cgi from another instance/folder to the new one and run the<BR>new instance, I get the error message where it's pointing to the "other"<BR>directory.<BR><BR>Incidentally, how do you do a strings command? hehe<BR><BR>Louie<BR><BR>On Fri, 2002-10-11 at 04:25, Carroll, Jim P [Contractor] wrote:<BR></PRE>
    <BLOCKQUOTE type="cite"><PRE wrap="">I might be missing something here, but I'm reasonably certain that the<BR>binaries don't have any pathnames to config files hardcoded.  Having said<BR>that, the only reason I can see that this 3rd instance would fail, is that<BR>the config file you're specifying on startup still has the pathname to the<BR>'original' directory.  Try to grep through the config files for this 3rd<BR>instance, for any occurrences of the 'original' directory.<BR><BR>Failing that, do a 'strings' command on each of the binaries and grep for<BR>the 'original' directory.  I suspect you won't find the pathnames hardcoded.<BR>:)<BR><BR>As you mention in another e-mail, I'd be surprised if the gd libraries can't<BR>'support' 3 instances of Nagios.<BR><BR>jc<BR><BR></PRE>
      <BLOCKQUOTE type="cite"><PRE wrap="">-----Original Message-----<BR>From: Louie Cagasan [<A class=moz-txt-link-freetext href="mailto:fireant@zpdee.net">mailto:firreant@zpdee.net</A>]<BR>Sent: Thursday, October 10, 2002 8:52 AM<BR>To: Carroll, Jim P [Contractor]<BR>Cc: <A class=moz-txt-link-abbreviated href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</A>; <A class=moz-txt-link-abbreviated href="mailto:freddy_frouin@fluxus.net">freddy_frouin@fluxus.net</A>;<BR><A class=moz-txt-link-abbreviated href="mailto:eljalforja@skycablenet.com">eljalforja@skycablenet.com</A>; <A class=moz-txt-link-abbreviated href="mailto:juvs@skycablenet.com">juvs@skycablenet.com</A>;<BR><A class=moz-txt-link-abbreviated href="mailto:agattud@skycablenet.com">agattud@skycablenet.com</A><BR>Subject: RE: [Nagios-users] Multiple nagios monitors in one machine<BR><BR><BR>Hi Jim and Freddy,<BR><BR>I tried doing that by copying the missing cgi files statusmap.cgi,<BR>trends.cgi and hi
stogram.cgi but when I ran that instance of <BR>nagios and<BR>click on the statusmap, it says it can't find the ORIGINAL directory<BR>these cgi files were originally compiled for. so it won't work.<BR><BR>As for Freddy's comments, what I did was treat every <BR>installation like a<BR>new installation: deleting the source tree then getting the files from<BR>the tarball but apparently, it can't locate the gd libraries <BR>for these 3<BR>cgi files from /usr/lib or /usr/local/lib and /usr/include and<BR>/usr/local/include.  But the thing is: if it can't locate the gd<BR>library, why was I able to install it in the first place? Go figure...<BR><BR>Would Ethan Galstad have an answer for this you think? Hi Ethan! =)<BR><BR>Thanks,<BR><BR>Louie<BR><BR>On Wed, 2002-10-09 at 23:55, Carroll, Jim P [Contractor] wrote:<BR></PRE>
        <BLOCKQUOTE type="cite"><PRE wrap="">Louie, I don't know why you don't just manually copy a <BR></PRE></BLOCKQUOTE><PRE wrap="">working tree into the<BR></PRE>
        <BLOCKQUOTE type="cite"><PRE wrap="">3rd target directory, and manually search/replace pathnames <BR></PRE></BLOCKQUOTE><PRE wrap="">in the config<BR></PRE>
        <BLOCKQUOTE type="cite"><PRE wrap="">files.<BR><BR>jc<BR><BR></PRE>
          <BLOCKQUOTE type="cite"><PRE wrap="">-----Original Message-----<BR>From: Freddy Frouin [<A class=moz-txt-link-freetext href="mailto:freddy.frouin@fluxus.net">maiilto:freddy.frouin@fluxus.net</A>]<BR>Sent: Wednesday, October 09, 2002 2:17 AM<BR>To: Louie Cagasan<BR>Cc: <A class=moz-txt-link-abbreviated href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</A><BR>Subject: Re: [Nagios-users] Multiple nagios monitors in <BR></PRE></BLOCKQUOTE></BLOCKQUOTE><PRE wrap="">one machine<BR></PRE>
        <BLOCKQUOTE type="cite">
          <BLOCKQUOTE type="cite"><PRE wrap=""><BR>maybe you've done some bad operation by the past in this <BR>directory... did<BR>you tryed to clean the config.cache file before reconfiguring <BR>? did you tryed to<BR>delete the source tree and to get it again from the tgz <BR>archive and to try to<BR>recompile it ? are you using multiple users for each version <BR>of nagios you plan<BR>to deploy ? if yes, check env var for each users...<BR><BR>'hope this help,           Freddy.<BR><BR>On 09 Oct 2002 06:31:28 +0800<BR>Louie Cagasan <A class=moz-txt-link-rfc2396E href="mailto:fireant@zpdee.net"><fireant@zpdee.net></A> wrote:<BR><BR></PRE>
            <BLOCKQUOTE type="cite"><PRE wrap="">I'm trying to do this on just one machine, e.g.,<BR><BR>/opt/nagios/network1<BR>/opt/nagios/network2<BR>/opt/nagios/network3<BR><BR>or<BR><BR>/opt/network1/nagios/<BR>/opt/network2/nagios<BR>/opt/network3/nagios<BR><BR>preferably the first one.  I've successfully installed <BR></PRE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE><PRE wrap="">and ran two<BR></PRE>
        <BLOCKQUOTE type="cite">
          <BLOCKQUOTE type="cite">
            <BLOCKQUOTE type="cite"><PRE wrap="">monitors, with the first in the directory /opt/nagios <BR></PRE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE><PRE wrap="">and another in<BR></PRE>
        <BLOCKQUOTE type="cite">
          <BLOCKQUOTE type="cite">
            <BLOCKQUOTE type="cite"><PRE wrap="">/opt/net2/nagios, with the statusmaps and all but I'm just not<BR>successful with doing a third.  The configure error is <BR></PRE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE><PRE wrap="">that it's not<BR></PRE>
        <BLOCKQUOTE type="cite">
          <BLOCKQUOTE type="cite">
            <BLOCKQUOTE type="cite"><PRE wrap="">locating those gd,png, and jpg libraries.  Which is <BR></PRE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE><PRE wrap="">strange, since<BR></PRE>
        <BLOCKQUOTE type="cite">
          <BLOCKQUOTE type="cite">
            <BLOCKQUOTE type="cite"><PRE wrap="">it worked for the first two.  Does anybody know what <BR></PRE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE><PRE wrap="">may be wrong?<BR></PRE>
        <BLOCKQUOTE type="cite">
          <BLOCKQUOTE type="cite">
            <BLOCKQUOTE type="cite"><PRE wrap="">TIA,<BR>Louie<BR><BR><BR><BR><BR><BR><BR><BR>-------------------------------------------------------<BR>This sf.net email is sponsored by:ThinkGeek<BR>Welcome to geek heavven.<BR><A class=moz-txt-link-freetext href="http://thinkgeek.com/sf">http://thinkgeek.com/sf</A><BR>_______________________________________________<BR>Nagios-users mailing list<BR><A class=moz-txt-link-abbreviated href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</A><BR><A class=moz-txt-link-freetext href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</A><BR><BR></PRE></BLOCKQUOTE><PRE wrap=""><BR>-- <BR>Freddy Frouin<BR>Responsable Supervision<BR>Fluxus - British Telecom<BR>30, rue du Château des Rentiers<BR>75013 Paris<<BR><BR>Tél: +33 (0)1 44 97 70 00<BR>Fax: +33 (0)1 44 97 70 07<BR><BR><BR>-------------------------------------------------------<BR>This sf.net email is sponsored by:ThinkGeek<BR>Welcome to geek heaven.<BR><A class=moz-txt-link-freetext href="http://thinkgeek.com/sf">http://thinkgeek.com/sf</A><BR>_______________________________________________<BR>Nagios-users mailing list<BR><A class=moz-txt-link-abbreviated href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</A><BR><A class=moz-txt-link-freetext href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</A><BR><BR></PRE></BLOCKQUOTE></BLOCKQUOTE><PRE wrap=""><BR></PRE></BLOCKQUOTE></BLOCKQUOTE><PRE wrap=""><!----><BR><BR><BR><BR>-------------------------------------------------------<BR>This sf.net email is sponsored by:ThinkGeek<BRR>Welcome to geek heaven.<BR><A class=moz-txt-link-freetext href="http://thinkgeek.com/sf">http://thinkgeek.com/sf</A><BR>_______________________________________________<BR>Nagios-users mailing list<BR><A class=moz-txt-link-abbreviated href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</A><BR><A class=moz-txt-link-freetext href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</A><BR><BR><BR></PRE></BLOCKQUOTE><BR><PRE class=moz-signature cols="$mailwrapcol">-- 
Russell Scibetti
Quadrix Solutions, Inc.
<A class=moz-txt-link-freetext href="http://www.quadrix.com">http://www.quadrix.com</A>
(732) 235-2335, ext. 7038
</PRE><BR></BLOCKQUOTE></BODY></HTML>