Install Nginx+nagios in Ubuntu

Source: Internet
Author: User
Tags fpm socket

1. Nagios Installation

# wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.2.tar.gz

# tar ZXVF nagios-3.2.2.tar.gz

# CD nagios-3.2.2

# useradd-m-s/bin/bash Nagios

# Groupadd Nagios

# usermod-g Nagios Nagios

# Groupadd Nagcmd

# usermod-a-G Nagcmd Nagios

# usermod-a-G Nagcmd www

#./configure--prefix=/usr/local/nagios--with-command-group=nagcmd

# make

# make All

# make Install

# make Install-init # Generate init startup script

# make Install-config # Install the sample configuration file

# make Install-commandmode # set appropriate directory permissions

2. Nagiox Plug-in Installation

# wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.15.tar.gz

# tar ZXVF nagios-plugins-1.4.15.tar.gz

# CD nagios-plugins-1.4.15

#./configure--with-nagios-user=nagios--with-nagios-group=nagios--prefix=/usr/local/nagios

# make

# make Install

3. Nrpe Installation

# Apt-get Install Libssl-dev

# wget http://sourceforge.net/projects/nagios/files/nrpe-2.x/nrpe-2.13/nrpe-2.13.tar.gz

# tar ZXVF nrpe-2.12.tar.gz

# CD nrpe-2.12

#./configure

# make All

# CP src/check_nrpe/usr/local/nagios/libexec/

4. Installation Configuration Nginx

#sudo apt-get Install nginx php5-fpm libssl-dev fcgiwrap apache2

# htpasswd-c-m/usr/local/nagios/etc/nagiosadmin.net nagiosadmin

# Start Service

#/ETC/INIT.D/PHP5-FPM Start

#/etc/init.d/fcgiwrap start #默认是socket模式, socket file in/var/run/fcgiwrap.socket

#/etc/init.d/nagios Start

#/etc/init.d/nginx Start

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.