Munin为什么很烦人?

我们有一个最近被采取了一些非常奇怪的行为的Munin服务器。 网站本身是完美的工作,我们正在得到我们的统计数据,我得到分页,一切都很好,除非…每5分钟我收到一封电子邮件说:

/bin/sh: 1: munin: not found This program will easily break if you run it as root as you are trying now. Please run it as user 'munin'. The correct 'su' command on many systems is 'su - munin --shell=/bin/bash' Aborting. 

所以,我认为/etc/cron.d/munin-node中的crontab有错误的用户名,对吗? 没有…

 # # 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 * * * * munin if [ -x /etc/munin/plugins/apt_all ]; then munin-run apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then munin-run apt update 7200 12 >/dev/null; fi 

我甚至完全删除了/etc/cron.d/munin-node这个文件,它仍然继续运行,并且它试图以root身份运行。

当然,这些统计数字还是按时显示出来的。 这让我疯狂,因为我每5分钟就会收到一封垃圾邮件。

你检查过root的crontab吗? 使用crontab -l作为根目录获取它的列表。 如果没有在平常的地方看看

 /etc/crontab /etc/cron.d /etc/cron.*