hi
As part of our Nagios Automation, we need to configuring Active Directory in Nagios. I can manually login to Nagios GUI and under Admin tab I can do it by clicking on LDAP/AD Integration. But our requirement is to Add our AD server using files on the Linux server. Does anyone has idea which files needs to be updated to do that. We have Nagiosxi 5.5.4 installed on CentOS. Please assist.
thanks
Balwant
Active Directory Configuration using files
Re: Active Directory Configuration using files
Integrating AD this way isn't an option. I would instead use the API to add AD users. You can find details on the API and adding users under Help > REST API Docs > System Reference. Adding an AD user for example:
curl -XPOST "https://nagios_server/nagiosxi/api/v1/system/user?apikey=api_key&pretty=1" -d 'username=user1&password=test&name=user%20one&email=[email protected]&auth_type=ad&ad_username=user1&ldap_dn=cn=user1,cn=users,dc=acme,dc=local&auth_server_id=auth_id'
auth_id is found by running:
curl -XGET "https://nagios_server/nagiosxi/api/v1/system/authserver?apikey=api_key&pretty=1"
curl -XPOST "https://nagios_server/nagiosxi/api/v1/system/user?apikey=api_key&pretty=1" -d 'username=user1&password=test&name=user%20one&email=[email protected]&auth_type=ad&ad_username=user1&ldap_dn=cn=user1,cn=users,dc=acme,dc=local&auth_server_id=auth_id'
auth_id is found by running:
curl -XGET "https://nagios_server/nagiosxi/api/v1/system/authserver?apikey=api_key&pretty=1"
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.