Server configurations error /file /etc/nagios3/htpasswd.user

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
murali969
Posts: 22
Joined: Thu Mar 20, 2014 11:01 am

Server configurations error /file /etc/nagios3/htpasswd.user

Post by murali969 »

Hi All,

I have installed nagios3,Apache2 and check_mk version 1.2.4p5 on ubuntu linux 12.04 and after configuring these when i try to accesss http://xx.xx.xx.xx/check_mk


Please some can help on this step-by-step procedure to resolve this error

I got a below errors

====
Server or Configuration Problem
A Server problem occurred. You'll find details in the error log of Apache. One possible reason is, that the file /etc/nagios3/htpasswd.users is missing. You can create that file with htpasswd or htpasswd2. A better solution might be to use your existing htpasswd file from your Nagios installation. Please edit /etc/apache2/conf.d/check_mk and change the path there. Restart Apache afterwards
=====

/etc/apache2/conf.d/zzz_check_mk

=====
<IfModule mod_python.c>
Alias /check_mk /usr/share/check_mk/web/htdocs
<Directory /usr/share/check_mk/web/htdocs>
AddHandler mod_python .py
PythonHandler index
PythonDebug Off
DirectoryIndex index.py

# Need Nagios authentification. Please edit the
# following: Set AuthName and AuthUserFile to the
# same value that you use for your Nagios configuration!
Order deny,allow
allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios3/htpasswd2.users
require valid-user

ErrorDocument 403 "<h1>Authentication Problem</h1>Either you've entered an invalid password or the authentication<br>configuration of your check_mk web pages is incorrect.<br><br>Please make sure that you've edited the file<br><tt>/etc/apache2/conf.d/check_mk</tt> and made it use the same<br>authentication settings as your Nagios web pages.<br>Restart Apache afterwards."
ErrorDocument 500 "<h1>Server or Configuration Problem</h1>A Server problem occurred. You'll find details in the error log of Apache. One possible reason is, that the file <tt>/etc/nagios3/htpasswd.users</tt> is missing. You can create that file with <tt>htpasswd</tt> or <tt>htpasswd2</tt>. A better solution might be to use your existing htpasswd file from your Nagios installation. Please edit <tt>/etc/apache2/conf.d/check_mk</tt> and change the path there. Restart Apache afterwards."
</Directory>
# Automation is done without HTTP Auth
<Location "/check_mk/automation.py">
Order allow,deny
Allow from all
Satisfy any
</Location>
</IfModule>

<IfModule !mod_python.c>
Alias /check_mk /usr/share/check_mk/web/htdocs
<Directory /usr/share/check_mk/web/htdocs>
Deny from all
ErrorDocument 403 "<h1>Check_mk: Incomplete Apache2 Installation</h1>You need mod_python in order to run the web interface of check_mk.<br> Please install mod_python and restart Apache."
</Directory>
</IfModule>
~
======

Thanks
Murali
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Server configurations error /file /etc/nagios3/htpasswd.

Post by Box293 »

You'll need find support via the check_mk website as we do not provide support for their product.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked