LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help in Nagios (https://www.linuxquestions.org/questions/linux-newbie-8/help-in-nagios-930673/)

laks 02-22-2012 06:43 AM

Help in Nagios
 
Hello,

I am facing an issue while accessing nagios via webinterface. I have apache and nagios installed on my suse linux server and when I give http://localhost/nagios, it is giving http 403, forbidden. And apache log says "attemt to invoke directory as script" /usr/local/nagios/share. I have set permissions for all folders right. Could anyone please help me in figuring out what is going wrong.

Regards,

polinux 02-22-2012 05:11 PM

Do u have user nagios in the system

Run
Code:

cat /etc/passwd | grep nagios
And

service apache2 status

service nagios status


laks 02-22-2012 09:32 PM

Thanks, Cat /etc/passwd | grep nagios and service nagios status showed valid output, but service apache2 status said'no service apache2'. Is that the reason for my webinterface not working? But when I give ps -aef | grep apache2, I am getting httpd processes running.

polinux 02-23-2012 03:01 AM

What version of SuSE you have?

11.4 > or lover?


in terminal :

yast
go to Seystem/ Runlevels
and check if Apache is running there and on what levels (Choose Advance).

Its strange as apache should be running.

Anyway... Can you access the http://localhost ??

Try
service httpd status

--------------
How about firewall??
is port :80 open?

laks 02-23-2012 09:52 PM

Service httpd status was showing no service httpd. I uninstalled and then installed apache2 and that solved the problem. Something went wrong in my first apache installation. Thanks all for your tips on troubleshooting this issue.

polinux 02-24-2012 02:36 AM

Quote:

Originally Posted by laks (Post 4610629)
Service httpd status was showing no service httpd. I uninstalled and then installed apache2 and that solved the problem. Something went wrong in my first apache installation. Thanks all for your tips on troubleshooting this issue.

Thats good. :

If you will need help with Nagios feel free to ask.


All times are GMT -5. The time now is 07:18 AM.