<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:D="DAV:" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.start-tag
        {mso-style-name:start-tag;}
span.attribute-name
        {mso-style-name:attribute-name;}
span.attribute-value
        {mso-style-name:attribute-value;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle24
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle25
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='color:#1F497D'>I've found what might be the area
of intrigue.  This code is in the cgi/cgiutils.c file of the 3.0 source:<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>               
else if(!strcmp(var,"url_html_path")){<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>                       
strncpy(url_html_path,val,sizeof(url_html_path));<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>                       
url_html_path[sizeof(url_html_path)-1]='\x0';<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>              
         strip(url_html_path);<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>                       
if(url_html_path[strlen(url_html_path)-1]!='/' &&
(strlen(url_html_path) < sizeof(url_html_path)-1))<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>                               
strcat(url_html_path,"/");<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>…<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>                       
snprintf(url_stylesheets_path,sizeof(url_stylesheets_path),"%sstylesheets/",url_html_path);<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>                       
url_stylesheets_path[sizeof(url_stylesheets_path)-1]='\x0';<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>I believe this is where the path
to the stylesheets and images originates.  Here's the same area in the 2.9
source:<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>               
else if(strstr(input,"url_html_path=")==input){<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>                       
temp_buffer=strtok(input,"=");<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>                       
temp_buffer=strtok(NULL,"\n");<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>                       
strncpy(url_html_path,(temp_buffer==NULL)?"":temp_buffer,sizeof(url_html_path));<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>                       
url_html_path[sizeof(url_html_path)-1]='\x0';<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>                       
strip(url_html_path);<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>                       
if(url_html_path[strlen(url_html_path)-1]!='/' &&
(strlen(url_html_path) < sizeof(url_html_path)-1))<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>                               
strcat(url_html_path,"/");<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>…<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>                       
snprintf(url_stylesheets_path,sizeof(url_stylesheets_path),"%sstylesheets/",url_html_path);<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>                       
url_stylesheets_path[sizeof(url_stylesheets_path)-1]='\x0';<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>It would seem the steps to
determine the url_html_path have changed.  I've found that this post…<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><a
href="http://article.gmane.org/gmane.network.nagios.user/48457/">http://article.gmane.org/gmane.network.nagios.user/48457/</a><o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>…which suggests this has been
a problem for others (should have looked before I posted…for
shame).  Any idea why the first doesn't work and the second does?<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal style='margin-left:.5in'><b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> nagios-users-bounces@lists.sourceforge.net
[mailto:nagios-users-bounces@lists.sourceforge.net] <b>On Behalf Of </b>Laack,Jacob
C<br>
<b>Sent:</b> Monday, March 17, 2008 12:25 PM<br>
<b>To:</b> nagios-users@lists.sourceforge.net<br>
<b>Subject:</b> Re: [Nagios-users] Bad Stylesheet Links<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p>

<p class=MsoNormal style='margin-left:.5in'><span style='color:#1F497D'>I've
noticed that several other paths are "bad" as well.  The img
tags on the Service Detail page are written with 'up.gif' rather than
'/images/up.gif'.<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.5in'><span style='color:#1F497D'><o:p> </o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal style='margin-left:1.0in'><b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> nagios-users-bounces@lists.sourceforge.net
[mailto:nagios-users-bounces@lists.sourceforge.net] <b>On Behalf Of </b>Laack,Jacob
C<br>
<b>Sent:</b> Monday, March 17, 2008 12:11 PM<br>
<b>To:</b> nagios-users@lists.sourceforge.net<br>
<b>Subject:</b> Re: [Nagios-users] Bad Stylesheet Links<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal style='margin-left:1.0in'><o:p> </o:p></p>

<p class=MsoNormal style='margin-left:1.0in'><span style='color:#1F497D'>I did the
same compile and setup on my Fedora laptop and the stylesheet links on this
machine do this…<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:1.5in'><span style='font-size:10.0pt;
font-family:"Courier New"'><LINK REL='stylesheet' TYPE='text/css'
HREF='/nagios/stylesheets/common.css'><o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:1.5in'><span style='font-size:10.0pt;
font-family:"Courier New"'><LINK REL='stylesheet' TYPE='text/css'
HREF='/nagios/stylesheets/tac.css'><o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:1.0in'><span style='color:#1F497D'>…How
does the configure/make/install/config determine the stylesheet directory
(url_stylesheets_path)?  How can I get it to work properly/better again?<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:1.0in'><span style='color:#1F497D'><o:p> </o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal style='margin-left:1.5in'><b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> nagios-users-bounces@lists.sourceforge.net
[mailto:nagios-users-bounces@lists.sourceforge.net] <b>On Behalf Of </b>Laack,Jacob
C<br>
<b>Sent:</b> Monday, March 17, 2008 10:51 AM<br>
<b>To:</b> nagios-users@lists.sourceforge.net<br>
<b>Subject:</b> [Nagios-users] (no subject)<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal style='margin-left:1.5in'><o:p> </o:p></p>

<p class=MsoNormal style='margin-left:1.5in'>All-<o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'>I've compiled nagios 3.0 on my
RHEL 5 64-bit machine.  I have the daemon compiled…<o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'><o:p> </o:p></p>

<p class=MsoNormal style='margin-left:1.5in'>./configure \<o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'>--prefix=/usr/local/nagios \<o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'>--with-cgiurl=/cgi-bin \<o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'>--with-htmurl= \<o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'>--with-nagios-user=nagios \<o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'>--with-nagios-group=nagios \<o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'>--with-command-group=nagioscmd \<o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'>--enable-embedded-perl \<o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'>--with-perlcache<o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'><o:p> </o:p></p>

<p class=MsoNormal style='margin-left:1.5in'>…and running with the sample
configs.  I have configured my apache Virtual Server myself like so…<o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'><o:p> </o:p></p>

<p class=MsoNormal style='margin-left:1.5in'><Directory
"/usr/local/nagios/share"><o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'>    RewriteEngine
off<o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'>    Options Indexes
FollowSymLinks<o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'>    AllowOverride
None<o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'>    Order
allow,deny<o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'>    Allow from all<o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'></Directory><o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'><o:p> </o:p></p>

<p class=MsoNormal style='margin-left:1.5in'><VirtualHost *:80><o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'>       
ServerAdmin root@nagios.alegent.org<o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'>       
DocumentRoot /usr/local/nagios/share<o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'>       
ServerName nagiosnew.alegent.org<o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'>       
ErrorLog logs/nagios_log<o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'>       
CustomLog logs/nagios_log common<o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'>       
ScriptAlias /cgi-bin/ "/usr/local/nagios/sbin/"<o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'></VirtualHost><o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'><o:p> </o:p></p>

<p class=MsoNormal style='margin-left:1.5in'>…I can access the page fine
and the CGIs work as well.  However, all the pages generated by the CGIs
have this in their head…<o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'><o:p> </o:p></p>

<p class=MsoNormal style='margin-left:1.5in'><span style='font-size:10.0pt;
font-family:"Courier New"'><LINK REL='stylesheet' TYPE='text/css'
HREF='common.css'><o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:1.5in'><span style='font-size:10.0pt;
font-family:"Courier New"'><LINK REL='stylesheet' TYPE='text/css'
HREF='tac.css'><o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:1.5in'><o:p> </o:p></p>

<p class=MsoNormal style='margin-left:1.5in'>..which is making them all appear
rather ugly.  Is there an option to specify the stylesheet URL?  Did
I do something else wrong?  Thanks.<o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.5in'><o:p> </o:p></p>

<p class=MsoNormal style='margin-left:1.5in'><span style='font-size:10.5pt;
font-family:"Courier New"'>Jake Laack</span><span style='font-family:"Courier New"'><o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:1.5in'><span style='font-size:10.5pt;
font-family:"Courier New"'>Alegent Health, Open Systems Engineer</span><span
style='font-family:"Courier New"'><o:p></o:p></span></p>

</div>

</body>

</html>