fresh nagios install, running, but looks scattered
-
jenelsonca
- Posts: 11
- Joined: Thu Aug 22, 2013 3:27 pm
fresh nagios install, running, but looks scattered
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
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
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?
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.cfgFormer 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.
"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.
-
jenelsonca
- Posts: 11
- Joined: Thu Aug 22, 2013 3:27 pm
Re: fresh nagios install, running, but looks scattered
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.
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.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: fresh nagios install, running, but looks scattered
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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
jenelsonca
- Posts: 11
- Joined: Thu Aug 22, 2013 3:27 pm
Re: fresh nagios install, running, but looks scattered
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
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
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: fresh nagios install, running, but looks scattered
Can you attach a copy of your cgi.cfg "blank out information you do not want others to see such as real names, etc."
-
jenelsonca
- Posts: 11
- Joined: Thu Aug 22, 2013 3:27 pm
Re: fresh nagios install, running, but looks scattered
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
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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: fresh nagios install, running, but looks scattered
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
http://nagios.sourceforge.net/docs/3_0/ ... entication
I would recommend turning on authentication, and loging in as the nagiosadmin user
-
jenelsonca
- Posts: 11
- Joined: Thu Aug 22, 2013 3:27 pm
Re: fresh nagios install, running, but looks scattered
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
Thanks,
Jerry
Re: fresh nagios install, running, but looks scattered
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.
Code: Select all
default_user_name=nagiosadminCode: Select all
service nagios restartFormer 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.
"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.