Posts

Showing posts from August, 2012

HOW TO INSTALL NAGIOS ON UBUNTU 12.04

Image
Monitoring plays an important role in running our systems smoothly. It is always better to diagnose the problems and take some measures as early as possible, rather than waiting for things to go worse. Nagios is a powerful monitoring system that enables organizations to identify and resolve IT infrastructure problems before they affect critical business processes. For a detailed information on Nagios you can visit the official documentation page here . I'll just cover the steps to install and get Nagios working on your Ubuntu box. First of all install Nagios on your Ubuntu box using the following command : $ sudo apt-get install -y nagios3 It will go through, and ask you about what mail server you want to use. You'll see something like this on your screen. Pick one as per your requirements. It will then ask you about the domain name you want to have email sent from. Again, fill that out based upon your needs. It will ask you what password you want to use - put

How To Find A File In Linux(Through The Shell)

In *nix family of operating systems, we can find a file easily with the help of  find  command. SYNTAX :  $ find {directory-name} -name {filename} To find a file in root directory : Sometimes, it happens that we don't have any clue about the location of the file we are trying to search. In such a case we  can search the entire system via the root directory (/) . For example, if we want to search for a file named demo.txt , but we don't know where it could probably be present, then we would do something like this : $ sudo find / -name 'demo.txt' NOTE : Sometimes  we may need special privileges to search for a particular file, so we'll use 'sudo' for that. To find a file in a specific directory : If we know the probable location of the file, but not sure about it, we can do this : $ sudo find /path/of/the/directory -name 'demo.txt'