Hi Tore, Tore Anderson wrote: > * David Liontooth > >> $ cat /etc/cron.d/munin-node >> # >> # cron-jobs for munin-node >> # >> >> MAILTO=root >> >> # If the APT plugin is enabled, update packages databases approx. once >> # an hour (12 invokations an hour, 1 in 12 chance that the update will >> # happen), but ensure that there will never be more than two hour (7200 >> # seconds) interval between updates.. >> */5 * * * * root if [ -x /etc/munin/plugins/apt_all ]; then >> /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x >> /etc/munin/plugins/apt ]; t$ >> >> This cronjob should not be activated if the apt / apt_all plugin is >> not enabled. >> > > I think you've got a corrupted installation. This line should not end > with «t$», it should read: > > */5 * * * * root if [ -x /etc/munin/plugins/apt_all ]; then > /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x > /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 > >/dev/null; fi > > Could you try replacing it with the above, or reinstalling, and see if > that helps? This job should never generate any output whatsoever if > the APT plugins are disabled. > I pasted incorrectly; the line is correct in /etc/cron.d/munin-node. I'm glad to hear the job is not expected to generate any output. > >> I like a quiet syslog and discovered the bug from getting crowds of >> these. >> > > It's strange that you get it in your syslog, cron is supposed to mail > output to root as per the MAILTO setting (even errors resulting from > your corrupted file). Weird. > > What is the error that ends up in your syslog, exactly? Could you > please paste an example? > It's not an error - it's just he command echoed, telling syslog it was run. It's perfectly orderly, I just want to silence it, as it provides no relevant information.
I've installed munin-node on seven machines and get the same messages in syslog for all of them (below). The configuration on these differ a fair amount. I tried to silence it with >/dev/null 2>&1 but that didn't do the trick, so I just commented out the line. This may still just be a cron configuration issue that munin simply triggers. I get a lot of street cred from my colleagues when showing them munin; they somehow imagine I put all of this information together myself ;-) David Dec 7 08:50:01 siena /USR/SBIN/CRON[13790]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 08:55:01 siena /USR/SBIN/CRON[14538]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:00:01 siena /USR/SBIN/CRON[15317]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:05:01 siena /USR/SBIN/CRON[16103]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:10:01 siena /USR/SBIN/CRON[16791]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:15:01 siena /USR/SBIN/CRON[17479]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:17:01 siena /USR/SBIN/CRON[18095]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Dec 7 09:30:01 chianti /USR/SBIN/CRON[18868]: (munin) CMD (if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi) Dec 7 09:30:01 chianti /USR/SBIN/CRON[18866]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:35:01 chianti /USR/SBIN/CRON[19563]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:35:01 chianti /USR/SBIN/CRON[19565]: (munin) CMD (if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi) Dec 7 09:40:01 chianti /USR/SBIN/CRON[20223]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:40:01 chianti /USR/SBIN/CRON[20225]: (munin) CMD (if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi) Dec 7 09:45:01 chianti /USR/SBIN/CRON[20883]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:45:01 chianti /USR/SBIN/CRON[20885]: (munin) CMD (if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi) Dec 7 09:15:01 greve /USR/SBIN/CRON[5612]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:20:01 greve /USR/SBIN/CRON[6182]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:25:01 greve /USR/SBIN/CRON[6752]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:30:01 greve /USR/SBIN/CRON[7322]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:35:01 greve /USR/SBIN/CRON[7892]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:40:01 greve /USR/SBIN/CRON[8464]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:10:01 prato /USR/SBIN/CRON[25574]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:15:01 prato /USR/SBIN/CRON[26236]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:20:01 prato /USR/SBIN/CRON[26921]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:25:01 prato /USR/SBIN/CRON[27609]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:30:01 prato /USR/SBIN/CRON[28371]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:35:01 prato /USR/SBIN/CRON[28979]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 08:40:01 cyberspace /USR/SBIN/CRON[7767]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 08:45:01 cyberspace /USR/SBIN/CRON[8311]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 08:50:01 cyberspace /USR/SBIN/CRON[8855]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 08:55:01 cyberspace /USR/SBIN/CRON[9402]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:00:01 cyberspace /USR/SBIN/CRON[9946]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:05:01 cyberspace /USR/SBIN/CRON[10490]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:25:01 localhost /USR/SBIN/CRON[19110]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:30:01 localhost /USR/SBIN/CRON[19683]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:35:01 localhost /USR/SBIN/CRON[20234]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:40:01 localhost /USR/SBIN/CRON[20877]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:45:01 localhost /USR/SBIN/CRON[21390]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:50:01 localhost /USR/SBIN/CRON[21952]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi) Dec 7 09:55:01 localhost /USR/SBIN/CRON[22538]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi)