Nagios + Nconf deployment

Source: Internet
Author: User
Nagios + Nconf deploy Nagioscroe source code to install and install the basic environment. Package: ForRHEL/CentOSusers: yuminstall-ywgethttpdphpgccglibcglibc-commongdgd-develmakenet-snmpopenssl-devel. use Nagios + Nconf to deploy the Nagios croe source code to install and install the basic environment. software package: For RHEL/CentOS users: yum install-y wget httpd php gcc glibc-common gdgd-devel make net-snmp openssl-devel (avoid check_http.c: 312: error: 'SSL _ version' undeclard error) for Ubuntu users: sudo apt-get install build-essential apache2 php5-gdlibgd2-xpm libgd2-xpm-dev libapache2-mod-php5 libcurl4-openssl-dev (avoid check_http.c: 312: error: 'SSL _ version' undeclard errors) download the stable version of TAR package Adding the NagiosUser and Group Next add theappropriate user and group for the Nagios process to run: useradd nagios groupadd nagcmd usermod-a-Gnagcmd nagios For RHEL/CentOSusers :. /configure -- with-command-group = nagcmd For Ubuntu users :. /configure -- with-nagios-group = nagios -- with-command-group = nagcmd All systems: make all make install-init makeinstall-config makeinstall-commandmode makeinstall-webconf cp-Rcontrib/eventhandlers // usr/local/nagios/libexec/chown-Rnagios: nagios/usr/local/nagios/libexec/eventhandlers/usr/local/nagios/bin/nagios-v/usr/local/nagios/etc/nagios. cfg/etc/init. d/nagiosstart For RHEL/CentOSusers:/etc/init. d/httpdstart Create a DefaultUser for Web Access. add a default userfor Web Interface Access: htpasswd-c/usr/local/nagios/etc/htpasswd. users nagiosadmin Nagios PluginInstallation cd/tmp/nagios-plugins-1.4.15. /configure -- with-nagios-user = nagios -- with-nagios-group = nagios make install nconf web management configuration nagios install mysql database Apt-get installmysql-server-5.5; create database CREATE databasenconf Create user and authorize GRANTSELECT, INSERT, UPDATE, DELETE, CREATE, DROP, alter on nconf. * to 'nconf' @ 'localhost' identified by 'nconfadmin '; import the nconf built-in database table Mysql-u root-pnconf <INSTALL/create_datebase. SQL put the decompressed nconf in the/var/www/Directory (apache default website file directory, you can set Other) http://192.168.1.20/nconf The nconf parameter has been set. PS: Here you can write a simple shell script to replace the nconf configuration file. the content is as follows :#! /Bin/bash export PATH cp-p/var/www/nconf/output/NagiosConfig. tgz/usr/local/nagios/etc/rm-r/usr/local/nagios/etc/Default_collector/usr/local/nagios/etc/global cd/usr/local/nagios /etc/tar-xvf/usr/local/nagios/etc/NagiosConfig. tgz/etc/init. d/nagiosrestart modify the configuration according to the actual directory.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.