Nagios with Centrify Authentication

If you have installed Nagios Core on Linux servers with Centrify installation for Active Directory (AD) integration, this post would help you to enable Nagios Authentication with AD.

Simply follow the below steps

  1. Install Centrify & Join with your AD
  2. Install & Configure Nagios core
  3. Open Nagios’ httpd configuration using vim & comment the below four lines for both …/sbin & …/share folder.

#AuthName “Nagios Access”
#AuthType Basic
#AuthUserFile /usr/local/nagios/etc/htpasswd.users
#Require valid-user

Add the following lines

AuthName “Nagios”


EnableBasicAuth    true

EnableNtlmAuth     true

EnableKerberosAuth true

Require valid-user

  1. Add the Admin user(s) (which is/are from AD) in /usr/local/nagios/etc/cgi.cfg file








  1. Add the user(s) in /usr/local/nagios/etc/objects/contacts.cfg file

define contact {

contact_name                       userA@DomainName


alias                              User Name

service_notification_period        24×7

host_notification_period           24×7

service_notification_options       w,u,c,r

host_notification_options          d,r

service_notification_commands      notify-service-by-email

host_notification_commands         notify-host-by-email

can_submit_commands                1


  1. Add the user(s) in the required contact group(s)

Eg: Here, Adding the user in admins group.

define contactgroup{

        contactgroup_name       admins

        alias                   Nagios Administrators

        members                 nagiosadmin,userA@DomainName


  1. Verify the Nagios configuration & reload the service

#  /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

# /etc/init.d/nagios reload

  1. Open the Nagios in the web browser & Enter your AD credentials


  1. You could see your AD username by clicking on “Tactical Overview” page.

2 thoughts on “Nagios with Centrify Authentication

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s