<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>You need to modify<span> the file /etc:nagvis/nagvis.ini.php<br><br>Put this : <br><br>; path options<br>[paths]<br>; absolute physical NagVis path<br>base="/usr/share/nagvis/"<br>; absolute html NagVis path<br>htmlbase="/nagios3/nagvis"<br>; absolute html NagVis cgi path<br>htmlcgi="/nagios3/cgi-bin"<br><br><span name="x"></span><span><div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div><font face="arial, helvetica, sans-serif" size="2"><font color="#000099"><strong>David Ribeiro<br></strong></font></font><br></div></div></div></div></div></div></div></div></div></div></div></div></div></span></span><hr id="zwchr"><b>De: </b>"Andrew Fay" <Andrew.Fay@ajl.co.uk><br><b>À: </b>"Nagios Users List" <nagios-users@lists.sourceforge.net><br><b>Envoyé: </b>Jeudi 6 Janvier 2011 15:53:31<br><b>Objet: </b>[Nagios-users] NagVis Apache Help<br><br>




<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;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        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;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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]-->


<div class="Section1">

<p>hi,</p>

<p>I have nagios3 and a copy of nagvis running on an ubuntu box.. when I click
on a host in Nagvis I get :</p>

<p>The requested URL /nagios/cgi-bin/status.cgi was not found on this server.</p>

<p><a href="http://server/nagios/cgi-bin/status.cgi?host=localhost" target="_blank">http://server/nagios/cgi-bin/status.cgi?host=localhost</a></p>

<p>it should be</p>

<p><a href="http://server/nagios3/cgi-bin/status.cgi?host=localhost" target="_blank">http://server/nagios3/cgi-bin/status.cgi?host=localhost</a></p>

<p>Basically The CGI's work for standard Nagios but not for NagVis, so how can
I tell NagVis where to look for the CGI's?</p>

<p> </p>

<p><strong>This is the apache cfg for nagvis :</strong></p>

<pre><code># NagVis Apache2 sample configuration file</code></pre><pre><code>#</code></pre><pre><code># #############################################################################</code></pre><pre><code> </code></pre><pre><code> </code></pre><pre><code>Alias /nagvis "/etc/nagvis/share"</code></pre><pre><code> </code></pre><pre><code><Directory "/etc/nagvis/share"></code></pre><pre><code>  Options FollowSymLinks</code></pre><pre><code>  AllowOverride None</code></pre><pre><code>  Order allow,deny</code></pre><pre><code>  Allow from all</code></pre><pre><code> </code></pre><pre><code>  # To enable Nagios basic auth on NagVis use the following options</code></pre><pre><code>  # Just uncomment it. Maybe you need to adjust the path to the</code></pre><pre><code>  # Auth user file.</code></pre><pre><code>  #</code></pre><pre><code>  # If you use the NagVis internal auth mechanism based on the web</code></pre><pre><code>  # for you won't need this.</code></pre><pre><code>  #</code></pre><pre><code>  #AuthName "NagVis Access"</code></pre><pre><code>  #AuthType Basic</code></pre><pre><code>  #AuthUserFile /etc/nagios3/etc/htpasswd.users</code></pre><pre><code>  #Require valid-user</code></pre><pre><code> </code></pre><pre><code>  # With installed and enabled mod_rewrite there are several redirections</code></pre><pre><code>  # available to fix deprecated and/or wrong urls. None of those rules is</code></pre><pre><code>  # mandatory to get NagVis working.</code></pre><pre><code>  <IfModule mod_rewrite.c></code></pre><pre><code>    RewriteEngine On</code></pre><pre><code>    RewriteBase /nagvis</code></pre><pre><code> </code></pre><pre><code>    # Use mod_rewrite for old url redirection even if there are php files which</code></pre><pre><code>    # redirect the queries itselfs. In some cases the mod_rewrite redirect</code></pre><pre><code>    # is better than the php redirect.</code></pre><pre><code>    RewriteCond %{REQUEST_URI} ^/nagvis(/index\.php|/|)(\?.*|)$</code></pre><pre><code>    RewriteRule ^(index\.php|)(\?.*|)$ /nagvis/frontend/nagvis-js/$1$2 [R=301,L]</code></pre><pre><code>    RewriteCond %{REQUEST_URI} ^/nagvis/config\.php.*$</code></pre><pre><code>    RewriteRule ^config\.php(.*) /nagvis/frontend/wui/$1 [R=301,L]</code></pre><pre><code> </code></pre><pre><code>    # Redirect old regular map links</code></pre><pre><code>    RewriteCond %{REQUEST_URI} ^/nagvis/frontend/nagvis-js</code></pre><pre><code>    RewriteCond %{QUERY_STRING} map=(.*)</code></pre><pre><code>    RewriteRule ^(.*)$ /nagvis/frontend/nagvis-js/index.php?mod=Map&act=view&show=%1 [R=301,L]</code></pre><pre><code> </code></pre><pre><code>    # Redirect old wui map links</code></pre><pre><code>    RewriteCond %{REQUEST_URI} ^/nagvis/frontend/wui</code></pre><pre><code>    RewriteCond %{QUERY_STRING} map=(.*)</code></pre><pre><code>    RewriteRule ^(.*)$ /nagvis/frontend/wui/index.php?mod=Map&act=edit&show=%1 [R=301,L]</code></pre><pre><code> </code></pre><pre><code>    # Redirect old rotation calls</code></pre><pre><code>    RewriteCond %{REQUEST_URI} ^/nagvis/frontend/nagvis-js</code></pre><pre><code>    RewriteCond %{QUERY_STRING} !mod</code></pre><pre><code>    RewriteCond %{QUERY_STRING} rotation=(.*)</code></pre><pre><code>    RewriteRule ^(.*)$ /nagvis/frontend/nagvis-js/index.php?mod=Rotation&act=view&show=%1 [R=301,L]</code></pre><pre><code>  </IfModule></code></pre><pre><code></Directory></code></pre>

<p><strong>Nagios apache config :</strong></p>

<pre><code># apache configuration for nagios 3.x</code></pre><pre><code># note to users of nagios 1.x and 2.x:</code></pre><pre><code>#   throughout this file are commented out sections which preserve</code></pre><pre><code>#   backwards compatibility with bookmarks/config for older nagios versios.</code></pre><pre><code>#   simply look for lines following "nagios 1.x:" and "nagios 2.x" comments.</code></pre><pre><code> </code></pre><pre><code>ScriptAlias /cgi-bin/nagios3 /usr/lib/cgi-bin/nagios3</code></pre><pre><code>ScriptAlias /nagios3/cgi-bin /usr/lib/cgi-bin/nagios3</code></pre><pre><code># nagios 1.x:</code></pre><pre><code>#ScriptAlias /cgi-bin/nagios /usr/lib/cgi-bin/nagios3</code></pre><pre><code>#ScriptAlias /nagios/cgi-bin /usr/lib/cgi-bin/nagios3</code></pre><pre><code># nagios 2.x: </code></pre><pre><code>#ScriptAlias /cgi-bin/nagios2 /usr/lib/cgi-bin/nagios3</code></pre><pre><code>#ScriptAlias /nagios2/cgi-bin /usr/lib/cgi-bin/nagios3</code></pre><pre><code> </code></pre><pre><code># Where the stylesheets (config files) reside</code></pre><pre><code>Alias /nagios3/stylesheets /etc/nagios3/stylesheets</code></pre><pre><code># nagios 1.x:</code></pre><pre><code>#Alias /nagios/stylesheets /etc/nagios3/stylesheets</code></pre><pre><code># nagios 2.x:</code></pre><pre><code>#Alias /nagios2/stylesheets /etc/nagios3/stylesheets</code></pre><pre><code> </code></pre><pre><code># Where the HTML pages live</code></pre><pre><code>Alias /nagios3 /usr/share/nagios3/htdocs</code></pre><pre><code># nagios 2.x: </code></pre><pre><code>#Alias /nagios2 /usr/share/nagios3/htdocs</code></pre><pre><code># nagios 1.x:</code></pre><pre><code>#Alias /nagios /usr/share/nagios3/htdocs</code></pre><pre><code> </code></pre><pre><code><DirectoryMatch (/usr/share/nagios3/htdocs|/usr/lib/cgi-bin/nagios3|/etc/nagios3/stylesheets)></code></pre><pre><code>    Options FollowSymLinks</code></pre><pre><code> </code></pre><pre><code>    DirectoryIndex index.php</code></pre><pre><code> </code></pre><pre><code>    AllowOverride AuthConfig</code></pre><pre><code>    Order Allow,Deny</code></pre><pre><code>    Allow From All</code></pre><pre><code> </code></pre><pre><code>    AuthName "Nagios Access"</code></pre><pre><code>    AuthType Basic</code></pre><pre><code>    AuthUserFile /etc/nagios3/htpasswd.users</code></pre><pre><code>    # nagios 1.x:</code></pre><pre><code>    #AuthUserFile /etc/nagios/htpasswd.users</code></pre><pre><code>    require valid-user</code></pre><pre><code></DirectoryMatch></code></pre><pre><code> </code></pre><pre><code># Enable this ScriptAlias if you want to enable the grouplist patch.</code></pre><pre><code># See http://apan.sourceforge.net/download.html for more info</code></pre><pre><code># It allows you to see a clickable list of all hostgroups in the</code></pre><pre><code># left pane of the Nagios web interface</code></pre><pre><code># XXX This is not tested for nagios 2.x use at your own peril</code></pre><pre><code>#ScriptAlias /nagios3/side.html /usr/lib/cgi-bin/nagios3/grouplist.cgi</code></pre><pre><code># nagios 1.x:</code></pre><pre><code>#ScriptAlias /nagios/side.html /usr/lib/cgi-bin/nagios3/grouplist.cgi</code></pre>

<p>Thanks</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">---------------------------</span></p>

<p class="MsoNormal"><b><span style="font-size: 10pt; color: black;"> </span></b></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: black;">Andrew </span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: black;"><br>
<br>
</span><span style="font-size: 10pt; font-family: "Courier New"; color: black;"></span></p>

<p class="MsoNormal"> </p>

</div>

<p align="left"><font size="1"><font face="Verdana"><font color="#800000"><strong>
<hr>
Disclaimer statement by ABERDEEN JOURNALS LTD - 6/1/2011<br></strong>The information or images contained within this e-mail are of a confidential nature. If you are<br>not the intended recipient please forward it to </font></font></font><a href="mailto:BadMail@ajl.co.uk" target="_blank"><font color="#800000" face="Verdana" size="1">BadMail@ajl.co.uk</font></a><font color="#800000" face="Verdana" size="1"> and delete the message <br>from your system. <br>Opinions, conclusions and other information in this message that do not relate to the official <br>business of Aberdeen Journals Ltd shall be understood as neither given nor endorsed by it.</font></p>
<p align="left"><font color="#800000" face="Verdana" size="1"><strong>Aberdeen Journals Ltd, PO Box 43, Lang Stracht, Mastrick, Aberdeen. AB15 6DF.<br>Tel: +44 (0)1224 690222  | Fax +44 (0)1224 685753 | Registered No: 15256 Scotland.</strong></font></p>
<p align="left"><font color="#800000"><strong><font color="#008000" face="Verdana" size="1">PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS EMAIL 
<hr>
</font>
<p></p></strong></font>
</p><p align="left"><strong><font color="#800000" face="Verdana" size="1"></font></strong> </p>
<p align="center"><font face="Tahoma" size="2"><font color="#0000ff"></font></font> </p><a title="gfidisc.ajl.co.uk" href="#">  </a><br>
o----------------------------------------------------------------------o<br>
This Email has been scanned for viruses by Aberdeen<br>
Journals' Outbound Email Security Systems.<br>
o----------------------------------------------------------------------o<br>


<br>


<br>
<br>------------------------------------------------------------------------------<br>Learn how Oracle Real Application Clusters (RAC) One Node allows customers<br>to consolidate database storage, standardize their database environment, and, <br>should the need arise, upgrade to a full multi-node Oracle RAC database <br>without downtime or disruption<br>http://p.sf.net/sfu/oracle-sfdevnl<br>_______________________________________________<br>Nagios-users mailing list<br>Nagios-users@lists.sourceforge.net<br>https://lists.sourceforge.net/lists/listinfo/nagios-users<br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. <br>::: Messages without supporting info will risk being sent to /dev/null</div>
<br><br/>
<br/>
Ce message et toutes les pieces jointes (ci-apres le "message" ) sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. Si vous recevez ce message par erreur, merci de le detruire sans en conserver de copie et d'en avertir immediatement l'expediteur. Internet ne permettant pas de garantir l'integrite de ce message, AltitudeInfrastructure decline toute responsabilite au titre de ce message s'il a ete modifie, altere, deforme ou falsifie.<br/> 
</br>
This message and any attachments (the "message") are confidential and intended solely for the addresses. Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. If you receive this message in error, please delete it without storing any evidence and immediately notify the sender. Internet can not guarantee the integrity of this message, neither AltitudeInfrastructure shall be liable for the message if modified, altered, changed or falsified.</br>
<br/>

<br></body></html>