Comment acceder à l'interface web nagios [Fermé]
Signaler
samira
-
tchaning
tchaning
- Messages postés
- 4525
- Date d'inscription
- mardi 15 juillet 2008
- Statut
- Membre
- Dernière intervention
- 13 juin 2014
Bonjour,
j'ai 1 probléme avec nagios j ai installer nagios et qd j vais acceder a l'interface web il me demande un nom d'utilisteur + mot de passe qd je les tape j'obtient ceci : [ 401 Authorization Required This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
Apache/2.2.14 (Fedora) Server at localhost Port 80 ]
merci d'avoir lu mon msg
j'ai 1 probléme avec nagios j ai installer nagios et qd j vais acceder a l'interface web il me demande un nom d'utilisteur + mot de passe qd je les tape j'obtient ceci : [ 401 Authorization Required This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
Apache/2.2.14 (Fedora) Server at localhost Port 80 ]
merci d'avoir lu mon msg
A voir également:
- Comment acceder à l'interface web nagios
- Lancer l'interface web de nagios ✓ - Forum - Linux / Unix
- [Nagios] Problème Interface Web ✓ - Forum - Linux / Unix
- Comment afficher l'interface web de nagios ✓ - Forum - Linux / Unix
- /etc/init.d/nagios depuis une interface web ✓ - Forum - Linux / Unix
- Comment accéder à un site web - Conseils pratiques - Internet
1 réponse
tchaning
- Messages postés
- 4525
- Date d'inscription
- mardi 15 juillet 2008
- Statut
- Membre
- Dernière intervention
- 13 juin 2014
Authentification
Modifier le fichier cgi.cfg :
#vi /usr/local/nagios/etc/cgi.cfg
A la ligne 86 il y a écrit :
use_authentication =
Pour utiliser l’authentification il faut juste mettre cette variable différente de 0 (ex : 1).
Pour mettre un login et un mot de passe taper la commande :
#htpasswd –c /usr/local/nagios/etc/htpasswd.users nagiosadmin
New password : ****
Re-type password : ****
Il faut maintenant informer apache:
#vi /etc/apache2/conf.d/nagios.conf
Modifier :
ScriptAlias /nagios/cgi-bin /usr/local/nagios/cgi-bin/
<Directory "/usr/local/nagios/cgi-bin">
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Alias /nagios /usr/local/nagios/share/
<Directory "/usr/local/nagios/share">
Options None
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
require valid-user
</Directory>
Relancer apache :
#/etc/init.d/apache2 restart
L’authentification devrait s’afficher quand vous voudriez accéder à votre page web nagios.
Modifier le fichier cgi.cfg :
#vi /usr/local/nagios/etc/cgi.cfg
A la ligne 86 il y a écrit :
use_authentication =
Pour utiliser l’authentification il faut juste mettre cette variable différente de 0 (ex : 1).
Pour mettre un login et un mot de passe taper la commande :
#htpasswd –c /usr/local/nagios/etc/htpasswd.users nagiosadmin
New password : ****
Re-type password : ****
Il faut maintenant informer apache:
#vi /etc/apache2/conf.d/nagios.conf
Modifier :
ScriptAlias /nagios/cgi-bin /usr/local/nagios/cgi-bin/
<Directory "/usr/local/nagios/cgi-bin">
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Alias /nagios /usr/local/nagios/share/
<Directory "/usr/local/nagios/share">
Options None
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
require valid-user
</Directory>
Relancer apache :
#/etc/init.d/apache2 restart
L’authentification devrait s’afficher quand vous voudriez accéder à votre page web nagios.