ispCP - Board - Support
nagios 500 error - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: nagios 500 error (/thread-895.html)

Pages: 1 2


RE: nagios 500 error - deepc2007 - 09-05-2007 01:05 AM

just ran into the same problem.
has anyone a solution?


RE: nagios 500 error - rbtux - 09-05-2007 01:13 AM

sry i have no idea about the problem (I think it's nagios (config) related not ispcp)... but a question

what is the sense of installing nagios on a ispcp server???

I can't imagine any situation where this should be useful...


RE: nagios 500 error - BeNe - 09-05-2007 01:14 AM

Nagios use .htaccess for Authorization or not ?
Is there a Command in it that FastCGI can not handle ??

Greez BeNe


RE: nagios 500 error - deepc2007 - 09-05-2007 05:08 AM

Problem is suexec!
/usr/local/nagios is outside docroot


RE: nagios 500 error - MicCo - 09-05-2007 05:00 PM

Hi, may I ask?
Ain't it an question for the nagios developers or their forum, I think they know their application best, and if the answer are of interest for ispCP (what it seems to be), then post an HowTo about the way you solved it.


RE: nagios 500 error - rbtux - 09-05-2007 05:18 PM

I would really like to know why you are running nagios on ispcp?
IMHO a surveillance system should be on a separate machine... What is the purpose of this system?

Maybe you can made a good point to convice me...


RE: nagios 500 error - deepc2007 - 09-06-2007 12:02 AM

@micco: no it is a question for this forum, because the problem was the apache configuration
@rbtux: you are right, monit would be another solution Wink
and it is useful, because of the service check function of nagios (restarts services if they stop [mostly nessesary for apache]).
in adition you have a log to prove your uptime and analyse errors.


RE: nagios 500 error - rbtux - 09-06-2007 06:00 AM

ah ok... that don't bother me, because I've got a separate machine with nagios runnig doing all the things you mentioned...


RE: nagios 500 error - FeG - 09-14-2007 06:49 PM

Hey guys,

I got nagios set up like this:

I created the directory /var/www/nagios and copied the contents of /usr/lib/cgi-bin/nagios2 and /usr/share/nagios2/htdocs in there, all owned by the www-data - User:
Code:
mkdir /var/www/nagios
mkdir /var/www/nagios/cgi-bin /var/www/nagios/htdocs
cp /usr/lib/cgi-bin/nagios2/* /var/www/nagios/cgi-bin/
cp -R /usr/share/nagios2/htdocs/* /var/www/nagios/htdocs/
chown -R www-data.www-data /var/www/nagios

Then I created the file /etc/apache2/sites-available/nagios2.conf with the following content:
Code:
#
# nagios Virtual Host Webinterface
#

<VirtualHost xxx.xxx.xxx.xxx:80>
        ServerAdmin     admin@mydomain.com
        DocumentRoot    /var/www/nagios/htdocs

        ServerName      nagios.mydomain.com

        ErrorLog        /var/log/apache2/nagios.mydomain.com-error.log
        CustomLog       /var/log/apache2/nagios.mydomain.com-access.log combined

        ScriptAlias /cgi-bin/nagios2 /var/www/nagios/cgi-bin
        ScriptAlias /nagios2/cgi-bin /var/www/nagios/cgi-bin

        <Directory /var/www/nagios>
                Options FollowSymLinks

                DirectoryIndex index.html

                AllowOverride AuthConfig
                Order Allow,Deny
                Allow From All

                AuthName "Nagios Access"
                AuthType Basic
                AuthUserFile /etc/nagios2/htpasswd.users
                require valid-user
        </Directory>
</VirtualHost>

and enabled it via
Code:
a2ensite nagios2.conf
/etc/init.d/apache2 reload

That's all. It's working.
(If I missed some explanation, please tell me)

Is this worth making a Wiki HowTo of it?

Greetings
FeG


RE: nagios 500 error - MicCo - 09-16-2007 12:57 AM

FeG Wrote:Is this worth making a Wiki HowTo of it?

Greetings
FeG

Ofcause, and you actually allready have, so go - save it as HowTo.