srijeda, 24. lipnja 2020.

Install Nagios Plugins on CentOS 8

Installation Nagios plugins from the CentOS 8 repository.

Install epel repository;
# dnf install epel-release

Check Nagios plugins;
# dnf list nagios-plugins-*

Install nrpe agent;
# dnf install nrpe

# dnf install gcc glibc glibc-common make gettext automake autoconf wget openssl-devel

Install Nagios plugins;
# dnf install nagios-plugins-{nt,apt,dbi,dig,dns,fts,log,ntp,rpc,ssh,tcp,ups,disk,load,nrpe,swap,dhcp,disk,hpjd,http,icmp,ircd,ldap,load,mrtg,nrpe,perl,ping,real,smtp,snmp,swap,time,wave,fping,mysql,procs,users,dummy,fping,mailq,mysql,pgsql,procs,users,uptime,breeze,by_ssh,flexlm,nagios,nwstat,oracle,overcr,radius,uptime,cluster,sensors,bonding,cluster,sensors,file_age,mrtgtraf,ide_smart,remove_perfdata}

Nagios plugins will be installed in /usr/lib64/nagios/plugins/ directory;
# ls -1 /usr/lib64/nagios/plugins/

------------------------------------------------------------

Or you can try the second method installing Nagios plugins on CentOS 8;

Install nrpe agent and required programmes;
# dnf install nrpe gcc glibc glibc-common make gettext automake autoconf wget openssl-devel

Download plugins;
# wget https://nagios-plugins.org/download/nagios-plugins-2.2.1.tar.gz

Unpack the plugins;
# tar -xvzf nagios-plugins.org/download/nagios-plugins-2.2.1.tar.gz

# cd nagios-plugins-2.2.1

Define the user and group to use;
# ./configure --with-nagios-user=nagios --with-nagios-group=nagios

Compile the software;
# make
# make install

Nagios plugins are installed in /usr/local/nagios/libexec/ directory;
# ls /usr/local/nagios/libexec/

Nema komentara:

Objavi komentar