Page 1 of 2

Greyhole email statistics [RESOLVED]

Posted: Tue Apr 17, 2012 9:39 am
by modem7
Hello,

I need further clarification from this post: http://forums.amahi.org/viewtopic.php?f=13&t=3876

I attempted to change /etc/cron.daily to /usr/bin/greyhole --fsck --email-report --if-conf-changed --dont-walk-graveyard > /dev/null (thank you BigFoot for helping out here!)

but unfortunately it still doesn't send me a daily report, is there any way I can get it to do this?

Many thanks!

Re: Greyhole email statistics

Posted: Tue Apr 17, 2012 9:53 am
by ciscoh
Hello,

I need further clarification from this post: http://forums.amahi.org/viewtopic.php?f=13&t=3876

I attempted to change /etc/cron.daily to /usr/bin/greyhole --fsck --email-report --if-conf-changed --dont-walk-graveyard > /dev/null (thank you BigFoot for helping out here!)

but unfortunately it still doesn't send me a daily report, is there any way I can get it to do this?

Many thanks!
/etc/cron.daily is a folder that contains scripts to be executed daily . What was suggested was to copy the greyhole object in the /etc/cron.weekly folder, called greyhole, into the daily folder, so that it is executed daily instead

not sure what you did from looking above but it seems a little scary to me.

Re: Greyhole email statistics

Posted: Tue Apr 17, 2012 10:38 am
by modem7
Hello,

I need further clarification from this post: http://forums.amahi.org/viewtopic.php?f=13&t=3876

I attempted to change /etc/cron.daily to /usr/bin/greyhole --fsck --email-report --if-conf-changed --dont-walk-graveyard > /dev/null (thank you BigFoot for helping out here!)

but unfortunately it still doesn't send me a daily report, is there any way I can get it to do this?

Many thanks!
/etc/cron.daily is a folder that contains scripts to be executed daily . What was suggested was to copy the greyhole object in the /etc/cron.weekly folder, called greyhole, into the daily folder, so that it is executed daily instead

not sure what you did from looking above but it seems a little scary to me.
Only thing I changed from the weekly to the daily is "--email-report"

Re: Greyhole email statistics

Posted: Tue Apr 17, 2012 10:44 am
by ciscoh
Hello,

I need further clarification from this post: http://forums.amahi.org/viewtopic.php?f=13&t=3876

I attempted to change /etc/cron.daily to /usr/bin/greyhole --fsck --email-report --if-conf-changed --dont-walk-graveyard > /dev/null (thank you BigFoot for helping out here!)

but unfortunately it still doesn't send me a daily report, is there any way I can get it to do this?

Many thanks!
/etc/cron.daily is a folder that contains scripts to be executed daily . What was suggested was to copy the greyhole object in the /etc/cron.weekly folder, called greyhole, into the daily folder, so that it is executed daily instead

not sure what you did from looking above but it seems a little scary to me.
Only thing I changed from the weekly to the daily is "--email-report"

but you copied the "greyhole" file from the weekly to the daily folder right?

and then edited that copy?

Re: Greyhole email statistics

Posted: Tue Apr 17, 2012 10:48 am
by modem7
but you copied the "greyhole" file from the weekly to the daily folder right?

and then edited that copy?
Nope, I merely edited the copy that was in the daily folder (I'm assuming that's the midnight one)

Re: Greyhole email statistics

Posted: Tue Apr 17, 2012 10:50 am
by ciscoh
but you copied the "greyhole" file from the weekly to the daily folder right?

and then edited that copy?
Nope, I merely edited the copy that was in the daily folder (I'm assuming that's the midnight one)

ahhh....ok. i undertsand now

did you setup email on the server? did you look to see if the root account got the email?

Re: Greyhole email statistics

Posted: Tue Apr 17, 2012 10:52 am
by modem7
but you copied the "greyhole" file from the weekly to the daily folder right?

and then edited that copy?
Nope, I merely edited the copy that was in the daily folder (I'm assuming that's the midnight one)

ahhh....ok. i undertsand now

did you setup email on the server? did you look to see if the root account got the email?

Yup yup. Everything *seems* to work fine if I do a manual --fsck -e (I get an email, everything is wonderful), however can't quite seem to get it to send an email when it does it's midnight fsck. That's the bit that I'm (possibly) being a noob on.

Re: Greyhole email statistics

Posted: Tue Apr 17, 2012 10:54 am
by ciscoh
are you sure it even ran?

--if-conf-changed --dont-walk-graveyard

those 2 options might have prevented it from running

Re: Greyhole email statistics

Posted: Tue Apr 17, 2012 11:10 am
by modem7
are you sure it even ran?

--if-conf-changed --dont-walk-graveyard

those 2 options might have prevented it from running
I'll try taking those out. Many thanks!

Re: Greyhole email statistics

Posted: Wed Apr 18, 2012 1:27 pm
by modem7
Worked a beaut.

many thanks!