Problem with Acknowledge

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
cetanhota
Posts: 14
Joined: Tue Aug 07, 2012 8:02 am

Re: Problem with Acknowledge

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Problem with Acknowledge

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
cetanhota
Posts: 14
Joined: Tue Aug 07, 2012 8:02 am

Re: Problem with Acknowledge

Post 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.
cetanhota
Posts: 14
Joined: Tue Aug 07, 2012 8:02 am

Re: Problem with Acknowledge

Post 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>
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Problem with Acknowledge

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
cetanhota
Posts: 14
Joined: Tue Aug 07, 2012 8:02 am

Re: Problem with Acknowledge

Post by cetanhota »

The user ID wleutwy which is not working is in htpasswd.users file.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Problem with Acknowledge

Post by scottwilkerson »

can you verify you can login to the Core interface with that username and password
http://YOUR_IP/nagios/
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
cetanhota
Posts: 14
Joined: Tue Aug 07, 2012 8:02 am

Re: Problem with Acknowledge

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Problem with Acknowledge

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Problem with Acknowledge

Post by scottwilkerson »

Also can you PM me a copy of your cgi.cfg

Thanks
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked