User cannot schedule downtime


#1

I have added a few users to the nagios system and they can login properly and view their own hosts/services but cannot schedule downtime for the hosts/services. They get:


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.

I cannot figure out why this is happening, been pounding on it for a few hours. Here are my config snippits (slightly sanitized)…

contacts.cfg

define contact{
contact_name daved
alias Dave_D
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,u,r
service_notification_commands notify-by-email
host_notification_commands host-notify-by-email
email email@email.com
}

contactgroups.cfg

define contactgroup{
contactgroup_name vandamme
alias VanDamme 24x7
members daved
}

hosts.cfg

define host {
use generic_host
host_name dbserv03.x.com
alias dbserv03
address 74.43.x.x
check_command check-host-alive
parents 74.43.x.x
max_check_attempts 3
notification_interval 15
notification_period 24x7
notification_options d,r,u
contact_groups admins,vandamme
}

The user is authenticating via the web server so I know the htpasswd information is correct and legit, I just don’t know why he can’t perform downtime. Things point to something wrong with cgi config but I’m not sure where exactly to look. Googled forever. Anyone else have something like this working or any ideas?

Thanks very much!

Adam


#2

Hi
I found you had to make changes in the cgi.cfg file.

In there you can specify users for differnt feature access.
You can also use a wildcard * to allow all authenticated users access to different features too.