Administrator and Acknowledgment

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
srrhd
Posts: 131
Joined: Thu May 19, 2011 6:15 am

Administrator and Acknowledgment

Post by srrhd »

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.
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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Administrator and Acknowledgment

Post by scottwilkerson »

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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
srrhd
Posts: 131
Joined: Thu May 19, 2011 6:15 am

Re: Administrator and Acknowledgment

Post by srrhd »

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:
192.168.80.188 - 2012-04-16 - 18h-05m-00s.png
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
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Administrator and Acknowledgment

Post by mguthrie »

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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Administrator and Acknowledgment

Post by scottwilkerson »

I believe this was solved via email by restarting apache.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
srrhd
Posts: 131
Joined: Thu May 19, 2011 6:15 am

Re: Administrator and Acknowledgment

Post by srrhd »

Mike, here is the cgi.cfg:

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
I guess it says that only nagiosadmin has right on things... Here is how the user is defined:
192.168.80.188 - 2012-04-17 - 08h-45m-49s.png
Scott, i don't know which email you are refering to, but a "service httpd restart" do not solve the problem.
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
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Administrator and Acknowledgment

Post by mguthrie »

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 (??).

Code: Select all

-rw-rw-r-- 1 apache nagios 1042 Apr 13 15:32 cgi.cfg
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

tail -f /var/log/httpd/error_log
User avatar
srrhd
Posts: 131
Joined: Thu May 19, 2011 6:15 am

Re: Administrator and Acknowledgment

Post by srrhd »

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:
  • * all the users are listed twice.
    * after deleting the Admin test user, it still appear in the cgi.cfg.
Whatever those points aren't blocking for us. Thanks for your support, once again.

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
User avatar
srrhd
Posts: 131
Joined: Thu May 19, 2011 6:15 am

Re: Administrator and Acknowledgment

Post by srrhd »

I just read in the change log that the problem of deletion is fixed in the new release. You're fast ! :D
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
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Administrator and Acknowledgment

Post by mguthrie »

We'll keep our eyes open for the issue of the users being listed twice. Thanks for the update!