简体   繁体   中英

Munin - how to return unknown value from plugin

I want my munin plugin to report unknown values if the value can't be reported. What do I have to return?

  • "nan"
  • "-nan"
  • nothing at all, just skip returning a value
  • "unknown"
  • ...?

Nothing works for me.

Background: ntp_offset plugin fails if ntp is not running at all. I want to return unknown value and send an alert message.

I think the correct value to return is "U".

This is briefly mentioned without explanation in the documentation:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM