-4

I ran less /var/log/messages and got the output

/var/log/messages: No such file or directory

How can I either find them or set up error handling? Is there an app that can notify me of errors?

I'm using Lubuntu 15.04.

I found how to receive email alerts of hardware problems. Please tell me if the script would still work.

2
  • 1
    A little more effort searching over the internet can be great. Commented Jul 10, 2015 at 14:39
  • 1
    I don't like your style of question. First part would be solved easily by Google and second part is not really a question, more an invitation to do your job. Commented Jul 10, 2015 at 20:25

3 Answers 3

5

Lubuntu dosen't use messages, it uses syslog. Do this instead:

$ less /var/log/syslog
0

As krt pointed out

the messages equivalent in Debian based systems is

$ less /var/log/syslog

and since 15.04 systemd is installed, so you can use journalctl to see the logs. Create directory /var/log/journal to get persistent logs.

1
  • How Can I install journalctl? Commented Jul 19, 2015 at 15:55
0

You can use rsyslogd & edit /etc/rsyslog.conf, & make any facility redirect to any file you want, check here!.

man syslog man rsyslogd

for more options

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.