Google Plus

How to install Nagios from repo Fedora/Centos/SL

Written by Mel Kham on . Posted in CentOS, Fedora, Linux tutorials

Nagios  is  one of  the most  powerful  open source  monitoring tool,  its  giving  the opportunity for monitoring  all OS and  devices ,   in our previous posts, we did show you how to install Nagios from source in Fedora and CentOS,  today we will see how to install  it directly  from yum in Fedora/Centos/SL(Scientific Linux) in easy steps.

Install Nagios

yum install nagios*
  • Now Start Nagios 
 /etc/init.d/nagios start  
  • Start nagios on boot

chkconfig nagios on Start httpd apache

/etc/init.d/httpd start 
Start apache on boot 
chkconfig httpd on
  • Make Nagios admin password  
htpasswd -c /etc/nagios/passwd nagiosadmin
  • check the nagios.conf  file  in the  apache conf.d directory
/etc/httpd/conf.d/nagios.conf
  • Disable SELinux:
# vim /etc/selinux/config 
SELINUX=disabled 
# reboot
  • Check   if  nagios  users and groups are added
# groupadd nagios 
# adduser nagios -g nagios 
# passwd nagios
# usermod -G nagios nagios 
# usermod -G apache,nagios apache
  • Check nagios  config  with
nagios -v /etc/nagios/nagios.cfg
Checking obsessive compulsive processor commands
... Checking misc settings... Total Warnings: 0 Total Errors:   0

 Now start nagios   and  report if worked for you.

http://ip/nagios  and login with  your  nagiosadmin user already created

For questions please refer to our Q/A forum at : http://ask.unixmen.com

Mel Kham

Founder of Unixmen, Living in Amsterdam. Am working in my free time to help people to understand the Opensource and to explain them in easy way how to make the fist steps to the the light. Working day and night with my Co-founder Zinovsky to keep this website live even with less resources.
  • Tom

    nagios does not start

    • Tom

      got it. please move Disable SELinux: to the beginning nagios starts now

  • Gerhard Lausser

    Why not “yum install omd”?
    http://omdistro.org is the whole nagios ecosystem in one single package, actively maintained. You install it and have immediately access to Thruk, Multisite, Nagvis, PNP, a Wiki…..
    You can also have multiple separate installations, called sites, on one computer. One for test, one production, one to test newer versions, whatever.
    And the best:
    omd stop
    omd config set CORE shinken
    omd start

  • Carolinardrgz

    It worked for me.  Thanks a lot.

Like us on Facebook

This week Top Posts

Write for us

Recent Comments

cave

|

it can be used to talk or chat through the internet,

it is using strong encryption.

but for example TOR is using some obfuscation because some countrys try to block all outgoing connections which can not be scanned with DPI

And the TOR Project is facing an arms race in obfuscation and encryption detection.

cave

|

You can friend someone if you give him your public Certificate.

both peers must friend each other.

i suggest to not enter a valid e-mail address. it is not necessary, but pgp needs a mail addy. something@something.so fits perfectly… :)

http://redd.it/18vsq5 <– faq, featurelist, todo, howto, useful links to manual wiki etc, …

you can connect to chatservers, which will give you access to chatlobby, where always some people are lurking.

#1 https://www.f2f-fr.net/w2c/en/
#2 http://retrosharechatserver.no-ip.org/w2c/en/

and in this rooms, you can find other people to talk and friend.

cave

|

http://redd.it/18vsq5
please have a look at this link. it is a FAQ, QuickTip, HowTo, etc etc etc …

If you want to make friends, please use the Chatservers.
#1 https://www.f2f-fr.net/w2c/en/
#2 http://retrosharechatserver.no-ip.org/w2c/en/

if you enter your certificate, the chatserver adds you as his friend and shows his certificate too add him to your friends.

After the connection to the chatservers is established, you can join a few chatrooms where the chatserver is lurking.

in this rooms are other people too help you and make first friends and get into the network.

add friends only with wisdom. if you friend some policeman, it will be problematic like in real life.

best is to add only people you trust in real life or trust from other communitys too. and not to add random unkown strangers.

If you have questions, ask them in the chatlobbys, there is always someone to answer them.

please read http://redd.it/18vsq5

or question me here :)

Ladi Oyekanmi

|

Could you please assist in step by step on how to install nagios on solaris

Adhraa

|

Greate tutorial :)

 
IDG Tech Network
Copyright © 2008-2013 Unixmen.com .
Maintained by Anblik .