Munin - 如何从插件中返回未知值

时间:2012-09-27 09:04:36

标签: plugins ntp munin

如果无法报告该值,我希望我的munin插件报告未知值。我该怎么回?

  • “南”
  • “ - 南”
  • 什么都没有,只是跳过返回值
  • “未知”
  • ...?

对我来说没有任何作用。

背景:如果ntp根本没有运行,则ntp_offset插件会失败。我想返回未知值并发送警报消息。

1 个答案:

答案 0 :(得分:5)

我认为返回的正确值是“U”。

在文档中简要提及,但没有解释:

http://munin.readthedocs.org/en/latest/reference/plugin.html#plugin-reference