Daily Stats not showing anything.

Welcome to MagicSpam Pro for cPanel WHM! A better spam protection in an easy to use cPanel WHM Module. Visit here for support, frequently asked questions, wishlists and discussion groups on this great module to make life with cPanel WHM that much simpler.

Moderators: wizard, magicspam

Post Reply
BertMagic
Posts: 13
Joined: Thu Oct 29, 2015 2:24 pm

Daily Stats not showing anything.

Post by BertMagic » Thu Oct 29, 2015 2:30 pm

Not sure whats going on but like the title says, daily stats are not pulling up anything but a blank page (after the header, the header does show). Monthly seems to be working fine. How do I fix daily stats?

Thanks

magicspam
Posts: 1092
Joined: Tue Oct 28, 2008 2:27 pm

Re: Daily Stats not showing anything.

Post by magicspam » Thu Oct 29, 2015 3:52 pm

Hello BertMagic,

Thank you for your post.

Could you please try resetting the stats for this month with the following command:

Code: Select all

mv /var/log/magicspam/.counter.dat.10 /var/log/magicspam/counter-oct-backup
This would move the statistics file for the month of October out of the way and allow new stats to collect.

Please let us know if that resolves your problem or if you have any further questions.

-- MagicSpam Support Team --

BertMagic
Posts: 13
Joined: Thu Oct 29, 2015 2:24 pm

Re: Daily Stats not showing anything.

Post by BertMagic » Thu Oct 29, 2015 3:58 pm

I did what you asked although I had to change one part of it from

mv /var/log/magicspam/.counter.dat.10 /var/log/magicspam/counter-oct-backup

to

mv /var/log/magicspam/.counter2.dat.10 /var/log/magicspam/counter-oct-backup

The stats reset and I am already seeing the change reflect on Dashboard and Monthly stats but daily is still blank.

BertMagic
Posts: 13
Joined: Thu Oct 29, 2015 2:24 pm

Re: Daily Stats not showing anything.

Post by BertMagic » Thu Oct 29, 2015 4:43 pm

Does Reply work or it just take that long for moderation?

BertMagic
Posts: 13
Joined: Thu Oct 29, 2015 2:24 pm

Re: Daily Stats not showing anything.

Post by BertMagic » Thu Oct 29, 2015 6:02 pm

You know what is also missing is the 5 TOP breakdown. Where it shows the 5 TOP of 6 different stats. All I see on Monthly is the day graph and still nothing on Daily.

magicspam
Posts: 1092
Joined: Tue Oct 28, 2008 2:27 pm

Re: Daily Stats not showing anything.

Post by magicspam » Fri Oct 30, 2015 9:57 am

Hello BertMagic,

Thank you for your updates and your patience.

We'd like to see the number of MagicSpam log files in use and their sizes.
Could you please run the following command and provide us the output:

Code: Select all

ls -lah /var/log/magicspam
We'd also like to know what your Log retention period is currently set at.
You may also try setting it back to the default 7 days to see if that resolves the issue.

ps. We do indeed have a manual moderation process, perhaps one day there'll be a MagicSpam for forums :)

-- MagicSpam Support Team --

BertMagic
Posts: 13
Joined: Thu Oct 29, 2015 2:24 pm

Re: Daily Stats not showing anything.

Post by BertMagic » Fri Oct 30, 2015 3:06 pm

Hi,

Here is the output you asked for...

total 18M
drwxr-xr-x 2 magicspam magicspam 4.0K Oct 29 15:55 ./
drwxr-xr-x. 13 root root 4.0K Oct 30 15:01 ../
-rw-r--r-- 1 magicspam root 749 Oct 30 15:02 .counter2.dat.10
-rw-r--r-- 1 magicspam root 749 Oct 29 15:55 counter-oct-backup
-rw-r--r-- 1 magicspam root 18M Oct 30 15:02 mslog


It is still on 7 days, I never changed it.

Ty :-)

magicspam
Posts: 1092
Joined: Tue Oct 28, 2008 2:27 pm

Re: Daily Stats not showing anything.

Post by magicspam » Fri Oct 30, 2015 4:56 pm

Hello BertMagic,

Thank you for that information.

It appears that your MagicSpam log file is not being rotated for some reason.

Could you please run the following two commands and provide us the output:

Code: Select all

cat /etc/cron.d/magicspam-update
and

Code: Select all

grep rotate_logs /var/log/syslog
-- MagicSpam Support Team --

BertMagic
Posts: 13
Joined: Thu Oct 29, 2015 2:24 pm

Re: Daily Stats not showing anything.

Post by BertMagic » Fri Oct 30, 2015 5:19 pm

Ok here is the output of the two commands.

#### First ####
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# rotate the logs
0 0 * * * magicspam /usr/share/magicspam/bin/rotate_logs /var/log/magicspam/mslog
0 0 * * * magicspam /usr/share/magicspam/bin/rotate-userlogs

# clean up old notification entries.
0 0 * * * root /usr/share/magicspam/bin/ms_purge_notifications

# clean up expired rate limiter entries
*/5 * * * * magicspam /usr/share/magicspam/bin/magicspam-rlmanager -c >/dev/null 2>&1

48 2,8,14,20 * * * magicspam /usr/share/magicspam/bin/magicspam-updater

#### Second ####
grep: /var/log/syslog: No such file or directory

Since this is empty here is the WHM/CPanel version
REDHAT Enterprise 7.1 x86_64 kvm – server WHM 11.52.0 (build 20)

BertMagic
Posts: 13
Joined: Thu Oct 29, 2015 2:24 pm

Re: Daily Stats not showing anything.

Post by BertMagic » Mon Nov 02, 2015 2:34 pm

So today I checked the daily stats after the weekend and they are showing again. I wonder if it started to work when the new month started on the 1st.

Hmm

Post Reply

Return to “MagicSpam Pro for WHM/cPanel”

Who is online

Users browsing this forum: No registered users and 1 guest