Page 1 of 3
fresh nagios install, running, but looks scattered
Posted: Thu Aug 22, 2013 3:39 pm
by jenelsonca
Hi,
I just installed the latest Nagios, and the screen looks all scattered and actually doesn't look populated at allwith my server info/cfg's?
The home page looks ok, but as soon as I search on a host, I get this.
I also get this error, but I have checked the access, and have the same old files:
"It appears as though you do not have permission to view information for any of the services you requested...
If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI
and check the authorization options in your CGI configuration file."thanks for any help.
Jer
Re: fresh nagios install, running, but looks scattered
Posted: Thu Aug 22, 2013 4:31 pm
by abrist
Did you setup basic auth with .htaccess?
Have you added your user to the "authorized_for_all_*" directives in /usr/local/nagios/etc/cgi.cfg?
Code: Select all
grep authorized /usr/local/nagios/etc/cgi.cfg
Re: fresh nagios install, running, but looks scattered
Posted: Sun Aug 25, 2013 5:28 pm
by jenelsonca
I resolved the populated issue,
yes, i had a previously working cgi.cfg file untouched from 3.5 - issue was in the httpd.conf file i guess.
but still have these last 2 issues that i think are bugs:
#1) Nagios prompts me for a login, and accepts it, but no matter what the user any status page shows "Logged in as ?" question mark as login id?
#2) Authentication still doesn't allow stats of anything unless i disable it. it takes a login and accepts, just doesn't allow to show. I have the same cgi.cfg (and all cfg's) as i did before the upgrade. As soon as i disable it, I can see the host/service status on all, and the other pages.
Thanks,
Jerry N.
Re: fresh nagios install, running, but looks scattered
Posted: Mon Aug 26, 2013 11:07 am
by sreinhardt
Are you running just nagios core with fusion? Also is this a source or package based install? It really seems like you have some permission problems with apache accessing the needed cgi pages.
Re: fresh nagios install, running, but looks scattered
Posted: Mon Aug 26, 2013 11:23 am
by jenelsonca
Hi,
nagios core yes, with ndo2db, apache, and mysql - all on CentOS 6.4 Linux (redhat based).
I just checked and the apache ID is in the nagios group, the sbin CGI files are nagios:nagios owner:group
Thanks again!
Jerry
Re: fresh nagios install, running, but looks scattered
Posted: Mon Aug 26, 2013 11:37 am
by slansing
Can you attach a copy of your cgi.cfg "blank out information you do not want others to see such as real names, etc."
Re: fresh nagios install, running, but looks scattered
Posted: Mon Aug 26, 2013 11:43 am
by jenelsonca
cat cgi.cfg |egrep -v "^$|^#"
main_config_file=/usr/local/nagios/etc/nagios.cfg
physical_html_path=/usr/local/nagios/share
url_html_path=/nagios
show_context_help=1
use_pending_states=0
use_authentication=0 # this is just temporary until i get it working
use_ssl_authentication=0
authorized_for_system_information=nagiosadmin,etc
authorized_for_configuration_information=nagiosadmin,etc
authorized_for_system_commands=nagiosadmin,
authorized_for_all_services=nagiosadmin,
authorized_for_all_hosts=nagiosadmin,
authorized_for_all_service_commands=nagiosadmin,
authorized_for_all_host_commands=nagiosadmin,
default_statusmap_layout=5
default_statuswrl_layout=4
ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$
refresh_rate=90
escape_html_tags=0
action_url_target=_blank
notes_url_target=_blank
lock_author_names=1
Re: fresh nagios install, running, but looks scattered
Posted: Mon Aug 26, 2013 6:47 pm
by scottwilkerson
the fact that you have use_authentication=0 and do not have default_user_name specified is going to lead to the problem you have. The guest user doesn't have permissions to see anything...
http://nagios.sourceforge.net/docs/3_0/ ... entication
I would recommend turning on authentication, and loging in as the nagiosadmin user
Re: fresh nagios install, running, but looks scattered
Posted: Mon Aug 26, 2013 7:24 pm
by jenelsonca
I realize that, that's why i had the comment in there - just a temporary thing until i get this working. I have tried various ID's, all the same result. I deleted our real users ID's. also, again, this is the same file that worked before the upgrade.
Thanks,
Jerry
Re: fresh nagios install, running, but looks scattered
Posted: Tue Aug 27, 2013 12:37 pm
by abrist
As Scott was implying, if you wish to disable authentication, you will need to define a default user name. Add the following to your nagios.cfg:
Restart Nagios:
Do note that is *HIGHLY* insecure and should only be used for testing on a secure network.