HTTPS with Ambari for Nagios

HTTPS with Ambari for Nagios

Hello guys have you thinked before to use ambari :) its not a kidding name its a server package here you can use it to change behaviour of application from http to https and there is other uses but here we will use it for nagios

  1. Set up the Nagios server.
  2. Log into the Nagios server host.
  3.  Create a self-signed certificate on the Nagios server host. For example:
openssl genrsa -out $nserver.key 2048 
openssl req -new -key $nserver.key -out $nserver.csr  
openssl x509 -req -days 365 -in $nserver.csr -signkey $nserver.key -out $nserver.crt
  1. Where $nserver is the Nagios server host name.
  2. Install SSL on the Nagios server host.
yum install mod_ssl
  1. Edit the SSL configuration file on the Nagios server host.
  2. Using a text editor, open:
/etc/httpd/conf.d/ssl.conf
  1. Add lines setting the certificate and key file names to the files you created .
SSLCertificateFile      $nserver.crt
SSLCertificateKeyFile  $nserver.key 
  1. Disable HTTP access (optional)
  2. Using a text editor, open:
/etc/httpd/conf/httpd.conf 
  1. Comment out the port 80 listener:
# Listen 80
  1. Restart the httpd service on the Nagios server host.
service httpd restart
  1. Set up and restart the Ambari Server.
  2. Log into the Ambari Server.
  3. Run the special setup command and answer the prompts.
ambari-server setup-security
  1. Select 2 for Enable HTTPS for Nagios service.
  2. Respond y to Do you want to configure HTTPS for Nagios? .
  3. Enter your TrustStore type. Your options are jks, jceks, or pks12.
  4. Enter the path to your TrustStore file.
  5. Enter the password for your TrustStore and then re-enter to confirm. The password must be at least 6 characters long.
  6. Enter the path to the Nagios server certificate file.
  7. Start or restart the Server
ambari-server restart




To view or add a comment, sign in

More articles by Hossam Moghazy

  • Oracle Capsules

    Oracle Capsules Select statement select fields from table or tables where condation select * from employees ; select *…

  • HMC update

    Hello Before starting lets know Types of HMC network connections HMC to managed system Used to perform most of the…

  • Monitoring Tools #Nagios Core4.4

    One of the best free opensource is Nagios core with latest version 4.4 actually it contain a lot of features to monitor…

  • GPT As file system

    GPT’s solution Intel® created the GPT definition as part of its Extensible Firmware Interface (EFI) specification for a…

  • OpenShift Container Platform

    OpenShift Container Platform OpenShift container platform is an enterprise platform which helps multiple teams such as…

  • Nmon

    Hello did you know what is nmon nmon stand for Nigel's Monitoring tool its a tool for both Aix and Linux OS it can let…

    1 Comment
  • Monitoring AIX Using SNMP

    To stop the daemons, execute the following as root: stopsrc -s aixmibd stopsrc -s hostmibd stopsrc -s snmpmibd stopsrc…

  • Network Interface in Red-hat

    Before starting you should understand that everything is a file even a device is a file so lets see how we can open…

  • HMC useful commands

    HMC useful commands lshmc -v Shows vital product data, such as the serial number. lshmc -V Shows the release of the HMC.

  • Cleaning up software installation Aix

    Before Anything you have to take a backup from your system before installing any software update The cleanup procedure…

Explore content categories