Page 1 of 1

Units for Performance Monitoring

Posted: Mon Apr 28, 2014 11:05 am
by gsd_pe
Hello Friends,

I was not able to get much help on this topic of variables used for performance monitoring units.
For a few performance graphs where I was not able to get graphs I used %.f and %.2f and [min],[max] values for getting graphs

For some of them I am not able to find the right variables to get graphs, few of them are for SQL Writes and reads per sec
Likewise iSCSI writes and reads / sec on a LUN or something like ISCSI Bytes read and written per sec.

Tried using few guidelines on this topic (https://nagios-plugins.org/doc/guidelines.html#AEN200) but no luck.
Do any one of you have an idea about how to use the UNITS of MEASUREMENT (UOM)

Any help is appreciated, thanks in advance.

-Srini

Re: Units for Performance Monitoring

Posted: Mon Apr 28, 2014 2:17 pm
by scottwilkerson
UOM is specified by characters following the numeric value.

For example, given the following performance date

Code: Select all

rta=0.849ms;3000.000;5000.000;0; pl=0%;80;100;; rtmax=1.497ms;;;; rtmin=0.643ms;;;;
This is actually 4 different performance datasources

Code: Select all

rta=0.849ms;3000.000;5000.000;0;
pl=0%;80;100;;
rtmax=1.497ms;;;;
rtmin=0.643ms;;;;
LABEL is to the left of the =
VALUE is numeric items following =
UOM is non-numeric item following VALUE

In the above example the following are the UOM

Code: Select all

ms
%
rtmax
rtmin

Re: Units for Performance Monitoring

Posted: Tue Apr 29, 2014 2:15 am
by gsd_pe
Well I tried using multiple of those options, could you let me know how I can get a performance graph for ISCSI LUNs
I have created counters for ISCSI Bytes Read and ISCSI Bytes Write for my ISCSI LUNS on which my DB sits.

Unfortunately I am able to get a value which I am not able to get in the form of a graph even though I set min and max values.

The below service monitor command give me a output but can not be plotted to a graph
check_xi_service_nsclient!<password>!COUNTER!-l "\\iSCSI Sessions(iqn.2001-05.com.equallogic:0-1cb196-ae04b5221-9700016109a518d1-dbdev)\\Bytes Received"

For some I was able to get it work by adding %.f at the ending like follows
check_xi_service_nsclient!<password>!COUNTER!-l "\\SQLServer:General Statistics\\User Connections","User Connections: %.f" -w 50 -c 100

Any idea on how to get through this ?

Re: Units for Performance Monitoring

Posted: Tue Apr 29, 2014 2:42 pm
by sreinhardt
What kind of output are you currently getting from running the checks you are using?

Re: Units for Performance Monitoring

Posted: Wed Apr 30, 2014 3:46 am
by gsd_pe
ISCSI Bytes Sent and Received are typically numerical values starting anywhere from 48 to 132456. Not particular to the range but I see them a integer values and not floating ones.

A sample output of the command "check_xi_service_nsclient!<password>!COUNTER!-l "\\iSCSI Sessions(iqn.2001-05.com.equallogic:0-1cb196-ae04b5221-9700016109a518d1-amdbdev01-db01b_1)\\Bytes Sent" is giving a integer value of "155326"

I tried manipulating the above command as follows to get a graph
"check_xi_service_nsclient!<password>!COUNTER!-l "\\iSCSI Sessions(iqn.2001-05.com.equallogic:0-1cb196-ae04b5221-9700016109a518d1-amdbdev01-db01b_1)\\Bytes Sent"!"Bytes Sent: %.f" -w 100000 -c 1000000

When I add the above command, the output turns to "0"

Re: Units for Performance Monitoring

Posted: Wed Apr 30, 2014 1:10 pm
by lmiltchev
Change this:

Code: Select all

I tried manipulating the above command as follows to get a graph
"check_xi_service_nsclient!<password>!COUNTER!-l "\\iSCSI Sessions(iqn.2001-05.com.equallogic:0-1cb196-ae04b5221-9700016109a518d1-amdbdev01-db01b_1)\\Bytes Sent"!"Bytes Sent: %.f" -w 100000 -c 1000000
to this:

Code: Select all

I tried manipulating the above command as follows to get a graph
"check_xi_service_nsclient!<password>!COUNTER!-l "\\iSCSI Sessions(iqn.2001-05.com.equallogic:0-1cb196-ae04b5221-9700016109a518d1-amdbdev01-db01b_1)\\Bytes Sent","Bytes Sent: %.f" -w 100000 -c 1000000
Note: Replace "!" with a ",".

Let me know if this helped.

Re: Units for Performance Monitoring

Posted: Mon May 05, 2014 3:34 am
by gsd_pe
Tried to change the same as suggested, after doing the change I receive a reply saying "Bytes Received: 0" and there is nothing in graph.
The Graph always shows "0"

Re: Units for Performance Monitoring

Posted: Mon May 05, 2014 11:42 am
by lmiltchev
Can you show us the exact command that you are running from the CLI along with the output of it? Are you using a similar format to the one below?

Code: Select all

./check_nt -H 192.168.x.x -s password -p 12489 -v COUNTER -l "\\Network Interface(Intel[R] 82579LM Gigabit Network Connection)\\Bytes Total/sec","Bytes Total/sec is %.f" -w 80000000 -c 95000000
Bytes Total/sec is 9504 | 'Bytes Total/sec is %.f'=9504.200000%;80000000.000000;95000000.000000;