Page 1 of 1

LogScanner Stopped Emailing Me

Posted: 18 Mar 2013, 20:06
by HostBob
LogScanner was emailing me every hour and I like to look over what it reports, but it was too many emails, so I edited the config file and set the option to "daily".

Since then I have not received a single email from it.

Is this common?

Re: LogScanner Stopped Emailing Me

Posted: 18 Mar 2013, 20:07
by HostBob
PS. I made the change something like 3 days ago. I know when set to daily it's meant to email once per day at midnight if there's anything to report. And there always is.

Re: LogScanner Stopped Emailing Me

Posted: 18 Mar 2013, 20:22
by sawbuck
If you run it manually do you receive the report?

/usr/sbin/csf --logrun

Re: LogScanner Stopped Emailing Me

Posted: 18 Mar 2013, 20:33
by HostBob
Ah good question. I ran it and it ran and completed so quick I thought something must be up with it... then an email landed prontissimo with lines from 16th March onward.

So I reckon it's stopped running automatically.

Unsure where to check next. Should there be a cron task present that perhaps isn't? or?

Thank you!

Re: LogScanner Stopped Emailing Me

Posted: 18 Mar 2013, 22:50
by sawbuck
Logic would dictate a cron job however I don't see an entry for it. Could be running off of LFD. Docs are not specific that I can see.

Have only run it in "manual" since the beginning every 4 hours in the root cron.
0 */4 * * * /usr/sbin/csf --logrun /dev/null 2>&1

Re: LogScanner Stopped Emailing Me

Posted: 18 Mar 2013, 22:59
by HostBob
Thanks sb.

On your cron command line - what does the /dev/null 2>&1 bit do?

Seems a shame I have to add that to my cron jobs when it's meant to run automatically and did so no problem until I switched it to daily instead of hourly.

Re: LogScanner Stopped Emailing Me

Posted: 18 Mar 2013, 23:43
by sawbuck
Just suppresses console output if I recall correctly.

Could be that Jonathan or Sarah will weigh in here at some point and clarify the cron aspect.

Re: LogScanner Stopped Emailing Me

Posted: 19 Mar 2013, 08:37
by HostBob
Well oddly this AM I check my emails and there is an email from LogScanner from 00:00 last night. Perhaps running it manually that once kick started it again.

Thanks for your help SB