Completing the module AWSTATS

awstats

(Stéphane de Labrusse) #21

did by cron.weekly IIRC, do you have something in /var/lib/nethserver/awstats


(Stéphane de Labrusse) #22

what version do you have ?

# rpm -qa | grep awstats
awstats-7.7-1.el7.noarch
nethserver-awstats-0.1.11-1.ns7.sdl.noarch

(Arnaud) #23

Yes:
# ls /var/lib/nethserver/awstats
2018-11-18
and inside this folder are the pdf-reports present.

My system seems to bee uptodate.
# rpm -qa | grep awstats
nethserver-awstats-0.1.11-1.ns7.sdl.noarch
awstats-7.7-1.el7.noarch

I’ll have a look into the cron files.


(Stéphane de Labrusse) #24

I have the emails but of course i have the mail server stack installed


If you sent an email locally to root@SystemName.DomainName, can you receive it ?


(Arnaud) #25

No. But I can receive emails for admin@domain.tld. This is the way used for the notifications about possible updates.


(Stéphane de Labrusse) #26

admin is an optional user, that I am responsible for giving it back to nethserver. It seems that the normal way is to use root.


(Stéphane de Labrusse) #27

can you look in maillog what was occurring sunday morning 2:01 am


(Stéphane de Labrusse) #28
[root@ns7loc15 ~]# mail root@ns7loc15.nethservertest.org
Subject: plop
hhjkfhdsfkhdskfhfdkjh
EOT

then

[root@ns7loc15 ~]# mail
Heirloom Mail version 12.5 7/5/10.  Type ? for help.
"/var/spool/mail/root": 3 messages 1 new
    1 root@nethservertest.  Thu Nov 15 02:00  29/1316  "Yum: Updates downloaded on ns7loc15.nethservertest.org"
    2 root@nethservertest.  Thu Nov 15 05:44  29/1316  "Yum: Updates downloaded on ns7loc15.nethservertest.org"
>N  3 root                  Mon Nov 19 22:14  18/690   "plop"

on a test machine without nethserver-mail (my main server gets it and also workable)


(Arnaud) #29

you are right, on the machine without nethserver-mail, the emails for root@host.domain.tld are into this folder.
I was not aware about it.

=> I will investigate to redirect them to “root@domain.tld” (necessary in my config in order to have them displayed).


(Stéphane de Labrusse) #30

in the root user's profile does it is not possible to redirect root’s email to any external account mailbox ?