I installed Foreman on our Puppet server while Puppetdb was using HSQLDB. I
got one daily email from Foreman with accurate results about my machines.
After I migrated PuppetDB to PostgreSQL I keep getting 2 emails per day.
One with accurate results (as far as I understand from PostgreSQL) and
second one saying my hosts are not running Puppet (probably from HSQLDB).
How can I fix it and disable the Foreman reports from unused HSQLDB?
You can go to My account (top right corner), click on Mail preferences
and turn off mail notifications there.
Aside from that, if you're getting 2 emails it sounds to me like you
have a cron job running 'foreman-rake reports:summarize' twice.
Could you check that? If that's the case, remove the one job pointing
to the HSQLDB and you'd be good to go too.
Hope that helps, and thanks for using Foreman!
···
On Wed, Mar 4, 2015 at 12:00 AM, tyon wrote:
> Hi all,
>
> I installed Foreman on our Puppet server while Puppetdb was using HSQLDB. I
> got one daily email from Foreman with accurate results about my machines.
> After I migrated PuppetDB to PostgreSQL I keep getting 2 emails per day. One
> with accurate results (as far as I understand from PostgreSQL) and second
> one saying my hosts are not running Puppet (probably from HSQLDB).
>
> How can I fix it and disable the Foreman reports from unused HSQLDB?
>
> Thank you!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Foreman users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to foreman-users+unsubscribe@googlegroups.com.
> To post to this group, send email to foreman-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/foreman-users.
> For more options, visit https://groups.google.com/d/optout.
# Refreshes ldap usergroups. Can be disabled if you're not using LDAP
authentication.
*/30 * * * * foreman /usr/sbin/foreman-rake ldap:refresh_usergroups
>>/var/log/foreman/cron.log 2>&1
Please let me know if you see anything here what can cause this issue,
because I don't
Thank you!
···
On Tuesday, March 3, 2015 at 11:40:21 PM UTC-8, Daniel Lobato wrote:
>
> Hi there,
>
> You can go to My account (top right corner), click on Mail preferences
> and turn off mail notifications there.
> Aside from that, if you're getting 2 emails it sounds to me like you
> have a cron job running 'foreman-rake reports:summarize' twice.
> Could you check that? If that's the case, remove the one job pointing
> to the HSQLDB and you'd be good to go too.
>
> Hope that helps, and thanks for using Foreman!
>
> On Wed, Mar 4, 2015 at 12:00 AM, tyon <surb...@ucdavis.edu > > wrote:
> > Hi all,
> >
> > I installed Foreman on our Puppet server while Puppetdb was using
> HSQLDB. I
> > got one daily email from Foreman with accurate results about my
> machines.
> > After I migrated PuppetDB to PostgreSQL I keep getting 2 emails per day.
> One
> > with accurate results (as far as I understand from PostgreSQL) and
> second
> > one saying my hosts are not running Puppet (probably from HSQLDB).
> >
> > How can I fix it and disable the Foreman reports from unused HSQLDB?
> >
> > Thank you!
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups
> > "Foreman users" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an
> > email to foreman-user...@googlegroups.com .
> > To post to this group, send email to forema...@googlegroups.com
> .
> > Visit this group at http://groups.google.com/group/foreman-users.
> > For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> Daniel Lobato
>
> @elobatoss
> blog.daniellobato.me
> daniellobato.me
>
> GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30
>
I think I solved it. I'm such a dummy!!! Before moving Puppetdb to a
different DB I cloned my Puppet server to test it. This clone machine sends
me a second report.
I'm sorry for the spam!
Thanks!
···
On Wednesday, March 4, 2015 at 8:40:51 AM UTC-8, tyon wrote:
>
> Hi Daniel,
>
> Thank you for your answer.
> I don't want to turn off the mail notifications. I like this feature :)
>
> I checked my cron file. Everything looks fine for me there.
> It's what I have in /etc/cron.d/foreman
>
> *SHELL=/bin/sh*
> *PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin*
>
> *RAILS_ENV=production*
> *FOREMAN_HOME=/usr/share/foreman*
>
> *# Clean up the session entries in the database*
> *15 23 * * * foreman /usr/sbin/foreman-rake db:sessions:clear
> >>/var/log/foreman/cron.log 2>&1*
>
> *# Send out recurring notifications*
> *0 7 * * * foreman /usr/sbin/foreman-rake reports:daily
> >>/var/log/foreman/cron.log 2>&1*
> *0 5 * * 0 foreman /usr/sbin/foreman-rake reports:weekly
> >>/var/log/foreman/cron.log 2>&1*
> *0 3 1 * * foreman /usr/sbin/foreman-rake reports:monthly
> >>/var/log/foreman/cron.log 2>&1*
>
> *# Expire old reports*
> *30 6 * * * foreman /usr/sbin/foreman-rake reports:expire days=7
> >>/var/log/foreman/cron.log 2>&1*
> *30 7 * * * foreman /usr/sbin/foreman-rake reports:expire days=1
> status=0 >>/var/log/foreman/cron.log 2>&1*
>
> *# Collects trends data*
> **/30 * * * * foreman /usr/sbin/foreman-rake trends:counter
> >>/var/log/foreman/cron.log 2>&1*
>
> *# Remove duplicate trends data*
> *0 8 * * * foreman /usr/sbin/foreman-rake trends:clean
> >>/var/log/foreman/cron.log 2>&1*
>
> *# Refreshes ldap usergroups. Can be disabled if you're not using LDAP
> authentication.*
> **/30 * * * * foreman /usr/sbin/foreman-rake ldap:refresh_usergroups
> >>/var/log/foreman/cron.log 2>&1*
>
> Please let me know if you see anything here what can cause this issue,
> because I don't :(
>
> Thank you!
>
>
> On Tuesday, March 3, 2015 at 11:40:21 PM UTC-8, Daniel Lobato wrote:
>>
>> Hi there,
>>
>> You can go to My account (top right corner), click on Mail preferences
>> and turn off mail notifications there.
>> Aside from that, if you're getting 2 emails it sounds to me like you
>> have a cron job running 'foreman-rake reports:summarize' twice.
>> Could you check that? If that's the case, remove the one job pointing
>> to the HSQLDB and you'd be good to go too.
>>
>> Hope that helps, and thanks for using Foreman!
>>
>> On Wed, Mar 4, 2015 at 12:00 AM, tyon wrote:
>> > Hi all,
>> >
>> > I installed Foreman on our Puppet server while Puppetdb was using
>> HSQLDB. I
>> > got one daily email from Foreman with accurate results about my
>> machines.
>> > After I migrated PuppetDB to PostgreSQL I keep getting 2 emails per
>> day. One
>> > with accurate results (as far as I understand from PostgreSQL) and
>> second
>> > one saying my hosts are not running Puppet (probably from HSQLDB).
>> >
>> > How can I fix it and disable the Foreman reports from unused HSQLDB?
>> >
>> > Thank you!
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "Foreman users" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> an
>> > email to foreman-user...@googlegroups.com.
>> > To post to this group, send email to forema...@googlegroups.com.
>> > Visit this group at http://groups.google.com/group/foreman-users.
>> > For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>> --
>> Daniel Lobato
>>
>> @elobatoss
>> blog.daniellobato.me
>> daniellobato.me
>>
>> GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30
>>
>