Nagios Probe Server install for Spectranet: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
Pre- Requisites | |||
== Pre- Requisites == | |||
yum install -y gcc glibc glibc-common make gettext automake wget openssl-devel net-snmp net-snmp-utils epel-release | yum install -y gcc glibc glibc-common make gettext automake wget openssl-devel net-snmp net-snmp-utils epel-release | ||
| Line 10: | Line 12: | ||
yum install nagios-plugins-all nrpe | yum install nagios-plugins-all nrpe | ||
yum install nagios-plugins-nrpe | yum install nagios-plugins-nrpe | ||
== For Nagios Core == | |||
for Gearman Information - https://labs.consol.de/nagios/mod-gearman/index.html | for Gearman Information - https://labs.consol.de/nagios/mod-gearman/index.html | ||
| Line 32: | Line 38: | ||
chkconfig --list | chkconfig --list | ||
chkconfig gearmand on | chkconfig gearmand on | ||
== For Nagios XI == | |||
rpm -Uvh https://repo.nagios.com/nagios/6/nagios-repo-6-4.el6.noarch.rpm | |||
yum update | |||
wget https://assets.nagios.com/downloads/nagiosxi/scripts/ModGearmanInstall.sh | |||
chmod +x ModGearmanInstall.sh | |||
./ModGearmanInstall.sh --type=worker | |||
/etc/init.d/mod-gearman-worker status | |||
ModGearman configuration directory: /etc/mod_gearman/ | |||
Log files: /var/log/mod_gearman/ | |||
ModGearman Worker: /etc/init.d/mod-gearman-worker | |||
Revision as of 10:24, 6 December 2019
Referance - sites.box293.com/nagios/guides/mod-gearman/workers/centos-6-5?tmpl=%2Fsystem%2Fapp%2Ftemplates%2Fprint%2F&showPrintDialog=1
Pre- Requisites
yum install -y gcc glibc glibc-common make gettext automake wget openssl-devel net-snmp net-snmp-utils epel-release yum install -y perl-Net-SNMP autoconf yum install nagios-plugins-all nrpe yum install nagios-plugins-nrpe
For Nagios Core
for Gearman Information - https://labs.consol.de/nagios/mod-gearman/index.html Download from http://www.mod-gearman.org/download/v2.1.2/rhel6/x86_64/
mkdir gearman cd gearman/ wget http://www.mod-gearman.org/download/v2.1.2/rhel6/x86_64/gearmand-0.33-2.rhel6.x86_64.rpm wget http://www.mod-gearman.org/download/v2.1.2/rhel6/x86_64/gearmand-devel-0.33-2.rhel6.x86_64.rpm wget http://www.mod-gearman.org/download/v2.1.2/rhel6/x86_64/gearmand-server-0.33-2.rhel6.x86_64.rpm wget http://www.mod-gearman.org/download/v2.1.2/rhel6/x86_64/mod_gearman2-2.1.2-1.rhel6.x86_64.rpm yum -y localinstall --nogpgcheck gearmand-0.33-2.rhel6.x86_64.rpm gearmand-devel-0.33-2.rhel6.x86_64.rpm gearmand-server-0.33-2.rhel6.x86_64.rpm mod_gearman2-2.1.2-1.rhel6.x86_64.rpm
Configuration -
vi /etc/mod_gearman2/worker.conf
Change localhost to Nagios XI Server IP
server=203.122.61.114:4730
/etc/init.d/gearmand status /etc/init.d/gearmand start chkconfig --list chkconfig gearmand on
For Nagios XI
rpm -Uvh https://repo.nagios.com/nagios/6/nagios-repo-6-4.el6.noarch.rpm yum update wget https://assets.nagios.com/downloads/nagiosxi/scripts/ModGearmanInstall.sh chmod +x ModGearmanInstall.sh ./ModGearmanInstall.sh --type=worker /etc/init.d/mod-gearman-worker status
ModGearman configuration directory: /etc/mod_gearman/
Log files: /var/log/mod_gearman/
ModGearman Worker: /etc/init.d/mod-gearman-worker