Current time: 11-15-2024, 07:46 AM Hello There, Guest! (LoginRegister)


Post Reply 
nagios 500 error
Author Message
deepc2007 Offline
Newbie
*

Posts: 5
Joined: Feb 2007
Reputation: 0
Post: #1
RE: nagios 500 error
just ran into the same problem.
has anyone a solution?
09-05-2007 01:05 AM
Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #2
RE: nagios 500 error
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...
09-05-2007 01:13 AM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #3
RE: nagios 500 error
Nagios use .htaccess for Authorization or not ?
Is there a Command in it that FastCGI can not handle ??

Greez BeNe
09-05-2007 01:14 AM
Visit this user's website Find all posts by this user Quote this message in a reply
deepc2007 Offline
Newbie
*

Posts: 5
Joined: Feb 2007
Reputation: 0
Post: #4
RE: nagios 500 error
Problem is suexec!
/usr/local/nagios is outside docroot
09-05-2007 05:08 AM
Find all posts by this user Quote this message in a reply
MicCo Offline
Moderator
*****
Moderators

Posts: 277
Joined: Oct 2006
Reputation: 1
Post: #5
RE: nagios 500 error
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.
09-05-2007 05:00 PM
Visit this user's website Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #6
RE: nagios 500 error
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...
09-05-2007 05:18 PM
Visit this user's website Find all posts by this user Quote this message in a reply
deepc2007 Offline
Newbie
*

Posts: 5
Joined: Feb 2007
Reputation: 0
Post: #7
RE: nagios 500 error
@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.
09-06-2007 12:02 AM
Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #8
RE: nagios 500 error
ah ok... that don't bother me, because I've got a separate machine with nagios runnig doing all the things you mentioned...
09-06-2007 06:00 AM
Visit this user's website Find all posts by this user Quote this message in a reply
FeG Offline
Banned

Posts: 222
Joined: Aug 2007
Post: #9
RE: nagios 500 error
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
09-14-2007 06:49 PM
Find all posts by this user Quote this message in a reply
MicCo Offline
Moderator
*****
Moderators

Posts: 277
Joined: Oct 2006
Reputation: 1
Post: #10
RE: nagios 500 error
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.
09-16-2007 12:57 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)