Install sanjianke in nagios (1)

Source: Internet
Author: User

NagiosInstall sanjianke:

Create a nagios account

 
 
  1. /usr/sbin/useradd nagios && passwd nagios  
  2.  

Create a user group named nagcmd to execute External commands from the Web interface. Add both nagios users and apache users to this group.

 
 
  1. /usr/sbin/groupadd nagcmd  
  2.  
  3. /usr/sbin/usermod -G nagcmd nagios  
  4.  
  5. /usr/sbin/usermod -G nagcmd apache  
  6.  

Install nagios and plug-ins

 
 
  1. tar zxvf nagios-3.2.1  
  2.  
  3. cd nagios-3.2.1  
  4.  
  5. ./configure --with-command-group=nagcmd --prefix=/usr/local/nagios  
  6.  
  7. make all  
  8.  
  9. make install  
  10.  
  11. make install-init  
  12.  
  13. make install-config  
  14.  
  15. make install-commandmode  
  16.  

After the installation is completed, the/usr/local/nagios directory will contain these folders.

Bin etc include libexec sbin share var


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.