[Solved] Always map as guest

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
StreamThreader
Posts: 3
Joined: Thu Feb 14, 2013 4:29 am

[Solved] Always map as guest

Post by StreamThreader »

Hello piople!
Nagios map my user as guest
Apache auth my user OK.
I comment string: (# default_user_name=) in file "cgi.cfg", if i log int, nagios show:
Tactical Monitoring Overview
Last Updated: Thu Feb 14 11:36:02 EET 2013
Updated every 45 seconds
Nagios® Core™ 3.4.3 - http://www.nagios.org
Logged in as ?


What is (Logged in as ?), but must be (Logged in as admin or someone else)

OS: FreeBSD 7.4 (i386)
Apache: 2.2.23
FastCGI: fcgi-devkit-2.4.0

If need additional information or log files, i posted it here.
Last edited by StreamThreader on Fri Feb 15, 2013 10:47 am, edited 2 times in total.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Always map as guest

Post by abrist »

Have you set up a proper .htpasswd file and added a user to it? See the following document:
http://nagios.sourceforge.net/docs/3_0/cgiauth.html
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
StreamThreader
Posts: 3
Joined: Thu Feb 14, 2013 4:29 am

Re: Always map as guest

Post by StreamThreader »

I install new FreeBSD 9.1 under virtualbox, and problem again.
My packages:

Code: Select all

[list]apache22-2.2.23_4
apr-1.4.6.1.4.1_3
autoconf-2.69 
autoconf-wrapper-20101119           
automake-1.12.6                     
automake-wrapper-20101119           
bash-4.2.42                         
bigreqsproto-1.1.1                  
bison-2.5.1,1                       
cmake-2.8.9                         
cmake-modules-2.8.9                 
db42-4.2.52_5                       
expat-2.0.1_2                       
fontconfig-2.9.0,1                  
fping-3.4                           
freetype2-2.4.11                    
gamin-0.1.10_4                      
gd-2.0.35_8,1                       
gdbm-1.9.1                          
gettext-0.18.1.1                    
gio-fam-backend-2.28.8_1            
glib-2.28.8_5                       
gmake-3.82_1                        
help2man-1.41.1                     
inputproto-2.0.2                    
jpeg-8_4                            
kbproto-1.0.5                       
libICE-1.0.7,1                      
libSM-1.2.0,1                       
libX11-1.4.4,1                      
libXau-1.0.6                        
libXaw-1.0.9,2                      
libXdmcp-1.1.0                      
libXext-1.3.0_1,1                   
libXmu-1.1.0,1                      
libXp-1.0.1,1                       
libXpm-3.5.9                        
libXt-1.1.1,1                       
libcheck-0.9.9                      
libevent2-2.0.21                    
libgcrypt-1.5.0_1                   
libgpg-error-1.10                   
libiconv-1.14                       
libltdl-2.4.2                       
libpthread-stubs-0.3_3              
libslang2-2.2.4_4                   
libtool-2.4.2                       
libxcb-1.7                          
libxml2-2.7.8_5                     
libxslt-1.1.28                      
m4-1.4.16_1,1                       
mc-4.8.1.7                          
mysql-client-5.5.30                 
nagios-3.4.3_1                      
nagios-plugins-1.4.16,1             
net-snmp-5.7.2_2                    
p5-Crypt-CBC-2.32                   
p5-Crypt-DES-2.05                   
p5-Digest-HMAC-1.03                 
p5-Digest-SHA1-2.13                 
p5-Locale-gettext-1.05_3            
p5-Net-SNMP-6.0.1                   
pcre-8.32                           
perl-5.14.2_2                       
php53-5.3.21                        
php53-bz2-5.3.21                    
php53-ctype-5.3.21                  
php53-dom-5.3.21                    
php53-exif-5.3.21                   
php53-extensions-1.6                
php53-filter-5.3.21                 
php53-ftp-5.3.21                    
php53-gd-5.3.21                     
php53-hash-5.3.21                   
php53-iconv-5.3.21                  
php53-json-5.3.21                   
php53-mysql-5.3.21                  
php53-pdo-5.3.21                    
php53-pdo_sqlite-5.3.21             
php53-phar-5.3.21                   
php53-posix-5.3.21                  
php53-session-5.3.21                
php53-simplexml-5.3.21              
php53-sqlite-5.3.21                 
php53-sqlite3-5.3.21                
php53-tokenizer-5.3.21
php53-xml-5.3.21                    
php53-xmlreader-5.3.21              
php53-xmlwriter-5.3.21              
pkgconf-0.8.9                       
png-1.5.14                          
postgresql-client-9.0.12            
printproto-1.0.5                    
py27-setuptools-0.6c11_3            
python27-2.7.3_6                    
sqlite3-3.7.14.1                    
t1lib-5.1.2_2,1                     
tmux-1.7_1                          
xcb-proto-1.7.1                     
xcmiscproto-1.2.1                   
xextproto-7.2.0                     
xf86bigfontproto-1.2.0              
xorg-macros-1.16.1                  
xproto-7.0.22                       
xtrans-1.2.6
[/list]
StreamThreader
Posts: 3
Joined: Thu Feb 14, 2013 4:29 am

Re: Always map as guest

Post by StreamThreader »

Solved!
Modify /usr/local/etc/apache22/Includes/nagios.conf

Code: Select all

AllowOverride AuthConfig
AuthType Basic
AuthName "Nagios Access"
#    Deny from all
Allow from all
And Nagios work!
Tnhanks for supporting me.
I inattentive.
This problem in apache, apache not require auth user.
If turn on require apache for login and password, all work!
Locked