Page 1 of 1

Acknowledge not working

Posted: Tue Oct 28, 2014 1:48 pm
by rmcclinton
When I am in the NagiosXI web interface and try to Acknowledge a service status, It doesnt work, I get an error message.
For example, clicking 'Open Service Problems', clicking a service name, then in the 'Quick Actions' box I click on 'Acknowledge this problem'.
The page that comes up says,
It appears as though you do not have permission to submit the command 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

I am able to make acknowledgements from the link in email alerts.

I have NagiosXI 2014R1.5, recently upgraded to this version.
I used the 'check permissions', I compared filesystem permissions with another NagiosXI installation, did not fix.
My account is listed in /usr/local/nagios/etc/htpasswd.users and the apache config is referencing this file. I am able to log into nagios core with my account.

Another issue I can see is that on the home dashboard, the Monitoring Engine Event Queue widget comes up blank.
I can't find any other issues in my installation aside from this.

/usr/local/nagios/etc/cgi.cfg has my username on many lines; in fact the list of usernames seems to be repeated on each config line that it appears in. Is that normal?

Any ideas where else I can check?

thanks,
Rick

Re: Acknowledge not working

Posted: Tue Oct 28, 2014 4:51 pm
by abrist
You may have an issue with the command pipe. Stop nagios, kill any secondary/zombie processes, and then start nagios and get a listing of the command pipe:

Code: Select all

ls -la /usr/local/nagios/var/rw/nagios.cmd
service nagios stop
ps -aef | grep nagios.cfg
killall nagios
ps -aef | grep nagios.cfg
service nagios start
ls -la /usr/local/nagios/var/rw/nagios.cmd
Also, what is your system umask?

Code: Select all

umask

Re: Acknowledge not working

Posted: Wed Oct 29, 2014 2:53 pm
by rmcclinton
Hi abrist, I appreciate the reply. Here is the output I get:

[root@tmars1 ~]# ls -la /usr/local/nagios/var/rw/nagios.cmd
prw-rw---- 1 nagios nagcmd 0 Oct 28 17:43 /usr/local/nagios/var/rw/nagios.cmd

[root@tmars1 ~]# /sbin/service nagios stop
Stopping nagios: .done.

[root@tmars1 ~]# ps -aef | grep nagios.cfg
root 23796 19183 0 15:50 pts/0 00:00:00 grep nagios.cfg

[root@tmars1 ~]# killall nagios
nagios: no process killed

[root@tmars1 ~]# ps -aef | grep nagios.cfg
root 23906 19183 0 15:50 pts/0 00:00:00 grep nagios.cfg

[root@tmars1 ~]# /sbin/service nagios start
Starting nagios: done.

[root@tmars1 ~]# ls -la /usr/local/nagios/var/rw/nagios.cmd
prw-rw---- 1 nagios nagcmd 0 Oct 29 15:50 /usr/local/nagios/var/rw/nagios.cmd

[root@tmars1 ~]# umask
0022


thanks,
Rick

Re: Acknowledge not working

Posted: Wed Oct 29, 2014 4:52 pm
by sreinhardt
Maybe I missed it, but what User are you attempting to do this as? This user is not read-only in either CCM or XI user settings correct? Also this user is a contact on the host or this particular service(or of course full admin)?

Re: Acknowledge not working [SOLVED]

Posted: Thu Oct 30, 2014 10:19 am
by rmcclinton
Hello sreinhardt,

I am using my own account, which is an admin, and in a group that is contact for everything. I can use any item on the NagiosXI 'Admin' menu and the core config manager.

On any random service, I am able to perform 'schedule force immediate check', but I get an error when I click acknowledge.

On your suggestion I checked my account settings, I had all options checked, including 'read-only'. HUH? How'd that happen!?
Unchecked that box, and now I can use acknowledge!

PROBLEM RESOLVED!
thank you!

Re: Acknowledge not working

Posted: Thu Oct 30, 2014 12:11 pm
by slansing
Awesome! Glad we were able to help dig this up!