ISON BPO Nagios XI: Difference between revisions
| Line 7: | Line 7: | ||
'''Note: Run this command as a Root User''' | '''Note: Run this command as a Root User''' | ||
rpm -Uvh https://repo.nagios.com/nagios/7/nagios-repo-7-4.el7.noarch.rpm | |||
yum update | yum update | ||
| Line 13: | Line 13: | ||
wget https://assets.nagios.com/downloads/nagiosxi/scripts/ModGearmanInstall.sh | wget https://assets.nagios.com/downloads/nagiosxi/scripts/ModGearmanInstall.sh | ||
chmod +x ModGearmanInstall.sh | chmod +x ModGearmanInstall.sh | ||
./ModGearmanInstall.sh --type=worker | ./ModGearmanInstall.sh --type=worker | ||
| Line 34: | Line 34: | ||
telnet 172.105.253.143 4730 | telnet 172.105.253.143 4730 | ||
(if telnet status is connected means communication is established between the probe machine and Nagios XI server) | |||
==Step 2: Install Nagios XI in the Probe Machine to get the Plugins== | ==Step 2: Install Nagios XI in the Probe Machine to get the Plugins== | ||
Revision as of 11:39, 2 December 2022
Building Probe Machine Documentation
STEP 1: Install Mod-gearman in the Probe Machine and Configure
Note: Run this command as a Root User
rpm -Uvh https://repo.nagios.com/nagios/7/nagios-repo-7-4.el7.noarch.rpm
yum update
wget https://assets.nagios.com/downloads/nagiosxi/scripts/ModGearmanInstall.sh
chmod +x ModGearmanInstall.sh
./ModGearmanInstall.sh --type=worker
{ Set the Nagios XI Server IP address is 172.105.253.143 }
vi /etc/mod_gearman/worker.conf
{Add the hostgroups Location of probe machine}
systemctl restart mod-gearman-worker
{Now go to the Nagios XI server and add the hostgroups of the probe machine which you created now}
vi /etc/mod_gearman/module.conf
systemctl restart gearmand
gearman_top {to see all the hostgroups}
telnet 172.105.253.143 4730
(if telnet status is connected means communication is established between the probe machine and Nagios XI server)
Step 2: Install Nagios XI in the Probe Machine to get the Plugins
cd /tmp wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.8.7.tar.gz tar xzf xi-5.8.7.tar.gz cd nagiosxi/ ./fullinstall cd /usr/local/nagios/libexec/ ls (to see all the plugins)
Step 3: Install check_nwc_health Plugin in the Probe Machine
wget https://labs.consol.de/assets/downloads/nagios/check_nwc_health-10.0.0.2.tar.gz
tar xvfz check_nwc_health-10.0.0.2.tar.gz cd check_nwc_health-10.0.0.2 ./configure make make install cd /usr/local/nagios/libexec/
Note: while running the check_nwc_health plugin some files will be missing you have to download those files ./check_nwc_health --hostname 14.98.74.34 --community public --mode hardware-health After running this command if error comes can’t locate and *.pm file download the file using yum install perl-file name Suppose error comes can’t locate JSON.pm file then I will run command like this yum install perl-JSON yum install perl-File-Slurp (if error comes can’t locate File/Slurp.pm file) yum install perl-Module-Load (if error comes can’t locate Module/Load.pm file)
./check_nwc_health --hostname 14.98.74.34 --community public --mode cpu-load yum install perl-JSON-XS (If error comes can’t locate JSON/XS.pm file)