Page 1 of 1

http config issue - double backslashes

Posted: Wed Oct 02, 2013 8:14 pm
by Xaith_
system: fedora 17

when i click on one of the status or report links in the left side column from the nagio startup page i get the following error:

Whoops! Error: Could not read object configuration data!

when i look at any of the links i see a double backslash appended after the cgi-bin dir, such as this:

http://localhost/nagios/cgi-bin//status.cgi?host=all


i have in /etc/httpd/conf.d/nagios.conf the following lines for the dir names:

ScriptAlias /nagios/cgi-bin/ "/usr/lib64/nagios/cgi-bin/"
<Directory "/usr/lib64/nagios/cgi-bin/">

Alias /nagios "/usr/share/nagios/html"
<Directory "/usr/share/nagios/html">

i've tried removing the trailing backslash from the "ScriptAlias" and Directiory entry but that didn't help. the double backslashes still appear.


someone point out my error or where i can make an edit to correct this? tia

Re: http config issue - double backslashes

Posted: Thu Oct 03, 2013 10:37 am
by lmiltchev
Can you run the following command and show the output?

Code: Select all

grep nag /etc/group

Re: http config issue - double backslashes

Posted: Fri Oct 04, 2013 2:33 am
by Xaith_
lmiltchev wrote:Can you run the following command and show the output?

Code: Select all

grep nag /etc/group

Code: Select all

 grep nag /etc/group

nagios:x:989:
nagcmd:x:1001:nagios,apache
there it is.

Re: http config issue - double backslashes

Posted: Fri Oct 04, 2013 10:18 am
by abrist
Remove the trialing slash from the scriptalias:

Code: Select all

ScriptAlias /nagios/cgi-bin "/usr/lib64/nagios/cgi-bin/"
Additionally, add apache to the nagios group:

Code: Select all

usermod -a -G nagios apache

Re: http config issue - double backslashes

Posted: Fri Oct 04, 2013 2:57 pm
by Xaith_
abrist wrote:Remove the trialing slash from the scriptalias:

Code: Select all

ScriptAlias /nagios/cgi-bin "/usr/lib64/nagios/cgi-bin/"
Additionally, add apache to the nagios group:

Code: Select all

usermod -a -G nagios apache

its working now! many thanks for the help!!

Re: http config issue - double backslashes

Posted: Mon Oct 07, 2013 9:22 am
by tmcdonald
Those pesky slashes :)

If all is well I'll be closing this thread. Any other issues feel free to open a new one.