How to make check_ntp NOT report its offset performance data using scientific notation?

Marc Powell marc at ena.com
Thu May 28 16:30:40 CEST 2009


On May 28, 2009, at 8:49 AM, Steffen Poulsen wrote:

> We were wondering, is there any possible way we can avoid having  
> check_nrpe report its offset performance data in scientific notation?


In check_ntp.c, change (around line 820) and recompile --

         } else {
                 asprintf(&result_line, "%s %s %.10g secs",  
result_line, _("Offset"), offset);

to
         } else {
                 asprintf(&result_line, "%s %s %.10f secs",  
result_line, _("Offset"), offset);


YMMV.

http://www.cplusplus.com/reference/clibrary/cstdio/printf/

--
Marc


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list