CNxjahDoKA/maxresdefault.jpg' alt='Install Nagios In Ubuntu Server Desktop' title='Install Nagios In Ubuntu Server Desktop' />Server World Build Network Server.Ubuntu unsupported input b n t u merupakan salah satu distribusi Linux yang berbasiskan Debian dan didistribusikan sebagai perangkat lunak bebas.CXD210 5day course designed keeping in mind the current trends targeting creation of foundational knowledge of XenApp or XenDesktop experience.Install Nagios In Ubuntu Server Desktop' title='Install Nagios In Ubuntu Server Desktop' />How to Install and Configure Nagios Core 4.Cent. OS 7 RHEL 7.Nagios Core is free open source monitoring tool or software which can monitor the resources like servers, network equipment like firewall, network switches and printers etc.Nagios core also provides alerting services, using which nagios informs administrators about issue that has occurred then trigger alerts again when the issue has been resolved.Nagios provides information like CPU utilization, Disk utilization, Memory utilization also has support for a number of networking protocols like SMTP, HTTP, POP3, SNMP, ICMP, FTP, SSH etc.Nagios shows all the information regarding all the servers on a single screen using its web interface.Recently, Nagios core released 4.In this tutorial, we are going to install configure the latest version of Nagios server on Cent.OS 7 RHEL 7 then will add a windows machine for monitoring.So lets start with installation.Step 1 Installing essential packages.We need to install some essential packages like apache, php packages required for building the source packages, use below command to install these pakagesrootlinuxtechi yum install httpd php gcc glibc glibc comman gd gd devel make net snmp unzip y.Step 2 Downloading and extracting the Nagios packages.Next thing to do is to download extract the nagios its plugins files.The download links are mentioned belowrootlinuxtechi wget https sourceforge.To extract the packages, run following commandsrootlinuxtechi tar zxvf nagios 4.Step 3 Create user and group for Nagios.Next step is to create a user named nagios a group named nagcmd for running nagios,rootlinuxtechi useradd nagios.Once the user group has been added, we will now add the user nagios apache user to the created group i.G nagcmd nagios. rootlinuxtechi usermod G nagcmd apache.Step 4 Installing Nagios core.We are now ready to install the nagios on our server, so go to the folder with extracted nagios core files compile the extracted filesrootlinuxtechi cd nagios 4.Next we will install the compiled nagios package by running,rootlinuxtechi nagios 4.After running these, we need to install init scripts, command mode to make nagios work from CLI also need to install some sample Nagios filesrootlinuxtechi nagios 4.Step 5 Configuring Nagios Core Web Interface.We will now install the web interface for the nagios, as we will be using web interface for monitoring the resources of the client systems.To install web interface, runrootlinuxtechi nagios 4.Web interface will be installed with a default user by the name nagiosadmin but there will be no default password for the user.We will create default password for user by issuing the following command,rootlinuxtechi nagios 4.Re type new password.Adding password for user nagiosadmin.Step 6 Configuring email alerts.Though this is an optional step but consider doing it.By configuring an email to receive alerts on nagios, you will remain informed of all the server activities 2.To configure an email, openrootlinuxtechi vi usrlocalnagiosetcobjectscontacts.Next, restart apache server for changes to take effect.Step 7 Installing the Nagios Plugins.We have now completed installation for nagios core but we need to install plugins as without them we cant monitor the resources.So open the directory with nagios plugin files then we will compile install the pluginsrootlinuxtechi cd nagios plugins 2.Installation of nagios plugins is also complete.Step 7 Verify Nagios files.Last step is now to verify Nagios configuration file against a sample configuration filerootlinuxtechi usrlocalnagiosbinnagios v usrlocalnagiosetcnagios.Output will be something like below.This will ensure that all the settings made to nagios configuration file are correct if there is any issue with file, it will report that as well.After making sure that config file is error less, we will restart the nagios apache service to implement the changes.Also make sure that these services restart after a reboot,rootlinuxtechi systemctl enable nagios.Note In Case OS firewall in enabled on your Nagios server then allow 8.Step 8 Logging into Nagios Web interface.Now to check the status of the services, login to the nagios web interface by using the ip address of the nagios server followed by nagioshttp IPAddressNagiosServernagios.You will now be asked to provide the credentials, Use nagiosadmin as user name and password that we set in above steps.Once authenticated we can access the home page of nagios server.Below mentioned are the screenshots of various pages available on the interface.But as you can see Nagios is only showing services that are from Localhost i.We will now add a windows machine to be monitored by Nagios server.Adding a Windows host to Nagios Monitoring Server.We will firstly setup the client machine then will make changes to nagios server.For adding a windows host for monitoring on Nagios, we will need a software called NSClient.We can download it from https sourceforge.Hit Next on the first screen, once the installation starts.Now, accept the license agreement hit Next3 On the next screen, click on Typical4 Leave the following screen as it is hit Next5 Here on this screen, enter the IP address of Nagios server for us its 1.Next6 Click on Install wait for the installation to complete.Once its complete, hit FinishChanges on Nagios server. Kristen Wiig Weekend Update Bjork Army . Once the settings on the client side are complete, we need to make changes to configuration file of nagios.Open the file usrlocalnagiosetcnagios.Uncomment the following linecfgfileusrlocalnagiosetcobjectswindows.Save file and exit.Next open the file usrlocalnagiosetcobjectswindows.This file contains a host definition which can be used as a reference to create the host definition for our window client machine.Edit the hostname IP address to match your own windows machine, below the host definition are some Service Definitions, here we can add more services definition.Make sure that hostname is changed to your windows client name in all the services.Once done making changes, save file exit.Now restart your nagios server check if the windows host has been added or not to nagios for monitoring, by browsing to HOSTS under current status.Our host has been successfully added to nagios for monitoring.Similarly we can add more servers in nagios for monitoring once any service is affected, nagios will show the status on web console will also send an alert notification to email the address mentioned in contacts.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
October 2017
Categories |