Not able to acknowledge service problem

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
stonehill
Posts: 22
Joined: Mon May 02, 2011 9:29 pm

Not able to acknowledge service problem

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Not able to acknowledge service problem

Post by mguthrie »

What Linux distro and version of XI are you using?

Also, are you using our pre-installed VM or Manually installed version?
stonehill
Posts: 22
Joined: Mon May 02, 2011 9:29 pm

Re: Not able to acknowledge service problem

Post by stonehill »

Centos 5.5 64bit manually installed Nagios XI 2011R1.7
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Not able to acknowledge service problem

Post by nscott »

Stonehill,

You nagios.cmd should be owned by nagios.nagcmd

chown nagios.nagcmd /usr/local/nagios/var/rw/nagios.cmd
Nicholas Scott
Former Nagios employee
stonehill
Posts: 22
Joined: Mon May 02, 2011 9:29 pm

Re: Not able to acknowledge service problem

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Not able to acknowledge service problem

Post 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.
stonehill
Posts: 22
Joined: Mon May 02, 2011 9:29 pm

Re: Not able to acknowledge service problem

Post 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
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Not able to acknowledge service problem

Post by lmiltchev »

Try fixing your global permissions following the directions from out wiki page here:

http://support.nagios.com/wiki/index.ph ... ion_Issues
Be sure to check out our Knowledgebase for helpful articles and solutions!
stonehill
Posts: 22
Joined: Mon May 02, 2011 9:29 pm

Re: Not able to acknowledge service problem

Post by stonehill »

Acknowledge service is working after restarting my nagios server again.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Not able to acknowledge service problem

Post by nscott »

Thanks for the update and glad its working for you.
Nicholas Scott
Former Nagios employee