To install nagios, follow step below:
- Install dependencies
- Create nagios user and group
- Make folder to save nagios installation file and log file
- Download nagios
- Extract the source code
- Configure nagios
- Compile
- Install nagios core
- Install init script
- Install command line mode
- Install sample nagios file
- Open contact config file
- Search for email and change email alert destination to your email
- Install nagios web interface
- Change htpassword for nagiosadmin and remember this to login into nagios web
- Restart apache daemon
- Start nagios service
- Access your nagios web interface with username nagiosadmin and the password from step 15
yum install -y httpd php gcc glibc glibc-common gd gd-devel make net-snmp
useradd nagios groupadd nagcmd usermod -G nagcmd nagios usermod -G nagcmd apache
mkdir nagios
wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-4.0.8.tar.gz
tar -xvf nagios-4.0.8.tar.gz
./configure --with-command-group=nagcmd >& /root/nagios/nagios-log/configure.log
make all >& /root/nagios/makeall.log
make install >& /root/nagios/nagios-log/makeinstall.log
make install-init >& /root/nagios/nagios-log/makeinstallinit.log
make install-commandmode >& /root/nagios/nagios-log/makeinstallcommandmode.log
make install-config >& /root/nagios/nagios-log/makeinstallconfig.log
nano /usr/local/nagios/etc/objects/contacts.cfg
make install-webconf >& /root/nagios/nagios-log/makeinstallwebconfig.log
htpasswd -s -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
service httpd restart
service nagios start
http://ip-server/nagios
Source: http://www.tecmint.com/install-nagios-in-linux/
0 comments:
:)) :)] ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* : 8-} ~x( :-t b-( :-L x( =))
Post a Comment