Installing Nagios in CentOS 5

I’m familiar w/ Nagios… Ive installed it many times … then I have my new fresh server CentOS 5 again so

first when i run yum install nagios it sayd no package for nagios so
i try to google it then i found you need to install somehting rpm

what i did is

wget dag.wieers.com/rpm/packages/rpmf … f.i386.rpm

then

rpm -ivh dag.wieers.com/rpm/packages/rpmf … f.i386.rpm

so i run yum install nagios nagios-plugins nagios-plugins-nrpe nagios-devel this is what i got…

yum install nagios nagios-plugins nagios-plugins-nrpe nagios-devel
Loading “fastestmirror” plugin
Loading mirror speeds from cached hostfile

  • rpmforge: fr2.rpmfind.net
  • base: centosv2.centos.org
  • updates: centosq2.centos.org
  • addons: centosk2-msync-dvd.centos.org
  • extras: centosu-msync-dvd.centos.org
    Setting up Install Process
    Parsing package install arguments
    Resolving Dependencies
    –> Running transaction check
    —> Package nagios-plugins.i386 0:1.4.12-1.el4.rf set to be updated
    –> Processing Dependency: fping for package: nagios-plugins
    –> Processing Dependency: perl(Net::SNMP) for package: nagios-plugins
    —> Package nagios-plugins-nrpe.i386 0:2.5.2-1.el4.rf set to be updated
    –> Processing Dependency: libcrypto.so.4 for package: nagios-plugins-nrpe
    –> Processing Dependency: libssl.so.4 for package: nagios-plugins-nrpe
    —> Package nagios-devel.i386 0:2.12-1.el4.rf set to be updated
    —> Package nagios.i386 0:2.12-1.el4.rf set to be updated
    –> Processing Dependency: libttf.so.2 for package: nagios
    –> Running transaction check
    —> Package perl-Net-SNMP.noarch 0:5.2.0-1.2.el4.rf set to be updated
    –> Processing Dependency: perl(Digest::SHA1) for package: perl-Net-SNMP
    –> Processing Dependency: perl(Crypt::DES) for package: perl-Net-SNMP
    –> Processing Dependency: perl(Socket6) >= 0.19 for package: perl-Net-SNMP
    –> Processing Dependency: perl(Digest::HMAC) for package: perl-Net-SNMP
    —> Package openssl097a.i386 0:0.9.7a-9 set to be updated
    —> Package fping.i386 0:2.4-1.b2.2.el4.rf set to be updated
    —> Package nagios.i386 0:2.12-1.el4.rf set to be updated
    –> Processing Dependency: libttf.so.2 for package: nagios
    –> Running transaction check
    —> Package perl-Socket6.i386 0:0.20-1.el4.rf set to be updated
    —> Package perl-Crypt-DES.i386 0:2.05-3.2.el4.rf set to be updated
    —> Package perl-Digest-HMAC.noarch 0:1.01-15 set to be updated
    —> Package nagios.i386 0:2.12-1.el4.rf set to be updated
    –> Processing Dependency: libttf.so.2 for package: nagios
    —> Package perl-Digest-SHA1.i386 0:2.11-1.2.1 set to be updated
    –> Finished Dependency Resolution
    Error: Missing Dependency: libttf.so.2 is needed by package nagios

Error: Missing Dependency: libttf.so.2 is needed by package nagios

huh? what’s this? ive installed nagios many times but now what’s this?

then i update my yum in case need to be update…

yum update
Loading “fastestmirror” plugin
Loading mirror speeds from cached hostfile

  • rpmforge: fr2.rpmfind.net
  • base: centosv2.centos.org
  • updates: centosk2.centos.org
  • addons: centosk2-msync-dvd.centos.org
  • extras: centosk.centos.org
    Setting up Update Process
    Resolving Dependencies
    –> Running transaction check
    —> Package perl-DBI.i386 0:1.607-1.el4.rf set to be updated
    –> Processing Dependency: perl(RPC::PlServer) >= 0.2001 for package: perl-DBI
    –> Processing Dependency: perl(RPC::PlClient) >= 0.2000 for package: perl-DBI
    —> Package iso-codes.noarch 0:1.0a-1.el4.rf set to be updated
    –> Processing Dependency: libevent-1.1a.so.1 for package: nfs-utils
    —> Package pcsc-lite-ccid.i386 0:1.2.0-1.el4.rf set to be updated
    —> Package perl-BSD-Resource.i386 0:1.2901-1.el4.rf set to be updated
    —> Package libevent.i386 0:1.3b-1.el4.rf set to be updated
    —> Package liboil.i386 0:0.3.13-0.1.el4.rf set to be updated
    —> Package perl-DBD-mysql.i386 0:4.008-1.el4.rf set to be updated
    –> Processing Dependency: libssl.so.4 for package: perl-DBD-mysql
    –> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14) for package: perl-DBD-mysql
    –> Processing Dependency: libmysqlclient.so.14 for package: perl-DBD-mysql
    –> Processing Dependency: libcrypto.so.4 for package: perl-DBD-mysql
    —> Package python-elementtree.i386 0:1.2.6-7.el4.rf set to be updated
    –> Running transaction check
    –> Processing Dependency: libevent-1.1a.so.1 for package: nfs-utils
    —> Package perl-PlRPC.noarch 0:0.2020-1.el4.rf set to be updated
    –> Processing Dependency: perl(Net::Daemon) for package: perl-PlRPC
    –> Processing Dependency: perl(Net::Daemon::Log) for package: perl-PlRPC
    –> Processing Dependency: perl(Net::Daemon::Test) for package: perl-PlRPC
    —> Package openssl097a.i386 0:0.9.7a-9 set to be updated
    —> Package perl-DBD-mysql.i386 0:4.008-1.el4.rf set to be updated
    –> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14) for package: perl-DBD-mysql
    –> Processing Dependency: libmysqlclient.so.14 for package: perl-DBD-mysql
    –> Running transaction check
    —> Package perl-Net-Daemon.noarch 0:0.43-1.el4.rf set to be updated
    –> Processing Dependency: libevent-1.1a.so.1 for package: nfs-utils
    —> Package perl-DBD-mysql.i386 0:4.008-1.el4.rf set to be updated
    –> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14) for package: perl-DBD-mysql
    –> Processing Dependency: libmysqlclient.so.14 for package: perl-DBD-mysql
    –> Finished Dependency Resolution
    Error: Missing Dependency: libevent-1.1a.so.1 is needed by package nfs-utils
    Error: Missing Dependency: libmysqlclient.so.14 is needed by package perl-DBD-mysql
    Error: Missing Dependency: libmysqlclient.so.14(libmysqlclient_14) is needed by package perl-DBD-mysql

crap! what’s this again? i dont understand

then i try

yum search nagios |less

Loading “fastestmirror” plugin
Loading mirror speeds from cached hostfile

  • rpmforge: apt.sw.be
  • base: centosv2.centos.org
  • updates: centosk2.centos.org
  • addons: centosk2-msync-dvd.centos.org
  • extras: centosu-msync-dvd.centos.org
    nagios-devel.i386 : Header files, libraries and development documentation for nagios
    nagios-plugins-setuid.i386 : Host/service/network monitoring program plugins for Nagios requiring setuid
    nagios-nsca.i386 : Nagios Service Check Acceptor
    nagios.i386 : Open Source host, service and network monitoring program
    perl-Nagios-Plugin.noarch : Family of perl modules to streamline writing Nagios
    nagios.i386 : Open Source host, service and network monitoring program
    nagios-nrpe.i386 : Nagios Remote Plug-ins Execution daemon
    nagios-plugins-setuid.i386 : Host/service/network monitoring program plugins for Nagios requiring setuid
    nagios-plugins-nrpe.i386 : Nagios plug-in for NRPE
    nagios.i386 : Open Source host, service and network monitoring program
    perl-Nagios-Object.noarch : Nagios::object - Nagios object configuration parsing
    nagios-plugins.i386 : Host/service/network monitoring program plugins for Nagios
    nagios-plugins-setuid.i386 : Host/service/network monitoring program plugins for Nagios requiring setuid
    nagios-nrpe.i386 : Nagios Remote Plug-ins Execution daemon
    nagios-plugins.i386 : Host/service/network monitoring program plugins for Nagios
    nagios-nrpe.i386 : Nagios Remote Plug-ins Execution daemon
    nagios-plugins-nrpe.i386 : Nagios plug-in for NRPE
    nagios.i386 : Open Source host, service and network monitoring program
    nagios-plugins-nrpe.i386 : Nagios plug-in for NRPE
    nagios-devel.i386 : Header files, libraries and development documentation for nagios
    nagios-devel.i386 : Header files, libraries and development documentation for nagios
    rss4nagios.i386 : Authenticated RSS alerts for nagios
    nsc.i386 : Console monitor for Nagios
    nagios.i386 : Open Source host, service and network monitoring program
    nagios-plugins-nrpe.i386 : Nagios plug-in for NRPE
    nagios-devel.i386 : Header files, libraries and development documentation for nagios
    nagios-plugins.i386 : Host/service/network monitoring program plugins for Nagios
    nagios-plugins-setuid.i386 : Host/service/network monitoring program plugins for Nagios requiring setuid
    nagios.i386 : Open Source host, service and network monitoring program
    perl-Nagios-Plugin.noarch : Family of perl modules to streamline writing Nagios
    nagios-nsca.i386 : Nagios Service Check Acceptor
    perl-Nagios-Plugin.noarch : Family of perl modules to streamline writing Nagios
    nagios-plugins.i386 : Host/service/network monitoring program plugins for Nagios
    nagios.i386 : Open Source host, service and network monitoring program
    nagios-devel.i386 : Header files, libraries and development documentation for nagios
    nagios-nrpe.i386 : Nagios Remote Plug-ins Execution daemon
    rss4nagios.i386 : Authenticated RSS alerts for nagios
    nagios-plugins.i386 : Host/service/network monitoring program plugins for Nagios
    nagios-devel.i386 : Header files, libraries and development documentation for nagios
    nagios-plugins.i386 : Host/service/network monitoring program plugins for Nagios
    nagios-devel.i386 : Header files, libraries and development documentation for nagios
    nagios-devel.i386 : Header files, libraries and development documentation for nagios
    nagios-devel.i386 : Header files, libraries and development documentation for nagios
    nagios-nsca.i386 : Nagios Service Check Acceptor
    nagios.i386 : Open Source host, service and network monitoring program
    nagios.i386 : Open Source host, service and network monitoring program
    nagios-nrpe.i386 : Nagios Remote Plug-ins Execution daemon
    nagios-devel.i386 : Header files, libraries and development documentation for nagios
    nagios-devel.i386 : Header files, libraries and development documentation for nagios
    nagios.i386 : Open Source host, service and network monitoring program
    nagios-plugins-nrpe.i386 : Nagios plug-in for NRPE
    nagios-nsca.i386 : Nagios Service Check Acceptor
    nagios-devel.i386 : Header files, libraries and development documentation for nagios
    perl-Nagios-Plugin.noarch : Family of perl modules to streamline writing Nagios
    nagios.i386 : Open Source host, service and network monitoring program
    nagios-nrpe.i386 : Nagios Remote Plug-ins Execution daemon
    nagios-plugins.i386 : Host/service/network monitoring program plugins for Nagios
    nagios.i386 : Open Source host, service and network monitoring program
    nagios-plugins.i386 : Host/service/network monitoring program plugins for Nagios
    nagios.i386 : Open Source host, service and network monitoring program
    nagios.i386 : Open Source host, service and network monitoring program
    nagios-plugins-setuid.i386 : Host/service/network monitoring program plugins for Nagios requiring setuid
    nagios-devel.i386 : Header files, libraries and development documentation for nagios
    nagios-devel.i386 : Header files, libraries and development documentation for nagios
    nagios-plugins-nrpe.i386 : Nagios plug-in for NRPE
    nagios-devel.i386 : Header files, libraries and development documentation for nagios
    nagios-devel.i386 : Header files, libraries and development documentation for nagios
    nagios-nsca.i386 : Nagios Service Check Acceptor
    nsc.noarch : Console monitor for Nagios
    nagios.i386 : Open Source host, service and network monitoring program
    nagios-plugins.i386 : Host/service/network monitoring program plugins for Nagios
    nagios-plugins-setuid.i386 : Host/service/network monitoring program plugins for Nagios requiring setuid
    nagios.i386 : Open Source host, service and network monitoring program
    nagios-plugins.i386 : Host/service/network monitoring program plugins for Nagios

nagios is installed in my server?> how come? i didnt findit?

please help me guys on this… i appreciate all replies…

thx in advance!

Dar-C

Hi,
I too installed nagios many times but not this way. I installed it using tar balls.

FIrst, I have one doubt here.

You have downloaded RPM’s and installed those rpm’s using rpm -ivh.

then why did you do yum install again.
rpm -ivh will be enough for any installation.
Once you do rpm -ivh , you need not do yum again.

You can check the location where nagios is installed by giving 'whereis nagios’
probably, it will show you the location /usr/bin or /bin/

you check that once.

Regards,
512

thx for the fast reply… i dont know what happen but now its fix… now its up and running w/ ndoutils… thx for the reply 512

cheers!

Dar-C

I am running nagios in centos 5. Whenever I install nagios I usually avoid using yum or rpm and uses traball.