Manages the deletion of users

Assignment Help Basic Computer Science
Reference no: EM13219076

Users

To do some basic administration work using common tools and configure/ install a package.

Managing Users

Answer the following questions.

1. Consult the man page for the useradd command. Write down the command you would enter to create a account for the staff member Steven Jobs. The user should have a home directory in /homeand should belong to the apple group.

2. Write a script called remove_user.sh which manages the deletion of users. The script is to have the following usage $ remove_user.sh [USER] The should tar up and compress the users directory and place it in a safe location - the file should be in the form of USER-DDMMYY where USER is the users, user name.

To delete the account use the standard utilities provided by the operating system.

Task 2:

To become familiar with monitoring platforms such as Nagios.

Nagios is a piece of open source software that allows administrators to monitor hosts and services in an modern computing environment.

Your job this assignment is to create a host that will perform monitoring of a number of University services/ hosts. You are do document every step of the process and provide evidence i.e. screen shots.

Step One

You are to install CentOS onto a virtual machine - you can download this from the AARNET mirror. You should use VMware.

You are not to install Apache or Postfix as part of the OS install process.

In addition to this you are to create a user and group called nagios.

Be sure to document the entire operating system install process.

Step Two

Ensure you have Apache and MySQL on your operating system. You may have to install these and configure them appropriately. You will also need a compiler.

In the case of Apache, nominate a directory on the file system to be the server root (and also the root). This server root should actually be the place where the Nagios CGI utilities are stored. You are to make this either /usr/local/sbin/nagios or /opt/local/sbin/ngaios. Refer to the Nagios literature to understand this better.

Within Apache be sure to provide full CGI execution to the CGI components housed in the nominated path.

Once you have done this, you should restrict access to this directory using Apache's Basic Auth facility. Simply create a .htaccess file with a valid password.

Be sure your web server and MySQL server has an appropriate start-up script so they starts automatically at boot.

Document the entire install, configure and testing process for this web server.

Step Three

Now you need to install Nagios and its Plugins - you are to do this by hand. Use the default options and be sure to refer to the Nagios Website for further information. Make sure the nagios user/group has full read/write/execute privilege to the Nagios hierarchy on the file system.

Document the entire process.

Step Four

Your job is now to set up Nagios - refer to the Nagios literature when doing this. Your configuration at a minimum must do the following:

a) define two time periods
a. One time period is to represent 24 x 7.
b. One time period is to represent 8 x 5 (9am - 5pm business days).
b) Define two contacts one called operations and server_admins.
a. server_admins should monitor hosts and services 24 x 7. They should receive all notifications for services but none for hosts. Notifications should be sent by email to server_admins@localhost.

b. operations should monitor hosts and services 9 - 5. They should receive all notifications for services and hosts to the email address

operations@localhost

c) Define a contact group for your two contacts - call it itadmins. You can use any other details.

d) Monitor the following hosts using ping:
a. wumpus.its.uow.edu.au
b. banshee.cs.uow.edu.au
c. wraith.its.uow.edu.au
d. vpn.uow.edu.au

All notifications should go to server_admins and operations during their support periods.

e) Monitor the following services
a. smtp.xxx.xx
b. www.xx.xx

Using Nagios's appropriate protocol tools. These services should be monitored 24 x 7 with notifications going to both server_admins and operations during their respective periods.

Please note you have some flexibility on options and other parameters, so make sensible choices.

Once you have edited the appropriate configuration files, start ngaios with the ngaios user created.

Document the entire install and configure process.

Demonstrate that your monitoring is working. You will need to ensure that Nagios's web configuration allows your authenticated web user to see all features.

Step Five

For both server_admins and operations you are to send a SMS. You will now need to make these aliases execute a script when a event is sent to them typically from ngaios.

Before you do this however you will need to sign up for a free account. You will be given a username and password. Once signed up you will be able to send SMS's to phones using HTTP strings. You get 25 free chances.

A SMS can be sent using a HTTP request like:

https://www.xxx.com/httpapi.
php?action=sendsms&user=dsaffi&password=33562891&&from=61
419333596&to
=61419333596&text=Hello%20world

Your job is to make it so that when a email is sent to the above email addresses an SMS containing the message from Nagios is sent off. You may have to simplify the message from Nagios in order to fit it in a SMS.

The SMS for both accounts can be delivered to the same number for illustration purposes. Implement a program in the language of your choice. Be sure to document the source and demonstrate the program.

Please note, if you are doing this from within the University you will need to consider the impacts of an authenticated proxy.

Step Six

Out of the Box nagios writes its events to log files which is great. For this part of the task you are to make it so that you use the

NDOUTILS package. To get this to work you will need to have MYSQL working.

Once you got this working ensure NAGIOS logs to the NDOUTILS Database. You will have to compile this module and install it accordingly.

Step Seven

The final step of this task is to create a web page with a simple CGI script which prints the status of the service(s) ie UP, DOWN etc.

To do this you are to use the data stored in the NDOUTILS database. The page should display all services and refresh after 30 seconds. You can be as creative as you like when representing the status. My feeling is a box for each service with a RED or GREEN indication for whether or not it is up or down.

This will need to be a CGI script written in the language of your choice e.g. PHP or Python. Remember you might have to install a run time for your language along with the libraries to talk to the database.

Reference no: EM13219076

Questions Cloud

What is the expected change in the quantity demanded : Assume your research staff used regression analysis to estimate the industry demand curve for Product X. Qx = 10,000 - 100 Px + 0.5 Y - 1000 r (3,000) (20) (0.3) (105) Where Qx is the quantity demanded of Product X, Px is the price of X, Y is inco..
Write english statement into a logical statement : Why is it important to change an English statement into a logical statement that follows the framework given by pseudo code and mathematical logic? Share examples and any further thoughts.
Calculate the price elasticity of demand for each group : Suppose that the eye doctor offers senior residents a discounted price for an eye exam. The demand function for senior residents is Qs = 50 - Ps, and the demand function for the general public is Qg = 60 - Pg. The marginal cost for an eye exam is ..
Contrast the adjustment process to the new equilibrium : The firms and workers in Alpha form expectations adaptively. The firms and workers in Omega form expectations rationally. Their otherwise identical economies are initially in equilibrium at the natural level of output with 10 percent inflation.
Manages the deletion of users : To do some basic administration work using common tools and configure/ install a package-Write down the command you would enter to create a account for the staff member Steven Jobs. The user should have a home directory in /homeand should belong to..
How linear program the problem of finding the maximum profit : Formulate as a linear program the problem of finding the maximum profit weekly production mix. Solve the linear program from Part A using the Simplex method.
Find the mean and the standard deviation of amount charged : The Downtown Parking Authority of Tampa, Florida, reported the following information for a sample of 250 customers on the number of hours cars are parked and the amount they are charged. Number of Hours Frequency Amount Charged 1 20 $ 3.00 2 38 6...
Use partial equilibrium anaalysis to predict the impact : what would be the advantage, if any, of using a general equilibrium analysis to answer this question? Illustrate diagrammatically.
Interactive-passive test of jurisdiction : According to the Wolf article, the courts have imposed an "interactive-passive" test of jurisdiction. Explain that distinction.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Assessing security risks for determining infrastructure

As part of project to assess security risks for determining infrastructure, you have found that other managers often have various ideas on severity and levels of risk.

  Research various types of hard drives available from online

Research the various types of hard drives available from online and/or local retail computer stores.Make a chart of several different brands or models of 1 TB desktop hard drives.

  Types of systems that benefit from dhcp

Consider the types of systems that benefit from DHCP reservations and/or from having manually-configured (static) IP addresses, including servers, networked printers, and other networked devices (e.g., network-connected HVAC controllers, IP camera..

  Determine present worth-future worth of soldering machine

The initial cost is in week 0 and the payments are in years 1-4. Determine the present worth, future worth, and annual worth for.

  Context-free languages is closed under the regular opeations

Show that the class of context-free languages is closed under the regular opeations, union, concatenation, and star.

  What is the numeric value of the string

What is the numeric value of the string for the following values of y? Note that the value of k is implied; e.g.for case i, k=3, etc. i: 101 ii: 10101 iii: 000111

  Converting binary numbers in decimal

Convert the given binary numbers in decimal: 101110; 1110101; and 110110100. Convert the given decimal numbers to bases indicated.

  Explaining kind of malicious software

What kind of malicious software is this? if username and password are valid return ALLOW_LOGIN else return DENY_LOGIN.

  How often should the extraction process be performed

How often should the extraction process be performed? Should it be static extract or an incremental extract?

  Evaluation process to seven-step acquisition model

Discuss in scholarly detail the acquisition evaluation process to the Seven-Step Acquisition Model.

  How to make components of system user-friendly

How do components of your computer system interact within system? What improvements or additions to your system do you think would benefit you or make system more user-friendly? Why?

  Whether each of these proposed

Determine whether each of these proposed definitions is a valid recursive definition of a function f from the set of nonnegative integers to the set of integers. if f is not well defined state reason; If f is well defined, find a formula for f(n) ..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd