CSCI345 - Linux System Administration
https://raw.githubusercontent.com/CSUChico-CSCI345/CSCI345-Course-Materials/main/assignments/lab4.md
Lab 4
Goals
- Setup a cron job
- Setup a service
- Answer questions about cron/systemctl
Setup CRON
Edit the crontab to append the current date to a file in the grader's home directory called date.txt every 5 mins.
Setup a service
Install Node Exporter [1], which will be good practice for getting Prometheus working in a future assignment.
Setup Node Exporter Service
Create a systemd service file for node exporter at /etc/systemd/system/node_exporter.service
Answer Questions about Cron/systemctl
Answer the following questions in the A4_README.md file on your GitHub branch.
- What is cron?
- What is systemctl?
- Why might you want to use cron over systemctl?
- When might you want not to use either?
- Why are both important if you are administrating a machine?
Submitting Assignment
So make sure you do the following:
For testing your VM:
- Submit the IP of your VM instance to https://inginious.csuchico.edu for the Lab 4 submission.
- The submission will only count for 50% of the assignment credit, so you won't see higher than a 50 on INGInious, the rest of the score comes from the questions
Commit these to your course GitHub repo on the assignment4 branch. * A4_README.md
Verify that you can see your files on GitHub for the repo under the *assignment4& branch. Also, make sure your branch is named correctly, or it will not be pulled for grading.
References
- https://prometheus.io/docs/guides/node-exporter/
Loading...