Monday, November 28, 2011

How To Configure Nagios Monitoring Tool In Linux


How To Configure Nagios Monitoring Tool In CentOs
·       Why We Use nagios
We run Nagios to monitor roughly 35 servers and several hundred services in our environment. We even use it to monitor about 20 websites we host and notify us when SSL certificates need to be renewed. Nagios is a very robust and customizable solution, it's not the easiest thing in the world to configure, but well worth the effort. I may do a video to go a long with this article at some point.
Disable selinux
  • # setenforce 0
Install required packages
  • # yum install httpd gcc glibc glibc-common gd gd-devel php
Create Nagios User & Group
  • # useradd -m nagios
  • # groupadd nagcmd
Add nagios user and apache user to nagios group
  • # usermod -a -G nagcmd nagios
  • # usermod -a -G nagcmd apache
Create Directory for nagios download
  • # mkdir /etc/downloads
  • # cd /etc/downloads
Download Nagios and Plugins files
Extract files
  • # tar xzf nagios-3.2.3.tar.gz
  • # tar xzf nagios-plugins-1.4.15.tar.gz
Configure/Compile
  • # cd /etc/downloads/nagios-3.2.3
  • # ./configure --with-command-group=nagcmd
  • # make all
  • # make install
  • # make install-init
  • # make install-config
  • # make install-commandmode
  • # make install-webconf
Create Web Interface User account
  • # htpasswd -c /usr/local/nagios/etc/htpasswd.users admin
Restart Apache:
  • # service httpd restart
Install Nagios Plugins
  • # cd /etc/downloads/nagios-plugins-1.4.15.tar.gz
Configure/Compile
  • # ./configure --with-nagios-user=nagios --with-nagios-group=nagios
  • # make
  • # make install
Enable Nagios to start at system startup
  • # chkconfig --add nagios
  • # chkconfig nagios on
  • # chkconfig httpd on
Start Nagios service
  • # service nagios start
How To Open Nagios After Successfully Installing.

1 comment:

Renew k8s certificates

Check If certificate expires: amikum@~:03:06:54(⎈ |local-cluster:default):sudo kubeadm certs check-expiration CERTIFICATE                EXP...