I believe the problem is related to nagios/etc/cgi.cfg where I have configured:
authorized_for_all_services=user1,user2
authorized_for_all_hosts=user1,user2
user1 and user2 are unable to schedule downtime for hosts that they are not a contact for
user1 and user2 are able to schedule downtime for hosts that they are a contact for
For example, switch1. user1 and user2 are unable to schedule downtime on this host, but user3 and user4 are able to schedule downtime on this host.
If user1 and user2 are added to the contact group network they are able to schedule downtime for this host.
Hosts are configured in this way:
Code: Select all
define contactgroup{
contactgroup_name network
alias Network
members user3,user4
}
define hostgroup{
hostgrou_name switches
alias network switches
}
define host {
name switch_host
max_check_attempts 6
check_command check-host-alive
passive_checks_enabled 1
check_period 24x7
obsess_over_host 1
check_freshness 0
event_handler_enabled 1
flap_detection_enabled 1
process_perf_data 0
retain_status_information 1
retain_nonstatus_information 1
contact_groups network
notification_interval 0
notification_period 24x7
notification_options d,r,f
notifications_enabled 1
icon_image switch40.gif
statusmap_image switch40.gd2
register 0
}
define host{
use switch_host
host_name switch1
alias Switch1
address 192.168.1.100
hostgroups switches
notes Network
parents building-mdf
}