Problem with Acknowledge
Re: Problem with Acknowledge
$ 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
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
Wayne,
Can I have you send a screenshot of the error.
Also, can you post the contents of /etc/httpd/conf.d/nagios.conf
Thanks
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.confRe: Problem with Acknowledge
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.
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
$
# 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>
# 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
can you run
and see if the username that is not working is in the list
If not run
Code: Select all
cat /usr/local/nagiosxi/etc/htpasswd.usersIf not run
Code: Select all
htpasswd -b /usr/local/nagiosxi/etc/htpasswd.users USERNAME PASSWORDRe: Problem with Acknowledge
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
can you verify you can login to the Core interface with that username and password
http://YOUR_IP/nagios/
http://YOUR_IP/nagios/
Re: Problem with Acknowledge
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
Do you mean when logged in to the core interface directly you cannot do these eithercetanhota wrote: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
Also can you PM me a copy of your cgi.cfg
Thanks
Thanks