Jump to content

ISON BPO Nagios XI: Difference between revisions

From TetraWiki
Alok (talk | contribs)
Created page with "category:ISON BPO Nagios XI '''Building Probe Machine Documentation''' '''STEP 1: Install Mod-gearman in the Probe Machine and Configure''' rpm -Uvh https://repo.nagios...."
 
Alok (talk | contribs)
No edit summary
 
(16 intermediate revisions by the same user not shown)
Line 3: Line 3:
'''Building Probe Machine Documentation'''
'''Building Probe Machine Documentation'''


'''STEP 1: Install Mod-gearman in the Probe Machine and Configure'''
==STEP 1: Install Mod-gearman in the Probe Machine and Configure==
rpm -Uvh https://repo.nagios.com/nagios/7/nagios-repo-7-4.el7.noarch.rpm
 
yum update
'''Note: Run this command as a Root User'''
wget https://assets.nagios.com/downloads/nagiosxi/scripts/ModGearmanInstall.sh  
 
chmod +x ModGearmanInstall.sh  
rpm -Uvh https://repo.nagios.com/nagios/7/nagios-repo-7-4.el7.noarch.rpm
./ModGearmanInstall.sh --type=worker
yum update
{ Set the Nagios XI Server IP address is 172.105.253.143 }
wget https://assets.nagios.com/downloads/nagiosxi/scripts/ModGearmanInstall.sh  
vi /etc/mod_gearman/worker.conf  
chmod +x ModGearmanInstall.sh
{Add the hostgroups Location of probe machine}
./ModGearmanInstall.sh --type=worker
systemctl restart mod-gearman-worker
{ Set the Nagios XI Server IP address is 172.105.253.143 }
{Now go to the Nagios XI server and add the hostgroups of the probe machine which you created now}
vi /etc/mod_gearman/worker.conf  
vi /etc/mod_gearman/module.conf
{Add the hostgroups Location of probe machine}
systemctl restart gearmand
systemctl restart mod-gearman-worker
gearman_top {to see all the hostgroups}
{Now go to the Nagios XI server and add the hostgroups of the probe machine which you created now}
telnet 172.105.253.143 4730
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)
  (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==
cd /tmp
 
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.8.7.tar.gz
cd /tmp
tar xzf xi-5.8.7.tar.gz
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.8.7.tar.gz
cd nagiosxi/
tar xzf xi-5.8.7.tar.gz
./fullinstall
cd nagiosxi/
cd /usr/local/nagios/libexec/
./fullinstall
ls (to see all the plugins)
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)==


'''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
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
  tar xvfz check_nwc_health-10.0.0.2.tar.gz
   cd check_nwc_health-10.0.0.2
   cd check_nwc_health-10.0.0.2
Line 37: Line 42:
     make install
     make install
     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'''
./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
'''Note: while running the check_nwc_health plugin some perl files will be missing you have to download those files'''
yum install perl-JSON-XS (If error comes can’t locate JSON/XS.pm file)
  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)

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)