Page 1 of 1

Not able to acknowledge service problem

Posted: Thu Sep 22, 2011 7:10 am
by stonehill
Hi,

i am now able to acknowledge the service problem the page i got shows Sorry, but you are not authorized to commit the specified command.

Read the section of the documentation that deals with authentication and authorization in the CGIs for more information.

cgi.cfg

# MODIFIED
default_statusmap_layout=6


# UNMODIFIED
action_url_target=_blank
authorized_for_all_host_commands=nagiosadmin,nagiosadmin
authorized_for_all_hosts=nagiosadmin,nagiosadmin,
authorized_for_all_service_commands=nagiosadmin,nagiosadmin
authorized_for_all_services=nagiosadmin,nagiosadmin,
authorized_for_configuration_information=nagiosadmin,nagiosadmin,
authorized_for_system_commands=nagiosadmin,nagiosadmin
authorized_for_system_information=nagiosadmin,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

prw-rw---- 1 nagios nagios 0 Sep 22 17:18 /usr/local/nagios/var/rw/nagios.cmd

It is displaying Nagios admin when i click acknowledge

tried resetting the permissions also.

Please advice anything.

Re: Not able to acknowledge service problem

Posted: Thu Sep 22, 2011 11:07 am
by mguthrie
What Linux distro and version of XI are you using?

Also, are you using our pre-installed VM or Manually installed version?

Re: Not able to acknowledge service problem

Posted: Thu Sep 22, 2011 10:22 pm
by stonehill
Centos 5.5 64bit manually installed Nagios XI 2011R1.7

Re: Not able to acknowledge service problem

Posted: Fri Sep 23, 2011 12:07 pm
by nscott
Stonehill,

You nagios.cmd should be owned by nagios.nagcmd

chown nagios.nagcmd /usr/local/nagios/var/rw/nagios.cmd

Re: Not able to acknowledge service problem

Posted: Mon Sep 26, 2011 9:40 pm
by stonehill
Sorry still the same error after changing the permissions also

prw-rw---- 1 nagios nagios 0 Sep 27 08:08 nagios.cmd

tried restarting nagios and nagiosxi also.

Re: Not able to acknowledge service problem

Posted: Tue Sep 27, 2011 9:42 am
by mguthrie
Try our global permission fix and see if that resolves the issue:
http://library.nagios.com/library/produ ... -nagios-xi

There are a few users reporting this issue, but we haven't nailed down the source of it yet. Let us know if this takes care of it.

Re: Not able to acknowledge service problem

Posted: Thu Sep 29, 2011 6:11 am
by stonehill
The script did not solve the problem but stopped all my graphs. :shock: It changed the permission of /usr/local/nagios/perfdata and its respective directories to 666 although in script it is 755

Re: Not able to acknowledge service problem

Posted: Thu Sep 29, 2011 8:45 am
by lmiltchev
Try fixing your global permissions following the directions from out wiki page here:

http://support.nagios.com/wiki/index.ph ... ion_Issues

Re: Not able to acknowledge service problem

Posted: Fri Sep 30, 2011 1:59 am
by stonehill
Acknowledge service is working after restarting my nagios server again.

Re: Not able to acknowledge service problem

Posted: Fri Sep 30, 2011 12:22 pm
by nscott
Thanks for the update and glad its working for you.