Munin:丢失的图表有可能恢复吗?
我不太熟悉 munin 的工作原理,所以如果这是显而易见的,我深表歉意。
我现在已经在我的几个项目中使用 munin,并且已经遇到过两次这种情况,我将丢失从过去的事件生成的所有 munin 图表。 这件事今天下午才发生在我身上。 现在,我只有今天下午以来所有系统事件的跟踪记录。
这些图表可以恢复吗? 是否有数据存储在用于生成这些图表的地方?
如果无法恢复,我想知道是什么可能导致这种情况发生。 诚然,每次发生这种情况时,我都会弄乱我的 munin 配置设置。 对于这种情况,我添加了由 munin 记录的新服务器...我不知道这样做会如何导致 munin 丢失其他服务器上的所有数据。
谢谢。
I'm not extremely familiar with how munin works, so I apologize if this is obvious.
I've been using munin for a couple of my projects now and I've run into this twice where I will lose all my munin graphs that were generated from past events. This just happened to me this afternoon. Now, I only have a track record of all system events since this afternoon.
Are these graphs recoverable? Is there data stored somewhere thats used to generate these graphs?
If its unrecoverable, I would like to know what could possibly have caused this to occur. Granted, each time this has happened, I was messing w/ my munin config settings. For this case, I was adding new servers to be logged by munin...I dont see how doing that would cause munin to lose all data on my other servers.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
数据是从 .rrd 数据库生成的,该数据库在“munin-update”期间更新(通常从“munin-cron”调用)。 您可以在 munin.conf 中“dbdir”指定的目录(我的网站上的 /var/db/munin)中找到这些文件。 如果您的图表仅显示今天下午以来的事件,我的猜测是 .rrd 文件已被删除/重新创建/损坏。 您应该能够从备份中恢复它们,然后调用“munin-graph”和“munin-html”。 请参阅这些命令各自的手册页。
the data is generated from .rrd databases which are updated during 'munin-update' (usually called from 'munin-cron'). You can find those files in the directory specified by 'dbdir' in munin.conf (/var/db/munin on my site). If your graphs only show events since this afternoon, my guess is that the .rrd files got deleted/recreated/corrupted. You should be able to restore them from backup and then call 'munin-graph' and 'munin-html'. See the respective man-pages for those commands.