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?
LogScanner Stopped Emailing Me
Re: LogScanner Stopped Emailing Me
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
If you run it manually do you receive the report?
/usr/sbin/csf --logrun
/usr/sbin/csf --logrun
Re: LogScanner Stopped Emailing Me
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!
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
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
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
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.
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
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.
Could be that Jonathan or Sarah will weigh in here at some point and clarify the cron aspect.
Re: LogScanner Stopped Emailing Me
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
Thanks for your help SB