我已将munin
配置为昨天从另一台服务器获取日志,并根据配置示例自定义配置Totals
,用于两个服务器负载。
我使用rrdtool
将rrd
文件转换为xml
并将其复制并将其转换回rrd
以获取新计算机,以便了解它的历史记录
现在它工作得很好,但总计似乎已经停止生成一段时间了。我检查了日志,它说没有找到load2-day.png ...等文件。
我查了一下,他们在那里,chown
和chmod
匹配munin
。
有关为什么它可能看不到文件的任何想法,一旦我看到它们如何强制完成图形再生,所以我不必等待5分钟才能找出它是否有效?
在此完成日志:
perl
错误似乎不会影响任何内容,但我会很感激删除它的提示。
2013/09/10 13:45:10 Starting munin-graph
2013/09/10 13:45:10 [PERL WARNING] Use of uninitialized value in subroutine entry at /usr/share/perl5/vendor_perl/Munin/Master/GraphOld.pm line 758.
2013/09/10 13:45:10 [PERL WARNING] Use of uninitialized value $filename in concatenation (.) or string at /usr/share/perl5/vendor_perl/Munin/Master/GraphOld.pm line 775.
2013/09/10 13:45:10 [PERL WARNING] Use of uninitialized value $filename in concatenation (.) or string at /usr/share/perl5/vendor_perl/Munin/Master/GraphOld.pm line 784.
2013/09/10 13:45:10 [PERL WARNING] Use of uninitialized value $filename in concatenation (.) or string at /usr/share/perl5/vendor_perl/Munin/Master/GraphOld.pm line 786.
2013/09/10 13:45:10 [PERL WARNING] Use of uninitialized value $filename in concatenation (.) or string at /usr/share/perl5/vendor_perl/Munin/Master/GraphOld.pm line 787.
2013/09/10 13:45:10 [PERL WARNING] Use of uninitialized value in subroutine entry at /usr/share/perl5/vendor_perl/Munin/Master/GraphOld.pm line 758.
2013/09/10 13:45:10 [PERL WARNING] Use of uninitialized value $filename in concatenation (.) or string at /usr/share/perl5/vendor_perl/Munin/Master/GraphOld.pm line 775.
2013/09/10 13:45:10 [PERL WARNING] Use of uninitialized value $filename in concatenation (.) or string at /usr/share/perl5/vendor_perl/Munin/Master/GraphOld.pm line 784.
2013/09/10 13:45:10 [PERL WARNING] Use of uninitialized value $filename in concatenation (.) or string at /usr/share/perl5/vendor_perl/Munin/Master/GraphOld.pm line 786.
2013/09/10 13:45:10 [PERL WARNING] Use of uninitialized value $filename in concatenation (.) or string at /usr/share/perl5/vendor_perl/Munin/Master/GraphOld.pm line 787.
2013/09/10 13:45:10 [RRD ERROR] Unable to graph /var/www/html/munin/example.com/Totals/load2-month.png : opening '': No such file or directory
2013/09/10 13:45:10 [RRD ERROR] Unable to graph /var/www/html/munin/example.com/Totals/load2-week.png : opening '': No such file or directory
2013/09/10 13:45:10 [RRD ERROR] Unable to graph /var/www/html/munin/example.com/Totals/load2-day.png : opening '': No such file or directory
2013/09/10 13:45:10 [RRD ERROR] Unable to graph /var/www/html/munin/example.com/Totals/load2-year.png : opening '': No such file or directory
2013/09/10 13:45:10 [INFO] Graphed service example.com;Totals:load2 (0.05 sec)
2013/09/10 13:45:10 [RRD ERROR] Unable to graph /var/www/html/munin/example.com/Totals/load3-month.png : opening '': No such file or directory
2013/09/10 13:45:10 [RRD ERROR] Unable to graph /var/www/html/munin/example.com/Totals/load3-week.png : opening '': No such file or directory
2013/09/10 13:45:10 [RRD ERROR] Unable to graph /var/www/html/munin/example.com/Totals/load3-day.png : opening '': No such file or directory
2013/09/10 13:45:10 [RRD ERROR] Unable to graph /var/www/html/munin/example.com/Totals/load3-year.png : opening '': No such file or directory
答案 0 :(得分:2)
RRD ERROR行表示无法创建图形(png),因为RRD中的某些内容无法找到(或打开)某个文件。这个片段说它试图打开一条空白路径,然后失败。
opening '': No such file or directory
perl错误提到“未初始化的值$ filename”,这给出了RRD错误可能是问题的一部分。由于图表是从RRD文件生成的,因此可能的问题是系统无法找到您的RRD。因此,您需要检查有关指定RRD位置的所有内容都是有序的。
关于触发图创建:munin服务器由cron驱动。您应该能够找到一个可以作为munin用户手动运行的cron作业,以便触发该过程。我过去使用的RPM在/etc/cron.d/munin
中有这个工作