• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

How to configure htdigest in nagios server

March 7, 2013 by Sharad Chhetri Leave a Comment

How to configure htdigest in nagios server

As a security point of view I always prefer to go with htdigest rather than htpasswd method.The reason is htpaswd uses cleartext username and password whereas htdigest uses encryption method.

If you have already read my post “How to configure Nagios 3.4.4 in CentOS” there I use the htpasswd.
But suprisingly there is one more thing htpasswd is more popular than htdigest.
Ok lets start the configuration.

Step 1: create htdigest password file with user name nagiosadmin

(Replace the nagiosadmin username with your nagios admin user which you are using for accesing the nagios dashboard,same thing apply to nagios read only users).

htdigest -c /etc/nagios/.htdigestpasswd “Restricted Nagios Access Zone” nagiosadmin
chmod 600 /etc/nagios/.htdigestpasswd

Step 2: Now configure the /etc/httpd/conf.d/nagios.conf file.
And the edit the given below line

AuthType Digest
AuthUserFile /etc/nagios/.htdigestpasswd
AuthName “Restricted Nagios Access Zone”
require valid-user

Below is my nagios.conf configuration file for reference.

ScriptAlias /nagios/cgi-bin/ /usr/lib64/nagios/cgi-bin/
<Directory /usr/lib64/nagios/cgi-bin/>
Options ExecCGI
order deny,allow
deny from all
allow from 127.0.0.1
AuthType Digest
AuthUserFile /etc/nagios/.htdigestpasswd
AuthName “Restricted Nagios Access Zone”
require valid-user
</Directory>

Alias /nagios/ /usr/share/nagios/html/
<Directory /usr/share/nagios/html/>
Options None
order deny,allow
deny from all
allow from 127.0.0.1
AuthType Digest
AuthUserFile /etc/nagios/.htdigestpasswd
AuthName “Restricted Nagios Access Zone”
require valid-user
</Directory>

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. How to set htdigest password in apache web server
  2. How to install and configure nagios nrpe in CentOS and Red Hat
  3. How to install and configure nagios nrpe client in Ubuntu with apt-get command
  4. Install and configure nagios core 4 on Ubuntu 12.04 LTS
  5. Error: Could not open command file ‘/usr/local/nagios/var/rw/nagios.cmd’ for update!
  6. How to configure FTP server in CentOS 6.3 – vsftpd server
  7. You don’t have permission to access /nagios on this server :Solved
  8. How to install nagios server in Ubuntu 12.04 LTS
  9. How to install and configure Secure FTP server in Ubuntu 12.04 LTS
  10. How to install and configure FTP server with chroot in Ubuntu 12.04 LTS

Filed Under: Linux, Monitoring Server, Tips And Tricks Tagged With: htdigest nagios

Reader Interactions

Leave a Reply Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

How to put slider shortcode only in home page in WordPress

Print double hyphen sign simultaneously in post of Octopress

How to convert rpm file into deb file

How to change login banner message in GUI mode in CentOS 6 or above version.

Change the default port number of ssh server

Allow only members of Wheel group to use su command on RHEL/CentOS

Allow wget and yum in iptable

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy