[Nagiosplug-help] chechk_nt - COUNTER problem

Harper Mann hmann at itgroundwork.com
Wed Jan 19 15:34:38 CET 2005


Hi Tamas,

./check_nt -H torino -p 1248 -v COUNTER -l "\\Paging File(_Total)\%>
Usage",'Paging File Usage is %2.2f%%' -w 40 -c 90

Paging File Usage is 0.00% | 'Paging File Usage is
%2.2f%%'=0.000000%;40.000000;90.000000;

./check_nt -H torino -p 1248 -v COUNTER -l "\\Paging File(_Total)\%>
Usage",'Paging File Usage' -w 40 -c 90

Paging File Usage = 0.00 % | 'Paging File
Usage'=0.000000%;40.000000;90.000000;

I'm thinking this is correct behavior.  The format requested may be of
interest when parsing the performance data and it's awkward to simply strip
the formatting since there can be characters after formatting which should
be part of the label.  I could repeat the output in the label but the value
is listed right after that.

The floats in the performance info are to the specification.  We also use a
function out of utils.c to format them so they are as they should be.

Other opinions?

Regards and thanks for the feedback,

- Harper

Harper Mann
Groundwork Open Source Solutions
510-599-2075 (cell)
http://itgroundwork.com


-----Original Message-----
From: nagiosplug-help-admin at lists.sourceforge.net
[mailto:nagiosplug-help-admin at lists.sourceforge.net] On Behalf Of Horvath
Tamas
Sent: Thursday, January 06, 2005 9:40 AM
To: Nagiosplug-Help at Lists. Sourceforge. Net
Cc: hmann at itgroundwork.com
Subject: [Nagiosplug-help] chechk_nt - COUNTER problem

Hi List!

I tested check_nt again. My version:

antsz1:/usr/local/nagios/libexec# ./check_nt -V
check_nt (nagios-plugins 1.4-beta1) 1.38

Our test:

antsz1:/usr/local/nagios/libexec# ./check_nt -H 10.50.250.1 -p 1248 -v
COUNTER -l "\\IP\\Datagrams/sec","valami: %.f db/sec" -w 90 -c 95 -s
Dw1NkQ373t
valami: 19 db/sec|'valami: %.f db/sec'=18.957800%;90.000000;95.000000;
antsz1:/usr/local/nagios/libexec# 

As you can see:
1. The fornat string works, and dissapeared from output. It's an improvement
against v1.36.

2. The format string (%.f) appears in the perfomance data. I think it should
not!!!

I hope it can be fixed on next beta, or the final ralease.

And there's another annoying thing: the long and - as i think unecessary -
floating points numbers in performance data. How can I format these?

Thanks, Tamas!



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null






More information about the Help mailing list