LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Stuck on my homework (https://www.linuxquestions.org/questions/linux-newbie-8/stuck-on-my-homework-4175577689/)

Crash2720 04-17-2016 10:46 PM

Stuck on my homework
 
I'm lost on homework, looking for some help. I've got three virtual machines to configure. One Ubuntu "Web" Server, one RedHat "Auth" Server, and another Redhat "Syslog" Server. There is a script for grading that we run on another virtual machine called "grading". Basically I've got 110 of 300 and am really stuck on everything else. Mainly the rsyslog. The question is:
"The web server and the auth server should both be sending their logs to the syslog server:
a. Configure rsyslog to use the template to log to
/var/log/rsyslog_cis235/<hostname>/rsyslog.log
b. The template lines are at the bottom of this documents
c. This configuration should go into the /etc/rsyslog.conf file on your syslog VM

I've set the hostname to syslog and configured the rsyslog.conf file on the "syslog" vm to have the template which he has included as:

# Rsyslog template lines
$template TmplAuth, "/var/log/rsyslog_cis235/%HOSTNAME%/rsyslog.log"
$template TmplMsg, "/var/log/rsyslog_cis235/%HOSTNAME%/rsyslog.log"
authpriv.* ?TmplAuth
*.info,mail.none,authpriv.none,cron.none ?TmplMsg

I set the correct hostnames, edited the rsyslog files yet still no further and I am thoroughly confused after trying a few different variations. Completely unsure as to how to get this working.

This is the output of my grading script:
http://imgur.com/PFdfd2c

and this is the output of the script code:
http://pastebin.com/WLFZKGv8

Thanks in advance

jpollard 04-18-2016 11:17 AM

Systemd no longer really supports rsyslog...

https://www.freedesktop.org/software...al-remote.html

And maybe this will help:
http://kacper.blog.redpill-linpro.com/archives/602

sundialsvcs 04-18-2016 07:59 PM

Also ... anytime you are "stuck on homework," please make it your business to let your instructor(s) be the first to know ... not the last!

Instructors need to know when students are "stuck," and what exactly they are "stuck" on, so that they can adjust future lectures and lab sessions (and office hours) to suit the needs of each particular group of students.

Although any homework assignment worthy of its hire is supposed to throw a realistic challenge at you, such that you scratch your head pretty damned hard, you need to know when to cry "uncle." Otherwise, the instructor is shooting in the dark. (And if you surmise that I am speaking from personal experience, you are correct.)

Crash2720 04-18-2016 08:11 PM

Absolutely, I agree, I plan on letting him know when I get in class tomorrow. It's difficult though because I'm usually one of the first ones done, so I'd imagine that if I'm struggling this badly with it, most others will be as well. Takes him a while to get around the class so I'd rather have a head start and get at least 75% of it done then have him go over the last few things and sort of explain what I was stuck on.

and I will post the rsyslog.conf file to pastie once I'm back home and have access to my VM.

sundialsvcs 04-19-2016 07:48 AM

Quote:

Originally Posted by Crash2720 (Post 5533072)
Absolutely, I agree, I plan on letting him know when I get in class tomorrow. It's difficult though because I'm usually one of the first ones done, so I'd imagine that if I'm struggling this badly with it, most others will be as well. Takes him a while to get around the class so I'd rather have a head start and get at least 75% of it done then have him go over the last few things and sort of explain what I was stuck on.

/me nods ... Back in the day (koff, koff), my experience was very much the same. Spend time trying to articulate exactly what has "stuck" you, and what you have tried, and so on. The more specific information you can provide the instructor, possibly a few minutes before class begins, the better s/he will know how (and, if ...) to bring up the matter in class. Student feedback, from an earnest and diligent student, is extremely valuable. Try to be prepared and to make it count. No, you are certainly not "the only one."


All times are GMT -5. The time now is 07:30 AM.