LogScanner Stopped Emailing Me

Post Reply
HostBob
Junior Member
Posts: 53
Joined: 20 Feb 2013, 18:34

LogScanner Stopped Emailing Me

Post 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?
HostBob
Junior Member
Posts: 53
Joined: 20 Feb 2013, 18:34

Re: LogScanner Stopped Emailing Me

Post 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.
sawbuck
Junior Member
Posts: 366
Joined: 10 Dec 2006, 16:20

Re: LogScanner Stopped Emailing Me

Post by sawbuck »

If you run it manually do you receive the report?

/usr/sbin/csf --logrun
HostBob
Junior Member
Posts: 53
Joined: 20 Feb 2013, 18:34

Re: LogScanner Stopped Emailing Me

Post 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!
sawbuck
Junior Member
Posts: 366
Joined: 10 Dec 2006, 16:20

Re: LogScanner Stopped Emailing Me

Post 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
HostBob
Junior Member
Posts: 53
Joined: 20 Feb 2013, 18:34

Re: LogScanner Stopped Emailing Me

Post 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.
sawbuck
Junior Member
Posts: 366
Joined: 10 Dec 2006, 16:20

Re: LogScanner Stopped Emailing Me

Post 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.
HostBob
Junior Member
Posts: 53
Joined: 20 Feb 2013, 18:34

Re: LogScanner Stopped Emailing Me

Post 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
Post Reply