Page 1 of 2

Nagvis

Posted: Fri Apr 23, 2010 4:43 pm
by jladd
I have a interesting situation. I have installed a fresh nagiosxi installation then proceeded to install nagvis from the instructions listed on your website here. http://library.nagios.com/library/produ ... -nagios-xi I am using the latest development release and when i try to login via http://192.168.1.200/nagios/nagvis It does not accept my user name and password that i set for nagios xi.

I know at the end of the instructions it says i need to re-authenticate and login am I doing something wrong here?

[devel-snapshot] The username databases.

Posted: Sat Apr 24, 2010 9:43 am
by jladd
Im not having issues installing or doing the 1.2upgrade. All of that appears to work just fine for me but when i try to log into the nagvis install via http://*SERVERADDRESS*/nagios/nagvis I cannot login with my nagiosxi username and password. I checked the nagvis website and they had a few suggestions for this issue and i have tried them but they seemed to only cause more issues and still not let me log in. anyone else get this?

Re: Nagvis

Posted: Sat Apr 24, 2010 2:59 pm
by jladd
Also it appears to be causing another issue. I know nagvis uses ndoutils and it appears it is changing something with my configs. Because once i try to install nagvis and attempt to access it i lose all of my performance graphs if i fail to log into nagvis. They appear to be fine until i try to log into nagvis and it fails and denies me access.

If I had some stronger linux foo I would be able to better describe this or figure out a way to fix the issue But the best i have been able to do is look around at all of the config files and shell scripts and I havn't been able to figure anything out yet.

Re: [devel-snapshot] The username databases.

Posted: Mon Apr 26, 2010 11:58 am
by mmestnik
The big change in 1.2, for this anyway, is that the user database is replicated into an htaccess file. I don't have any information on when this is done, but try changing your password 8-)

Re: [devel-snapshot] The username databases.

Posted: Tue Apr 27, 2010 11:01 am
by jladd
mmestnik wrote:The big change in 1.2, for this anyway, is that the user database is replicated into an htaccess file. I don't have any information on when this is done, but try changing your password 8-)
Tried that I also tried creating a new user and login it with no luck. Where would the htaccess file be located? I tried this http://www.nagvis.org/docs/general/faq#anchor2 by creating a new htaccess file and adding the SetEnv REMOTE_USER nagiosusername entry to disable authentication but it didn't seem to work would i maybe need to change the htaccess file that the 1.2 install created?

Re: [devel-snapshot] The username databases.

Posted: Tue Apr 27, 2010 11:28 am
by mmestnik
I'll have to take a look. Should be easy to find looking at your Apache config and running "find -name .htaccess" it will be a file with htpasswd in the name.

Have you looked at the Apache logs?

Re: [devel-snapshot] The username databases.

Posted: Tue Apr 27, 2010 12:25 pm
by mmestnik
Did you find it?
/usr/local/nagiosxi/etc/htpasswd.users
As listed in ./conf.d/nagios.conf
You may need to configure Nagvis to use the same file, if we didn't provide a script to do so. Tony should be here in just a bit and he will know more.

Re: [devel-snapshot] The username databases.

Posted: Tue Apr 27, 2010 12:26 pm
by mmestnik
There is a bug here where the AuthName's don't match.
http://go.nagios.com/tracker/43

Re: [devel-snapshot] The username databases.

Posted: Tue Apr 27, 2010 3:45 pm
by jladd
Yes i did find it eventually. The biggest problem I'm really facing now is that after i attempted to install nagvis It killed all of our performance graphs could this also be caused by the usernames not matching? and is there a way i can change the config files so they match so that i can login nagvis.

Re: [devel-snapshot] The username databases.

Posted: Tue Apr 27, 2010 4:02 pm
by mmestnik
I'm not sure what you mean. These are manageable via /usr/bin/htpasswd. This file is an Apache config file, so there will be lots of documentation floating around Google on how to work with this file.

There are even on-line tools for generating these, though I'd stick to the ones that use JavaScript. Unlike this example:
http://www.htaccesstools.com/htpasswd-generator/