Array
(
[status] => error
[data] => SimpleXMLElement Object
(
[0] => This system is up to date.
)
)
I assume there’s a cron job running to check for updates every minute. Is this normal? I also assume sending an email every minute probably isn’t normal. What’s the best way to handle this?
Just for kicks I decided to change to weekly update. So far, no emails in 10 minutes. VERY strange. I’ll let it run like this until tomorrow and switch it back to monthly.
They underlying situation is that if a cron job generates ANY output, then that output will be sent to the email address as set by the MAILTO variable in your crontab setup.
Be that once a minute or once a week. It will presumably re-appear every week or month until the cron job runs quietly, if it is not running quietly for whatever reason, that needs to be fixed unless there is in fact an error running the job or a reason to notify you . That’s just the way it has always worked.
To debug, Identify your cron job exactly as cron runs it, and run it in the cron shell, which is by default /bin/sh, by the user that owns the cron job, if it generates an output, then that is exactly what will be sent to the MAILTO variable whenever it runs.
Yep, the problem persists. It’s just not as bad now that it’s not running every minute.
Here’s what happens when I run it manually:
[[email protected] ~]# /usr/sbin/sysadmin_update_system -a
Array
(
[status] => error
[data] => SimpleXMLElement Object
(
[0] => This system is up to date.
)
)
[[email protected] ~]#
I had this exact problem … Cron messages in the same format every minute. Fresh install from a distribution that had been updated to 10.13.66-16.
My auto update was disabled but I still received the messages. When I changed auto update to YES and monthly, the messaged stopped. Then I turned auto update back OFF and still no messages.
Just for clarity, there is no option to check for updates every minute.
I’m guessing that turning it off then back on updated the database to allow the auto update service to function as expected.