Hello,
You want nagios documentation follwo below links.
http://library.nagios.com/ library/products/nagioscore/ manuals/
I am configured nagios in centos.
nagios steps as below.
Before Installation check the Prerequisites.
like this
#rpm -qa | grep httpd
If the prerequisite not installed ..use the following steps to install.
#yum install httpd php
#yum install gcc glibc glibc-common
#yum install gd gd-devel
Once you installed then follow next steps
Add Nagios user
#useradd -m nagios
#passwd nagios
Now add Group,Add both the nagios user and the apache user to this group.
#groupadd nagcmd
#groupadd nagcmd
#usermod -a -G nagcmd nagios
#usermod -a -G nagcmd apache
1) Download latest nagios stable release version.
Suppose you downloaded both packages under /usr/local/src dir
#cd /usr/local/src
Now Extract nagios package
#tar -xvzf nagios-3.2.0.tar.gz
#cd nagios-3.2.0
Now Run this command to script...
#./configure --with-command-group=nagcmd
Compile the Nagios source code.
#make all
Install binaries, init script, sample config files and set permissions on
the external command directory
#make install
#make install-init
#make install-config
#make install-commandmode
Now add you email id in configuration
#vi /usr/local/nagios/etc/objects/
contacts.cfg
on line number 35 you found like this
email nagios@localhost ; <<**** * CHANGE THIS TO YOUR EMAIL ADDRESS ******
Add your mail id..on which you want the alerts.
Save the file & quit.
Now configure web interface
cd /usr/local/src
#tar -xvzf nagios-plugins-1.4.14.tar.gz
#cd nagios-plugins-1.4.14
#./configure --with-nagios-user=nagios --with-nagios-group=nagios
#make
#make install
#chkconfig nagios on
Verify the Nagios configuration files.
#/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios. cfg
if there are no errors, start Nagios.
#service nagios start
Now login on web interface.
http://your-machine-ip/nagios/
Note:-- On Red Hat machines you find message like this------------
configure: See
http://nagiosplugins.org/faq/ compile/configure_appears_to_ hang if this next
part takes a long time
checking for redhat spopen problem...
To solve this run the following command.
#./configure --with-nagios-user=nagios --with-nagios-group=nagios
--enable-redhat-pthread- workaround
Try and tell me its working or not .
Or any other method tell me.
You want nagios documentation follwo below links.
http://library.nagios.com/
I am configured nagios in centos.
nagios steps as below.
Before Installation check the Prerequisites.
like this
#rpm -qa | grep httpd
If the prerequisite not installed ..use the following steps to install.
#yum install httpd php
#yum install gcc glibc glibc-common
#yum install gd gd-devel
Once you installed then follow next steps
Add Nagios user
#useradd -m nagios
#passwd nagios
Now add Group,Add both the nagios user and the apache user to this group.
#groupadd nagcmd
#groupadd nagcmd
#usermod -a -G nagcmd nagios
#usermod -a -G nagcmd apache
1) Download latest nagios stable release version.
Suppose you downloaded both packages under /usr/local/src dir
#cd /usr/local/src
Now Extract nagios package
#tar -xvzf nagios-3.2.0.tar.gz
#cd nagios-3.2.0
Now Run this command to script...
#./configure --with-command-group=nagcmd
Compile the Nagios source code.
#make all
Install binaries, init script, sample config files and set permissions on
the external command directory
#make install
#make install-init
#make install-config
#make install-commandmode
Now add you email id in configuration
#vi /usr/local/nagios/etc/objects/
on line number 35 you found like this
email nagios@localhost ; <<**** * CHANGE THIS TO YOUR EMAIL ADDRESS ******
Add your mail id..on which you want the alerts.
Save the file & quit.
Now configure web interface
cd /usr/local/src
#tar -xvzf nagios-plugins-1.4.14.tar.gz
#cd nagios-plugins-1.4.14
#./configure --with-nagios-user=nagios --with-nagios-group=nagios
#make
#make install
#chkconfig nagios on
Verify the Nagios configuration files.
#/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.
if there are no errors, start Nagios.
#service nagios start
Now login on web interface.
http://your-machine-ip/nagios/
Note:-- On Red Hat machines you find message like this------------
configure: See
http://nagiosplugins.org/faq/
part takes a long time
checking for redhat spopen problem...
To solve this run the following command.
#./configure --with-nagios-user=nagios --with-nagios-group=nagios
--enable-redhat-pthread-
Try and tell me its working or not .
Or any other method tell me.
No comments:
Post a Comment