I have been getting started with Nagios and finding it to very helpful, but I am having an issue with executing some commands. When I try to acknowledge an alert, view process information, or change notifications (for example), all while logged in to the Nagios web interface as nagiosadmin, I get a message which says:
I have looked in the documentation, and found some additional information online, but so far have been unable to resolve my issue.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.
Here's what I have for authorizations in cgi.cfg:
Code: Select all
authorized_for_system_information=nagiosadmin
authorized_for_configuration_information=nagiosadmin
authorized_for_system_commands=nagiosadmin
authorized_for_all_services=nagiosadmin
authorized_for_all_hosts=nagiosadmin
authorized_for_all_service_commands=nagiosadmin
authorized_for_all_host_commands=nagiosadmin
Code: Select all
-rwxrwxr-x 1 nagios nagcmd 254680 2011-05-24 10:13 avail.cgi
-rwxrwxr-x 1 nagios nagcmd 251224 2011-05-24 10:13 cmd.cgi
-rwxrwxr-x 1 nagios nagcmd 221816 2011-05-24 10:13 config.cgi
-rwxrwxr-x 1 nagios nagcmd 266904 2011-05-24 10:13 extinfo.cgi
-rwxrwxr-x 1 nagios nagcmd 217912 2011-05-24 10:13 histogram.cgi
-rwxrwxr-x 1 nagios nagcmd 193208 2011-05-24 10:13 history.cgi
-rwxrwxr-x 1 nagios nagcmd 193176 2011-05-24 10:13 notifications.cgi
-rwxrwxr-x 1 nagios nagcmd 184952 2011-05-24 10:13 outages.cgi
-rwxrwxr-x 1 nagios nagcmd 189336 2011-05-24 10:13 showlog.cgi
-rwxrwxr-x 1 nagios nagcmd 258744 2011-05-24 10:13 status.cgi
-rwxrwxr-x 1 nagios nagcmd 213880 2011-05-24 10:13 statusmap.cgi
-rwxrwxr-x 1 nagios nagcmd 209624 2011-05-24 10:13 statuswml.cgi
-rwxrwxr-x 1 nagios nagcmd 193176 2011-05-24 10:13 statuswrl.cgi
-rwxrwxr-x 1 nagios nagcmd 217816 2011-05-24 10:13 summary.cgi
-rwxrwxr-x 1 nagios nagcmd 205528 2011-05-24 10:13 tac.cgi
-rwxrwxr-x 1 nagios nagcmd 222008 2011-05-24 10:13 trends.cgi
Code: Select all
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 Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
At this point I'm feeling stumped. Any suggestions?