Use cases
Nagios can be effectively used for network monitoring at ISPs, in government, health care, manufacturing, banking and finDnFe, WeOeFRPPXnLFDWLRnV, eWF.
As an example of getting Nagios to monitor a system, let’s install it in an lpenSrSb sirtual Machine. We can use sMware Workstation, Player or any other product to create the sM. Install lpenSrSb 12.2 in it. When that's done, install some pre- requisite packages using the wypper command- line package manager, with the following commands: zypper install kernel-source make gcc gcc-c++ zypper install rrdtool php5 php5-gd php5-zlib apache2-mod_php5 perl-pkjm net-snmp-P2bit nmap ncpfs libwavpack1 apache2
aownload Nagios Core into the sM, from www.nagios. org/download/. Log in as root, create a user and groups for Nagios, and change the user password: @ /usr/sbin/useradd -m nagios @ passwd nagios Changing password for nagios. kew massword: massword changed. @ groupadd nagcmd @ groupadd nagios
Add the nagios user to the nagcmd and nagios groups, as follows:
@ usermod -d nagcmd nagios
(xWUDFW Whe 1DgLRV CRUe WDU fiOe; cd to the extracted folder, and run the following command: # ./cRnfigure -with-cRPPanG-grRuS nagcPG @ make all @@ff successful, ends with an “bnjoy!” message.
Install init nagios/etc:
VFULSWV, DnG VDPSOe FRnfig fiOeV Ln /usr/local/ @ sudo make install-init /usr/bin/install -c -m 755 -d -o root -g root /etc/rc.d /usr/bin/install -c -m 755 -o root -g root daemon-init /etc/rc.d/ nagios *** fnit script installed *** # PaNe install-cRnfig
,nVWDOO DnG FRnfigXUe SeUPLVVLRnV Rn Whe GLUeFWRUy: