Page 1 of 3 123 LastLast
Results 1 to 10 of 30

Thread: system messages missing

  1. #1

    Default system messages missing

    Hi,

    I read the messages from the system in the terminal. It comes daily a message or two from the cron jobs. Here is the problem: I miss the messages from the last two days. I can maybe have deleted them without knowing. The last message is from thursday, but when I double click on the mbox file in my home directory, it shows the last message, and the message is from today, so the two messages are somewhere.

    So my question is it a command to undelete messages in the terminal? Or is it possible to open the mbox file in some program so I can see the missing messages?

    It would be very nice to se those messages because something changed during the cron jobs, and I want to find out why.

    Dag R

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,394

    Default Re: system messages missing

    Quote Originally Posted by dagring View Post
    Hi,

    I read the messages from the system in the terminal.
    How? Which terminal?

    Messages from cron normally go to root's mailbox. To see what is there (as root of course):
    Code:
    mail
    Henk van Velden

  3. #3

    Default Re: system messages missing

    I look in a terminal window as user, and type "mail". Then the list of mails comes up. I have tried with root, but it says: no mail for root.

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,394

    Default Re: system messages missing

    Well, it depends of course on who's crontab it is. When this is about cron jobs run by a user, you are correct that the user must be able to see them by using the mail/mailx command.

    As you have seen the man page for mailx is quite huge and I assume not many people are using mail/mailx very often today (apart from what you are trying to do, inspecting local mails send by processes on the system).

    I am with you that when the mail is still in your mbox file, mail should present it.

    Hm, not much help from me I am afraid
    Henk van Velden

  5. #5
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,483
    Blog Entries
    2

    Default Re: system messages missing

    You might check your system log (journalctl) instead of your mailbox to verify reported events executed successfully(or not).

    No idea what might have happened to your missing mailbox messages, maybe "mailbox full" or something similar like free disk space?

    Also, your system messages are delivered only to your User mailbox and not root because IIRC that's the default configuration in an openSUSE install (but can be changed).

    HTH,
    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  6. #6

    Default Re: system messages missing

    Here is what I got from journalctl -S 2016-01-13

    Code:
    jan. 13 00:00:01 opensuse systemd[1]: Started Session 3 of user dagr.
    jan. 13 00:00:01 opensuse cron[4371]: pam_unix(crond:session): session opened for user dagr by (uid=0)
    jan. 13 00:00:01 opensuse CRON[4384]: (dagr) CMD (rsync -r -t -v --progress --delete -i -s /home/dagr/Musikk/ /arkiv/Musikk/ )
    jan. 13 00:00:01 opensuse systemd[1]: Starting Rotate log files...
    jan. 13 00:00:01 opensuse systemd[1]: Started Rotate log files.
    jan. 13 00:00:01 opensuse cron[1890]: sendmail: fatal: parameter inet_interfaces: no local interface found for ::1
    jan. 13 00:00:01 opensuse postfix/sendmail[4398]: fatal: parameter inet_interfaces: no local interface found for ::1
    jan. 13 00:00:02 opensuse CRON[4371]: (dagr) MAIL (mailed 143 bytes of output but got status 0x004b
    Can you make something of this report?

    Dag R

  7. #7
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,713
    Blog Entries
    1

    Default Re: system messages missing

    Check localhost (IPv6) configuration...
    Code:
    ip a
    Code:
    grep localhost /etc/hosts

  8. #8
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,713
    Blog Entries
    1

    Default Re: system messages missing

    Also postfix inet protocol/interface config perhaps...
    Code:
    grep inet /etc/postfix/main.cf

  9. #9

    Default Re: system messages missing

    Here is the output of ip a and grep localhosts /etc/hosts:

    Code:
    dagr@opensuse:~> ip a
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
        inet 127.0.0.1/8 scope host lo
           valid_lft forever preferred_lft forever
    2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
        link/ether 9c:5c:8e:89:6a:f0 brd ff:ff:ff:ff:ff:ff
        inet 192.168.1.9/24 brd 192.168.1.255 scope global dynamic enp2s0
           valid_lft 52001sec preferred_lft 52001sec
        inet6 fe80::f584:ec7:48eb:3175/64 scope link 
           valid_lft forever preferred_lft forever
    dagr@opensuse:~> grep localhost /etc/hosts
    127.0.0.1       localhost 
    ::1             localhost ipv6-localhost ipv6-loopback

  10. #10
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,713
    Blog Entries
    1

    Default Re: system messages missing

    Quote Originally Posted by dagring View Post
    Here is the output of ip a and grep localhosts /etc/hosts:

    Code:
    dagr@opensuse:~> ip a
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
        inet 127.0.0.1/8 scope host lo
           valid_lft forever preferred_lft forever
    The localhost has no IPv6 address, so that would explain the journalctl output. I assume it's disabled in /etc/sysctl.d/99-sysctl.conf?

    And what about inet config in /etc/postfix/main.cf?

Page 1 of 3 123 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •