31. 07. 2017 Juergen Vigna NetEye

Using Active Direcory for defining new NetEye Users

Users
Every so often I get asked whether it is possible to integrate Active Directory Users and Groups with NetEye. Until now my answer has always been that it is possible to use AD via its LDAP functionality as an authentication backend, and that you may manually add each AD user one-by-one to NetEye.

I was never very satisfied with this answer and so I tried to find a solution.  Here’s what needs to be done:

  1. Only some AD groups should be able to have NetEye access
  2. All users in these groups should be added automatically to NetEye as both a user and a monitoring contact
  3. Users and groups should also be cleaned up automatically

Starting from these requirements, I made a simple Perl script which uses the NetEye Perl API to do what I want:

  1. Use an existing LDAP backend configured for NetEye User Management.
  2. Alternatively, give all parameters needed in single mode (ldaphost, ldapuser, …)
  3. Search for all groups in the specified AD-Location using a regular expression, for instance:  ug-neteye-*
  4. Add all users in this group(s) to NetEye (if they don’t already exist there) using a default NetEye profile (given as a command line parameter).  Otherwise, if a NetEye profile already exists with the same name as the AD-group, then use that one instead.
  5. Add the AD-group as a contactgroup.
  6. Add all users in the group as contacts and assign them to the contactgroup created before.
  7. Clean up each contactgroup in Monitoring with the same regular expression as the one used above to search the groups in AD, which should no longer exist in the Active Directory.
  8. Clean up all contacts and NetEye users which are no longer listed in a contactgroup. This assumes that all manually created contacts HAVE TO be inserted inside a contactgroup, so that they do not get cleaned up.

If your requirements align with mine, enjoy this script that will sync your AD Users and Groups with NetEye (handle_neteye_users).

Juergen Vigna

Juergen Vigna

NetEye Solution Architect at Würth Phoenix
I have over 20 years of experience in the IT branch. After first experiences in the field of software development for public transport companies, I finally decided to join the young and growing team of Würth Phoenix. Initially, I was responsible for the internal Linux/Unix infrastructure and the management of CVS software. Afterwards, my main challenge was to establish the meanwhile well-known IT System Management Solution WÜRTHPHOENIX NetEye. As a Product Manager I started building NetEye from scratch, analyzing existing open source models, extending and finally joining them into one single powerful solution. After that, my job turned into a passion: Constant developments, customer installations and support became a matter of personal. Today I use my knowledge as a NetEye Senior Consultant as well as NetEye Solution Architect at Würth Phoenix.

Author

Juergen Vigna

I have over 20 years of experience in the IT branch. After first experiences in the field of software development for public transport companies, I finally decided to join the young and growing team of Würth Phoenix. Initially, I was responsible for the internal Linux/Unix infrastructure and the management of CVS software. Afterwards, my main challenge was to establish the meanwhile well-known IT System Management Solution WÜRTHPHOENIX NetEye. As a Product Manager I started building NetEye from scratch, analyzing existing open source models, extending and finally joining them into one single powerful solution. After that, my job turned into a passion: Constant developments, customer installations and support became a matter of personal. Today I use my knowledge as a NetEye Senior Consultant as well as NetEye Solution Architect at Würth Phoenix.

Leave a Reply

Your email address will not be published. Required fields are marked *

Archive