Page 2 of 2

Re: Problem with Acknowledge

Posted: Mon Sep 17, 2012 7:57 am
by cetanhota
$ sudo /sbin/service nagios stop
Stopping nagios: done.
$ sudo killall -9 nagios
nagios: no process killed
$ sudo /sbin/service nagios start
Starting nagios: done.
$ ll /usr/local/nagios/var/rw
total 0
prw-rw---- 1 nagios nagcmd 0 Sep 17 07:55 nagios.cmd

Re: Problem with Acknowledge

Posted: Wed Sep 19, 2012 1:33 pm
by scottwilkerson
Wayne,

Can I have you send a screenshot of the error.

Also, can you post the contents of /etc/httpd/conf.d/nagios.conf

Code: Select all

cat /etc/httpd/conf.d/nagios.conf
Thanks

Re: Problem with Acknowledge

Posted: Wed Sep 19, 2012 4:43 pm
by cetanhota
Here is the exact wording of the error we are receiving.

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.
Return from whence you came

Just for a quick re-cap. This is only happening for 1 ID. That ID was deleted, then recreated and the problem remained.

I will get you the contents from /etc/httpd/conf.d/nagios.conf tomorrow morning when I am back in the office.

Re: Problem with Acknowledge

Posted: Wed Sep 19, 2012 5:08 pm
by cetanhota
$
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
# Last Modified: 11-26-2005
#
# This file contains examples of entries that need
# to be incorporated into your Apache web server
# configuration file. Customize the paths, etc. as
# needed to fit your system.

ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"

<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Core"
AuthType Basic
AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
Require valid-user
</Directory>

Alias /nagios "/usr/local/nagios/share"

<Directory "/usr/local/nagios/share">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Core"
AuthType Basic
AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
Require valid-user
</Directory>

Re: Problem with Acknowledge

Posted: Thu Sep 20, 2012 10:17 am
by scottwilkerson
can you run

Code: Select all

cat /usr/local/nagiosxi/etc/htpasswd.users
and see if the username that is not working is in the list

If not run

Code: Select all

htpasswd -b /usr/local/nagiosxi/etc/htpasswd.users USERNAME PASSWORD

Re: Problem with Acknowledge

Posted: Thu Sep 20, 2012 4:41 pm
by cetanhota
The user ID wleutwy which is not working is in htpasswd.users file.

Re: Problem with Acknowledge

Posted: Fri Sep 21, 2012 7:16 am
by scottwilkerson
can you verify you can login to the Core interface with that username and password
http://YOUR_IP/nagios/

Re: Problem with Acknowledge

Posted: Fri Sep 21, 2012 7:19 am
by cetanhota
Yes, I can logon with the ID wleutwy. I can do all functions with that ID other than Acknowledge issues, or control service or host groups.

Re: Problem with Acknowledge

Posted: Fri Sep 21, 2012 9:14 am
by scottwilkerson
cetanhota wrote:I can do all functions with that ID other than Acknowledge issues, or control service or host groups.
Do you mean when logged in to the core interface directly you cannot do these either

Re: Problem with Acknowledge

Posted: Fri Sep 21, 2012 9:19 am
by scottwilkerson
Also can you PM me a copy of your cgi.cfg

Thanks