Hi,
It appears that users with Admin authorization level can't acknowledge a problem. Only the default user 'nagiosadmin' can.
Looking into the users profile i found nothing to allow this action. Is this a bug, or a permission problem on our server ?
Regards,
Aurelien.
Administrator and Acknowledgment
-
- Posts: 131
- Joined: Thu May 19, 2011 6:15 am
Administrator and Acknowledgment
Configuration:
Nagios XI 2014R2.5
manually upgraded on 64bits CentOS 6
with nothing extra, no gnome, no proxy, no SSL
Add-ons: Hypermap, Minemap, Ping Action, Traceroute Action, Network Replay, graph Explorer, Latest Alert
Nagios XI 2014R2.5
manually upgraded on 64bits CentOS 6
with nothing extra, no gnome, no proxy, no SSL
Add-ons: Hypermap, Minemap, Ping Action, Traceroute Action, Network Replay, graph Explorer, Latest Alert
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Administrator and Acknowledgment
Has this Admin account ever logged in to the XI interface, or have you just masqueraded as the user?
The reason I ask is that the user is added to the htpasswd file that Nagios Core uses the first time they login to XI. If this hasn't been done, they may not have the authorization to submit the command.
The reason I ask is that the user is added to the htpasswd file that Nagios Core uses the first time they login to XI. If this hasn't been done, they may not have the authorization to submit the command.
-
- Posts: 131
- Joined: Thu May 19, 2011 6:15 am
Re: Administrator and Acknowledgment
Yes it had. In fact, i tryed to acknowledge from the XI Interface.
As you pointed the utilization of htpasswd, i gave a look at it and if /usr/local/nagiosxi/etc/htpasswd.users contains all the users, /usr/local/nagios/etc/htpasswd.users contains only "nagiosadmin". I tryied to implement all the users into the nagios' htpasswd but the problem persist. Here is the error message:
As you pointed the utilization of htpasswd, i gave a look at it and if /usr/local/nagiosxi/etc/htpasswd.users contains all the users, /usr/local/nagios/etc/htpasswd.users contains only "nagiosadmin". I tryied to implement all the users into the nagios' htpasswd but the problem persist. Here is the error message:
You do not have the required permissions to view the files attached to this post.
Configuration:
Nagios XI 2014R2.5
manually upgraded on 64bits CentOS 6
with nothing extra, no gnome, no proxy, no SSL
Add-ons: Hypermap, Minemap, Ping Action, Traceroute Action, Network Replay, graph Explorer, Latest Alert
Nagios XI 2014R2.5
manually upgraded on 64bits CentOS 6
with nothing extra, no gnome, no proxy, no SSL
Add-ons: Hypermap, Minemap, Ping Action, Traceroute Action, Network Replay, graph Explorer, Latest Alert
-
- Posts: 4380
- Joined: Mon Jun 14, 2010 10:21 am
Re: Administrator and Acknowledgment
The admin level permissions need to write to the /usr/local/nagios/etc/cgi.cfg file. Can you post either the cgi.cfg file or the config directives that this admin user is authorized for in that file?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Administrator and Acknowledgment
I believe this was solved via email by restarting apache.
-
- Posts: 131
- Joined: Thu May 19, 2011 6:15 am
Re: Administrator and Acknowledgment
Mike, here is the cgi.cfg:
I guess it says that only nagiosadmin has right on things... Here is how the user is defined:
Scott, i don't know which email you are refering to, but a "service httpd restart" do not solve the problem.
Code: Select all
[root@NagiosXI]# cat /usr/local/nagios/etc/cgi.cfg
# MODIFIED
default_statusmap_layout=6
# UNMODIFIED
action_url_target=_blank
authorized_for_all_host_commands=nagiosadmin
authorized_for_all_hosts=nagiosadmin
authorized_for_all_service_commands=nagiosadmin
authorized_for_all_services=nagiosadmin
authorized_for_configuration_information=nagiosadmin
authorized_for_system_commands=nagiosadmin
authorized_for_system_information=nagiosadmin
default_statuswrl_layout=4
escape_html_tags=1
lock_author_names=1
main_config_file=/usr/local/nagios/etc/nagios.cfg
notes_url_target=_blank
physical_html_path=/usr/local/nagios/share
ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$
refresh_rate=90
show_context_help=0
url_html_path=/nagios
use_authentication=1
use_pending_states=1
use_ssl_authentication=0
You do not have the required permissions to view the files attached to this post.
Configuration:
Nagios XI 2014R2.5
manually upgraded on 64bits CentOS 6
with nothing extra, no gnome, no proxy, no SSL
Add-ons: Hypermap, Minemap, Ping Action, Traceroute Action, Network Replay, graph Explorer, Latest Alert
Nagios XI 2014R2.5
manually upgraded on 64bits CentOS 6
with nothing extra, no gnome, no proxy, no SSL
Add-ons: Hypermap, Minemap, Ping Action, Traceroute Action, Network Replay, graph Explorer, Latest Alert
-
- Posts: 4380
- Joined: Mon Jun 14, 2010 10:21 am
Re: Administrator and Acknowledgment
It looks like the cgi.cfg file didn't get updated properly when the admin permission was assigned, maybe because of a permissions issue with the file (??).
Try creating a test admin user and see if they get added to the cgi.cfg file, if they do you can probably just recreate this admin user to fix the issue. Maybe keep an eye on the apache log as well during this process in case it fails.
Code: Select all
-rw-rw-r-- 1 apache nagios 1042 Apr 13 15:32 cgi.cfg
Code: Select all
tail -f /var/log/httpd/error_log
-
- Posts: 131
- Joined: Thu May 19, 2011 6:15 am
Re: Administrator and Acknowledgment
As all the users were created longtime ago maybe the problem of cgi.cfg's update was solved since.
Creating a new user force the update and now all the Admin user appear in the cgi.cfg.
Just two points that seems wierd:
Aurelien.
Creating a new user force the update and now all the Admin user appear in the cgi.cfg.
Just two points that seems wierd:
- * all the users are listed twice.
* after deleting the Admin test user, it still appear in the cgi.cfg.
Aurelien.
Configuration:
Nagios XI 2014R2.5
manually upgraded on 64bits CentOS 6
with nothing extra, no gnome, no proxy, no SSL
Add-ons: Hypermap, Minemap, Ping Action, Traceroute Action, Network Replay, graph Explorer, Latest Alert
Nagios XI 2014R2.5
manually upgraded on 64bits CentOS 6
with nothing extra, no gnome, no proxy, no SSL
Add-ons: Hypermap, Minemap, Ping Action, Traceroute Action, Network Replay, graph Explorer, Latest Alert
-
- Posts: 131
- Joined: Thu May 19, 2011 6:15 am
Re: Administrator and Acknowledgment
I just read in the change log that the problem of deletion is fixed in the new release. You're fast ! 

Configuration:
Nagios XI 2014R2.5
manually upgraded on 64bits CentOS 6
with nothing extra, no gnome, no proxy, no SSL
Add-ons: Hypermap, Minemap, Ping Action, Traceroute Action, Network Replay, graph Explorer, Latest Alert
Nagios XI 2014R2.5
manually upgraded on 64bits CentOS 6
with nothing extra, no gnome, no proxy, no SSL
Add-ons: Hypermap, Minemap, Ping Action, Traceroute Action, Network Replay, graph Explorer, Latest Alert
-
- Posts: 4380
- Joined: Mon Jun 14, 2010 10:21 am
Re: Administrator and Acknowledgment
We'll keep our eyes open for the issue of the users being listed twice. Thanks for the update!