<div dir="ltr"><div>Inheritted a nagios 3.0.2 install on suse 10.1-32 bit. All parts were working recently but someone did something....</div>
<div> </div>
<div>Specifically, the CGIs don't seem to work; firefox asks if you want to save trends.cgi or statusmap.cgi</div>
<div>to disk or run it with a particular local utility. The really wierd thing is this install has nagiosgraph in it which</div>
<div>uses cgi pages to generate the rrd, png pages.  </div>
<div> </div>
<div>So I backed up everything (configs in particular) and reinstalled all pieces.</div>
<div>./configure --with-cgiurl=/nagios/cgi-bin --with-htmlurl=/nagios/ --with-nagios-user=nagios \</div>
<div> --with-nagios-group=nagios --with-command-group=nagios</div>
<div> </div>
<div>No errors, it finds GD library but says</div>
<div>Package glib-2.0 was not found in the pkg-config search path</div>
<div> </div>
<div>so I  try to build andinstall glib-2.0.7 </div>
<div>Gives a few warnings but seems to complete but doesn't seem to install files.</div>
<div>I copy glib-2.0.pc to /usr/local/lib  and </div>
<div>export PKG_CONFIG_PATH=/usr/local/lib    </div>
<div> </div>
<div>do an ldconfig, go back to the nagios area and</div>
<div>make clean  and run configure again,</div>
<div> </div>
<div>at the very end, while compiling statusmap.cgi etc I see an</div>
<div>undefined reference to `gdImageCraeteFromJpeg` but everything</div>
<div>else is happy</div>
<div> </div>
<div>Not sure if the above (glib) is a problem as again, nagiosgraph runs fine.</div>
<div> </div>
<div>My httpd.conf has the following in it</div>
<div> </div>
<div>ScriptAlias /nagiosgraph/ /usr/local/nagios/nagiosgraph/</div>
<div><Directory /usr/local/nagios/nagiosgraph></div>
<div>Options None</div>
<div>AllowOverride None</div>
<div>Order allow,deny</div>
<div>Allow from all</div>
<div></Directory></div>
<div> </div>
<div> </div>
<div>ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin</div>
<div><Directory "/usr/local/nagios/sbin"><br>    Options ExecCGI<br>    AllowOverride None<br>    Order allow,deny<br>    Allow from all<br>    AuthName "Nagios Access"<br>    AuthType Basic<br>
    AuthUserFile /usr/local/nagios/etc/htpasswd.users<br>    Require valid-user<br></Directory></div>
<div> </div>
<div>Alias /nagios /usr/local/nagios/share</div>
<div><Directory "/usr/local/nagios/share"><br>    Options None<br>    AllowOverride None<br>    Order allow,deny<br>    Allow from all<br>    AuthName "Nagios Access"<br>    AuthType Basic<br>    AuthUserFile /usr/local/nagios/etc/htpasswd.users<br>
    Require valid-user<br></Directory><br></div>
<div>Is the above correct for nagios 3.0.2? I'm used to nagios 2 where the above</div>
<div>is listed in the documentation. I presume that with nagios 3, this is not required(?)</div>
<div>(but in any case, I put it in)</div>
<div> </div>
<div> I also try running the cgis from command line, </div>
<div>both statusmap.cgi and trends.cgi produce:</div>
<div>  cannot execute binary file</div>
<div> </div>
<div>(by contrast status.cgi produces the message about</div>
<div>guessing that you're running this from the command line</div>
<div>and need a GET or POST).</div>
<div> </div>
<div>Apache error logs shows premature end of script headers </div>
<div> </div>
<div> </div>
<div> </div>
<div>What do I need to do?</div>
<div> </div>
<div>Thanks</div></div>