Ubuntu and Redhat installation Nrpe

Source: Internet
Author: User
Tags snmp

Client Installation Nrpe plugin:

Ubuntu:

Useradd-s/sbin/nologin-m nagiosapt-get Install Nagios-nrpe-server nagios-plugins

Edit Nrpe configuration file

Vi/etc/nagios/nrpe.cfg

allowed_hosts=127.0.0.1,10.0.0.2?? (default is allowed_hosts=127.0.0.1) dont_blame_nrpe=1
: Wq

Start Nrpe

Service nagios-nrpe-server start??

Redhat:?

Rpm-i perl-crypt-des perl-net-snmp fping perl-digest-sha1 perl-digest-hmacperl-socket6? (Need to download, some local yum there) rpm-i nagios-plugins-1.4.16-1.el6.rf.x86_64.rpmrpm-i nagios-nrpe-2.14-1.el6.rf.x86_64.rpm? (need to download) vi/etc/nagios/nrpe.cfg? (command is required to add sudo)

? command[check_cpu]=sudo/usr/lib64/nagios/plugins/check_snmp_load.pl-h 127.0.0.1-c ' xxxxx '-W 80-c--perf
allowed_hosts=127.0.0.1,10.0.0.2?? (Default is allowed_hosts=127.0.0.1)
Dont_blame_nrpe=1
: Wq

Start Nrpe

Service Nrpe Startvi/etc/sudoers (nrpe:unable to read output is not reported here)

Nagios all= (All) nopasswd:/usr/lib64/nagios/plugins/*

#Defaults?? requiretty
: Wq
? Remember to open firewall ports (199, 5666, SNMP and Nrpe)

Vi/etc/sysconfig/iptables?

-A input–p tcp–dport 199–j ACCEPT
-A input–p tcp–dport 5666–j ACCEPT
: Wq

Service Iptables Restart

Ubuntu and Redhat installation Nrpe

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.