I started using the check_ntp nagios plugin shipped with Zenoss (2.1) recently,
and have discovered that if the reported offset is too low, check_ntp prints
the offset in exponential notation:
DEBUG:zen.zencommand:Output: 'NTP OK: Offset -8.594989777e-05
secs|t_offset=-8.594989777e-05\n'
DEBUG:zen.zencommand:The result of "/opt/zenoss/libexec/check_ntp2 -H
10.56.9.26 -t 2" was "NTP OK: Offset -8.5949897
77e-05 secs|t_offset=-8.594989777e-05"
DEBUG:zen.zencommand:storing t_offset = -8.594989777 in:
Devices/bldl16-fe.eng.netapp.com/ntpoffset_t_offset
DEBUG:zen.RRDUtil:/opt/zenoss/perf/Devices/bldl16-fe.eng.netapp.com/ntpoffset_t_offset.rrd:
-8.5949897770000003
My workaround is to change the printf in my local check_ntp code, but it would
be nice if zencommand could be fixed to also parse exponential notation.
--
David Carmean Network Appliance, Inc
Infosystems Architect, 495 E. Java Drive
Java (Sunnyvale) Engineering Lab Services Sunnyvale, CA 94089
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users