ISON BPO Nagios XI: Difference between revisions
Appearance
No edit summary |
|||
| (3 intermediate revisions by the same user not shown) | |||
| Line 33: | Line 33: | ||
ls (to see all the plugins) | ls (to see all the plugins) | ||
==Step 3: Install check_nwc_health Plugin in the Probe Machine== | ==Step 3: Install check_nwc_health Plugin in the Probe Machine to check Network Devices (Routers, Switches and Firewall etc)== | ||
wget https://labs.consol.de/assets/downloads/nagios/check_nwc_health-10.0.0.2.tar.gz | wget https://labs.consol.de/assets/downloads/nagios/check_nwc_health-10.0.0.2.tar.gz | ||
| Line 43: | Line 43: | ||
cd /usr/local/nagios/libexec/ | cd /usr/local/nagios/libexec/ | ||
'''Note: while running the check_nwc_health plugin some files will be missing you have to download those files''' | '''Note: while running the check_nwc_health plugin some perl files will be missing you have to download those files''' | ||
14.98.74.34 is a IP address of a Network device | |||
./check_nwc_health --hostname 14.98.74.34 --community public --mode hardware-health | ./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 | After running this command if error comes can’t locate and *.pm file download the file using | ||
| Line 51: | Line 52: | ||
yum install perl-File-Slurp (if error comes can’t locate File/Slurp.pm file) | 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) | 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 | ./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) | yum install perl-JSON-XS (If error comes can’t locate JSON/XS.pm file) | ||
Latest revision as of 04:08, 3 December 2022
Building Probe Machine Documentation
STEP 1: Install Mod-gearman in the Probe Machine and Configure[edit]
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[edit]
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 to check Network Devices (Routers, Switches and Firewall etc)[edit]
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 perl files will be missing you have to download those files
14.98.74.34 is a IP address of a Network device ./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)