Units for Performance Monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
gsd_pe
Posts: 7
Joined: Tue Mar 25, 2014 2:18 am

Units for Performance Monitoring

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Units for Performance Monitoring

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
gsd_pe
Posts: 7
Joined: Tue Mar 25, 2014 2:18 am

Re: Units for Performance Monitoring

Post 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 ?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Units for Performance Monitoring

Post by sreinhardt »

What kind of output are you currently getting from running the checks you are using?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
gsd_pe
Posts: 7
Joined: Tue Mar 25, 2014 2:18 am

Re: Units for Performance Monitoring

Post 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"
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Units for Performance Monitoring

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
gsd_pe
Posts: 7
Joined: Tue Mar 25, 2014 2:18 am

Re: Units for Performance Monitoring

Post 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"
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Units for Performance Monitoring

Post 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;
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked