Chandigarh, , India
Systemdministration, Unix and Linux, Communication Skills
Model.ProfilDetail.name
Naveen Sambyal 29 May 15   Views 35 Views  Comments 0 Comments 
1Prerequisites During portions of the installation yoursquoll need to have root access to your machine. Make sure yoursquove installed the following packages Apache PHP GCC compiler GD 2 Create Account Information Create a new nagios user account and give it a password. /usr/sbin/useradd -m nagios passwd nagios Create a new nagcmd group for allowing external commands to be submitted through the web interface. Add both the nagios user and the apache user to the group. /usr/sbin/groupadd nagcmd /usr/sbin/usermod -a -G nagcmd nagios /usr/sbin/usermod -a -G nagcmd apache 3 Compile and Install Nagios Download Nagios source code tarball. Extract the Nagios source code tarball move nagios.X.X.X in document root path. cd nagios-X.X.X Run the Nagios configure script, passing the name of the group you created earlier like so ./configure ndashwith-command-groupnagcmd Compile the Nagios source code. make all Install binaries, init script, sample config files and set permissions on the external command directory. make install make install-init make install-config make install-commandmode Donrsquot start Nagios yet ndash therersquos still more that needs to be donehellip 4 Customize Configuration Sample configuration files have now been installed in the /usr/local/nagios/etc directory. These sample files should work fine for getting started with Nagios. Yoursquoll need to make just one change before you proceedhellip Edit the /usr/local/nagios/etc/objects/contacts.cfg config file with your favorite editor and change the email address associated with the nagiosadmin contact definition to the address yoursquod like to use for receiving alerts. vi /usr/local/nagios/etc/objects/contacts.cfg 5 Configure the Web Interface Install the Nagios web config file in the Apache conf.d directory. make install-webconf Create a nagiosadmin account for logging into the Nagios web interface. Remember the password you assign to this account ndash yoursquoll need it later. htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin Restart Apache to make the new settings take effect. service httpd restart 6 Compile and Install the Nagios Plugins Download Nagios plugins source code tarball. Extract the Nagios plugins source code tarball. tar xzf nagios-plugins-1.4.11.tar.gz cd nagios-plugins-1.4.11 Compile and install the plugins. ./configure ndashwith-nagios-usernagios ndashwith-nagios-groupnagios make make install 7 Start Nagios Add Nagios to the list of system services and have it automatically start when the system boots. chkconfig ndashadd nagios chkconfig nagios on Verify the sample Nagios configuration files. /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg If there are no errors, start Nagios. service nagios start 9 Login to the Web Interface You should now be able to access the Nagios web interface at the URL below. Yoursquoll be prompted for the username nagiosadmin and password you specified earlier. http//localhost/nagios/ Thanks.
    • Social Share
      for this Blog
  • Comment
Porfolio And Blogs
Naveen Sambyal follows various companies, these companies and employers can view Naveen's resume.
blog portfolio
Upload your resume to get best job opportunities.

Register free!