cron.daily updated & outdated
Hi there!
We have it set up so that cron sends us an email each time a script outputs something.
Sometimes, we get a lot of emails like this:
If I'm not mistaken, when the script outputs this, it actually does update the specific collection.
Am I right in this assumption?
If I am, is there any way to turn off these outputs, or is there any possibility this will be disabled in future updates?
We have almost a hundred machines, so when an update comes out, this leads to a lot of unnecessary emails.
Thanks in advance!
10 Replies
Important Information
This post has been marked as resolved. If this is a mistake please press the red button below or type
/unresolve
© Created By WhyAydan for CrowdSec ❤️
We will investigate it for next release, as I also get the same email I only get one email so not too bad for me but I know with 100 it would amplify the frustration.
but yes your right in your assumption it does infact do the update for you.
I'd like to add some tests for this case, can you assign me a ticket @iiamloz ? thanks
yeah there already an issue somewhere let me dig it out
adding a " | grep -v outdated" to cscli hub upgrade will leave the rest of the output
Thank you very much for the help guys!
Resolving cron.daily updated & outdated
This has now been resolved. If you think this is a mistake please run
/unresolve
the issue is the script uses the stdout to detect changes, so I think it be more than a grep
@alukas you can track it via https://github.com/crowdsecurity/crowdsec/issues/3481
GitHub
crowdsec job in daily · Issue #3481 · crowdsecurity/crowdsec
Guys, After update I have your script in cron.daily returning this and reporting daily at 7:00. Since your application is security tool and not virus - maybe try to be less intrusive ? /etc/cron.da...
No because the message is actually in stderr, and stdout is actually empty
so the whole thing would be
upgraded=$(/usr/bin/cscli --error hub upgrade 2> >(grep -v outdated))
by the way the --error flag should already filter out the warnings