Acknowledge not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rmcclinton
Posts: 4
Joined: Mon Aug 15, 2011 2:30 pm

Acknowledge not working

Post 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
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Acknowledge not working

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
rmcclinton
Posts: 4
Joined: Mon Aug 15, 2011 2:30 pm

Re: Acknowledge not working

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Acknowledge not working

Post 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)?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
rmcclinton
Posts: 4
Joined: Mon Aug 15, 2011 2:30 pm

Re: Acknowledge not working [SOLVED]

Post 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!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Acknowledge not working

Post by slansing »

Awesome! Glad we were able to help dig this up!
Locked