You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.2.4.tar.gz
$ tar zxvf nagios-4.2.4.tar.gz
$ cd nagios-4.2.4
$ ./configure
$ make all
$ make install
$ make install-init
$ make install-config
$ make install-commandmode
$ make install-webconf
$ wget https://nagios-plugins.org/download/nagios-plugins-2.1.4.tar.gz
$ tar zxvf nagios-plugins-2.1.4.tar.gz
$ cd nagios-plugins-2.1.4.tar.gz
$ ./configure
$ make
$ make install
$ yum install epel-release
$ yum install perl-Net-SNMP
$ yum install openssl-devel radiusclient-ng-devel libdbi
libdbi-devel samba-devel libsmbclient-devel net-snmp-devel
gnutls-devel openldap-devel postgresql-devel
$ wget https://nagios-plugins.org/download/nagios-plugins-2.1.4.tar.gz
$ tar zxvf nagios-plugins-2.1.4.tar.gz
$ cd nagios-plugins-2.1.4/
$ ./configure
$ make
$ make install
Install NRPE
$ wget https://github.com/NagiosEnterprises/nrpe/archive/nrpe-3.0.1.tar.gz
$ tar zxvf tar zxvf nrpe-3.0.1.tar.gz
$ cd nrpe-nrpe-3.0.1/
$ ./configure
$ make all
$ make install
$ make install-config
$ make install-inetd
$ make install-init
$ make install-groups-users
$ wget https://github.com/NagiosEnterprises/nrpe/archive/nrpe-3.0.1.tar.gz
$ tar zxvf tar zxvf nrpe-3.0.1.tar.gz
$ cd nrpe-nrpe-3.0.1/
$ ./configure
$ make check_nrpe
$ make install-plugin
Check command for remote host
$ /usr/local/nagios/libexec/check_nrpe -H 10.136.161.101 -c check_users
USERS OK - 2 users currently logged in|users=2;5;10;0