Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
thundercost
bythundercost, February 12, 2013
I have a better value rounding meth?d to suggest.
I changed the line:
ROUNDED=`echo $VALUE | sed 's/\..*//'`
with:
ROUNDED=`echo $VALUE | awk '{printf("%d\n",$1 + 0.5)}'`
I faced a problem when the '.7' value for Input voltage (power failure) appeared to be 'OK'.
Thank you!
I changed the line:
ROUNDED=`echo $VALUE | sed 's/\..*//'`
with:
ROUNDED=`echo $VALUE | awk '{printf("%d\n",$1 + 0.5)}'`
I faced a problem when the '.7' value for Input voltage (power failure) appeared to be 'OK'.
Thank you!