Nagios centos 6.5: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
''INFO: Nagios3 is not included in base centos repositories, you need to install rpmforge repository'' | ''INFO: Nagios3 is not included in base centos repositories, you need to install rpmforge repository'' | ||
'' | |||
'''Installation using rpmforge:''' | |||
Install RPM forge for centos 6 (http://wiki.centos.org/AdditionalResources/Repositories/RPMForge#) | Install RPM forge for centos 6 (http://wiki.centos.org/AdditionalResources/Repositories/RPMForge#) | ||
For x86_64: | For x86_64: | ||
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm | wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm | ||
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt | |||
rpm -i rpmforge-release-0.5.3-1.el6.rf.*.rpm | |||
For i686: | For i686: | ||
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm | wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm | ||
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt | rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt | ||
rpm -i rpmforge-release-0.5.3-1.el6.rf.*.rpm | rpm -i rpmforge-release-0.5.3-1.el6.rf.*.rpm | ||
Install nagios plugins: | Install nagios and plugins: | ||
yum install nagios | yum install nagios | ||
yum install nagios-plugins | yum install nagios-plugins | ||
Change nagios configuration (add line) | |||
vim /etc/nagios/nagios.cfg | vim /etc/nagios/nagios.cfg | ||
cfg_file=/etc/nagios/objects/vm.cfg | cfg_file=/etc/nagios/objects/vm.cfg | ||
Line 27: | Line 30: | ||
chown apache /etc/nagios/objects/vm.cfg | chown apache /etc/nagios/objects/vm.cfg | ||
vim /etc/sudoers | vim /etc/sudoers and add line after root.. line: | ||
apache ALL=(nagios) NOPASSWD: ALL | apache ALL=(nagios) NOPASSWD: ALL | ||
chown -R nagios:nagios /var/nagios/spool/checkresults | chown -R nagios:nagios /var/nagios/spool/checkresults |
Latest revision as of 12:30, 2 November 2014
INFO: Nagios3 is not included in base centos repositories, you need to install rpmforge repository
Installation using rpmforge:
Install RPM forge for centos 6 (http://wiki.centos.org/AdditionalResources/Repositories/RPMForge#)
For x86_64:
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt rpm -i rpmforge-release-0.5.3-1.el6.rf.*.rpm
For i686:
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt rpm -i rpmforge-release-0.5.3-1.el6.rf.*.rpm
Install nagios and plugins:
yum install nagios yum install nagios-plugins
Change nagios configuration (add line)
vim /etc/nagios/nagios.cfg
cfg_file=/etc/nagios/objects/vm.cfg
Change privileges for nagios and voipmonitor
touch /etc/nagios/objects/vm.cfg chown apache /etc/nagios/objects/vm.cfg
vim /etc/sudoers and add line after root.. line:
apache ALL=(nagios) NOPASSWD: ALL
chown -R nagios:nagios /var/nagios/spool/checkresults