View Full Version : Pb Nagvis
florent_t
16th June 2008, 12:07
Bonjour,
J'ai un probleme au niveau de nagvis: lorsque j'enleve l'authentification de nagios, nagvis m'affiche "No username was handed over at Nagvis..."
Je suis allé voir la FAQ de nagvis ou il est indiqué de creer un document .htaccess avec le text suivant: SetEnv REMOTE_USER username. C ce que j'ai fait: j'ai mis le .htaccess dans /usr/local/nagios/share/nagvis/ et j'ai changé le username par nagiosadmin.
Malheureusement, cela ne marche toujours pas..
Est ce que quelqu'un aurait une idée??
Merci d'avance.
Wolfgang
17th June 2008, 10:39
I'm a bit confused because NagVis normally is installed below the nagios web directory so it should inherit the authencation given to Nagios.
Example: http://<nagios-host>/nagios should be the starting point for Nagios and http://<nagios-host>/nagios/nagvis should show the NagVis index page.
Given /usr/local/nagios/share as the Nagios web home directory NagVis should be installed in /usr/local/nagios/share/nagvis. You should not need another .htaccess file.
florent_t
19th June 2008, 14:18
Thx for your answer wolfgang.
Nagvis is installed in the directory /usr/local/nagios/share/. This is why i don't understand why it isn't working.
Here is the nagios.conf file from /etc/httpd/conf.d :
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
# Last Modified: 11-26-2005
#
# This file contains examples of entries that need
# to be incorporated into your Apache web server
# configuration file. Customize the paths, etc. as
# needed to fit your system.
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
SSLRequireSSL
Options ExecCGI
AllowOverride None
# AllowOverride AuthConfig Options
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
# 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">
SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
# AuthName "Nagios Access"
# AuthType Basic
# AuthUserFile /usr/local/nagios/etc/htpasswd.users
# Require valid-user
</Directory>
Do you have an idea about the problem?
Wolfgang
19th June 2008, 20:47
"AllowOverride None" will prevent Apache from processing .htaccess files. Change it to an appropriate value and you'll be able to access NagVis.
florent_t
3rd July 2008, 12:52
I finally make it worked!!! :D
Wolfgang, you were right: i put AllowOverride All and now it's OK.
I also put an .htaccess in nagvis directory with the following text:
Order Deny,Allow
Allow from ALL
SetEnv REMOTE_USER admin
Thx you very much wolfgang!!
vathna
21st April 2009, 11:41
dear all,
i have follow your instruction and follow this link http://www.nagvis.org/docs/1.2/installation_instructions but i got the following error
mapCfgNotWriteable: Can not write map configuration file, Please check the webservers permissions at the map configuration file "/usr/local/nagios/share/nagvis/etc/maps/demo.cfg
my nagvis version is 1.3.2 nagios 3.0.6
please help me
Dounia
28th April 2009, 16:59
dear all,
i have follow your instruction and follow this link http://www.nagvis.org/docs/1.2/installation_instructions but i got the following error
mapCfgNotWriteable: Can not write map configuration file, Please check the webservers permissions at the map configuration file "/usr/local/nagios/share/nagvis/etc/maps/demo.cfg
my nagvis version is 1.3.2 nagios 3.0.6
please help me
it my demo map i have this construction
define global {
allowed_user=EVERYONE
allowed_for_config=EVERYONE
iconset=std_medium
map_image=nagvis-demo.png
}
check the allowed user it must be EVERYONE OR nagiosadmin
and also you must do this commands :
chown wwwrun:www /usr/local/nagios/share/nagvis -R
chmod 664 /usr/local/nagios/share/nagvis/etc/nagvis.ini.php
chmod 775 /usr/local/nagios/share/nagvis/nagvis/images/maps
chmod 664 /usr/local/nagios/share/nagvis/nagvis/images/maps/*
chmod 775 /usr/local/nagios/share/nagvis/etc/maps
chmod 664 /usr/local/nagios/share/nagvis/etc/maps/*
i hope that your probleme be solved :)
frankiben123
25th June 2009, 12:17
thanks for the post.......
sales tracking software (http://salestrackingsoftware.org)