Atas permintaan seorang rakan. ini cara nak install nagios dalam ubuntu
root@nmc-desktop:~/software# more install-nagios
724 apt-get install php5-gd
725 apt-get install gcc
726 apt-get install make
727 useradd -m nagios
728 sudo pass nagios
730 passwd nagios
731 groupadd nagios
732 usermod -G nagios nagios
733 groupadd nagcmd
734 usermod -a -G nagcmd nagios
735 usermod -a -G nagcmd www-data
737 wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.3.tar.gz
738 wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.15.tar.gz
739 ls
740 tar xvzf nagios-3.2.3.tar.gz
741 cd nagios-3.2.3
742 ./configure -with-command-group=nagcmd
743 make all
744 make install
745 make install-init
746 make install-config
747 make install-commandmode
748 nano /usr/local/nagios/etc/objects/contacts.cfg *edit email@anda.com
749 make install-webconf
750 htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
751 /etc/init.d/apache2 reload
752 cd ..
753 tar xvzf nagios-plugins-1.4.15.tar.gz
754 cd nagios-plugins-1.4.15
755 ./configure -with-nagios-user=nagios -with-nagios-group=nagios
756 make
757 make install
758 ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios
759 /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg *kalau xde error blh la start
760 /etc/init.d/nagios start
761 history
root@nmc-desktop:~/nagios-plugins-1.4.15#
Tiada ulasan:
Catat Ulasan