Question: Process Monitoring Script Write a python script to check a list of services and determine if they are running or not. A report should be

 Process Monitoring Script Write a python script to check a list

Process Monitoring Script Write a python script to check a list of services and determine if they are running or not. A report should be generated detailing the information gathered. The list of services should be obtained via a text file. $ cat services .txt httpd, mysqld, vsftpd, sshd $ ./scriptl.py services.txt Service Report onThu Mar 7 9:20:59 PDT 2015 ____________________________ Checking the following services: [OK] httpd [DOWN] mysqld [DOWN] vsftpd [OK] sshd The services must be read from a text file specified as a command line argument. This file should contain comma separated values. a. https://www.tutorialspoint.com/python3/python_command_line_arguments.htm Ensure that the -'s match the length of the string above. a. Get the length of the "Service Report on hellip" string and use print('Tilde' * length). Make sure you have spaces after [Ok] and [DowN] so that everything lines up. Add terminal colors so OK is green and DOWN is red. a. http://misc flogisoft.com/bash/tip_colors_and_formatting

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!