Hello Scottwilkerson,
Thanks for the quick response, I have added that contacts configuration and login through LDAP credentials works fine but that particular user can view all the host reports in the dash board. The way which I have configured is as follows
contacts.cfg
define contact{
contact_name user1
use generic-contact
alias user1
email
[email protected]
pager 92929299292
}
Configuration file for my server
myserver.cfg
define host{
use linux-server
check_period 24x7
check_interval 5
retry_interval 1
max_check_attempts 10
check_command check-host-alive
host_name MyServer
alias MyServer
address 192.168.60.23
notification_options d,u,r
contacts user1
icon_image Amazon.png
statusmap_image Amazon.gd2
}
Apache config for nagios
<VirtualHost *:80>
ServerName nagios.local.com
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
##Ldap Authentication
AuthLDAPURL ldap://ldap.local.com:389/OU=People,DC=ldap,DC=local,DC=com?uid
AuthBasicProvider ldap
AuthType Basic
AuthzLDAPAuthoritative off
AuthName "local Nagios"
AuthLDAPBindDN "CN=Manager,DC=ldap,DC=local,DC=com"
AuthLDAPBindPassword MyPassword
require user user1 user2 user3
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
##Ldap Authentication
AuthLDAPURL ldap://ldap.local.com:389/OU=People,DC=ldap,DC=local,DC=com?uid
AuthBasicProvider ldap
AuthType Basic
AuthzLDAPAuthoritative off
AuthName "local Nagios"
AuthLDAPBindDN "CN=Manager,DC=ldap,DC=local,DC=com"
AuthLDAPBindPassword MyPassword
require user user1 user2 user3
</Directory>
</VirtualHost>
Where user1 is for accessing the status of particular host and user2 and user3 need to access the status of all the hosts.