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
http config issue - double backslashes
Re: http config issue - double backslashes
Can you run the following command and show the output?
Code: Select all
grep nag /etc/groupBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: http config issue - double backslashes
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
Re: http config issue - double backslashes
Remove the trialing slash from the scriptalias:
Additionally, add apache to the nagios group:
Code: Select all
ScriptAlias /nagios/cgi-bin "/usr/lib64/nagios/cgi-bin/"Code: Select all
usermod -a -G nagios apacheFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: http config issue - double backslashes
abrist wrote:Remove the trialing slash from the scriptalias:Additionally, add apache to the nagios group:Code: Select all
ScriptAlias /nagios/cgi-bin "/usr/lib64/nagios/cgi-bin/"Code: Select all
usermod -a -G nagios apache
its working now! many thanks for the help!!
Re: http config issue - double backslashes
Those pesky slashes :)
If all is well I'll be closing this thread. Any other issues feel free to open a new one.
If all is well I'll be closing this thread. Any other issues feel free to open a new one.
Former Nagios employee