Page 1 of 2

How to get "performance graphs" for "check_nt" counters

Posted: Tue Jul 09, 2013 2:15 am
by infojami
We are using NagiosXI to monitor Windows servers.

Just wondering if anyone knows how to enable "performance graphs" in NagiosXI web interface for "check_nt" counters which are Windows server PerfMon counters (our Nagios client is NSClient++)?

I found NagiosXI creates graph for few Windows counters automatically!!!; example below (Page File Usage);
Command Name: check_xi_service_nsclient
Command View: $USER1$/check_nt -H $HOSTADDRESS$ -s "$ARG1$" -p 12489 -v $ARG2$ $ARG3$ $ARG4$
ARG2: COUNTER
ARG3: -l "\\Paging File(_Total)\\% Usage","Paging File usage is %.2f %%" -w 80 -c 90

However, if I add the following which is pretty much similar to the above one; BUT NO graphs comes in the web interface -
Command Name: check_xi_service_nsclient
Command View: $USER1$/check_nt -H $HOSTADDRESS$ -s "$ARG1$" -p 12489 -v $ARG2$ $ARG3$ $ARG4$
ARG2: COUNTER
ARG3: -l "\\Web Service(_Total)\\Current Connections" -w 400 -c 500

I have no idea about the location of performance graph configuration files in NagiosXI. Tired searching google for this :((- everyone is saying to install "nagiosgraph" which is already installed and configured within NagiosXI. Looking for help.

Thanks,
Jami

Re: How to get "performance graphs" for "check_nt" counters

Posted: Tue Jul 09, 2013 12:07 pm
by abrist
Is performance data returned with the check? (go to the service details, advanced tab and post the contents of the "performance data" section)

Re: How to get "performance graphs" for "check_nt" counters

Posted: Wed Jul 17, 2013 9:34 pm
by infojami
Hi abrist,

Thanks for your reply. Looks like the "Performance Data" is not turned on in Advanced section - please find the screenshot. How to turn it on?

Regards,
Jami

Re: How to get "performance graphs" for "check_nt" counters

Posted: Thu Jul 18, 2013 3:37 pm
by slansing
It looks like that check is not returning performance data period, how did you set these services up? And are you receiving performance graphs for other services elsewhere?

Re: How to get "performance graphs" for "check_nt" counters

Posted: Thu Jul 18, 2013 6:40 pm
by infojami
Thanks for your reply.

I configured "check_nt" to get the check value from Windows PerfMon counter; details below -

check_nt -H $HOSTADDRESS$ -s "$ARG1$" -p 12489 -v $ARG2$ $ARG3$ $ARG4$
COUNTER
-l "\\Web Service(_Total)\\Current Connections" -w 400 -c 500

Is there any parameter here to turn on perfdata?

Regards,
Jami

Re: How to get "performance graphs" for "check_nt" counters

Posted: Fri Jul 19, 2013 12:41 pm
by slansing
It may be possible that the counter you are checking is not able to be graphed for some reason, can you do the following, lets check and see if this service has had any graphs created for it:

Code: Select all

ll -la /usr/local/nagios/share/perfdata/<hostname>/
Please share the output here.

Re: How to get "performance graphs" for "check_nt" counters

Posted: Tue Jul 30, 2013 10:46 am
by rodpayne
check_nt -H $HOSTADDRESS$ -s "$ARG1$" -p 12489 -v $ARG2$ $ARG3$ $ARG4$
COUNTER
-l "\\Web Service(_Total)\\Current Connections" -w 400 -c 500

Is there any parameter here to turn on perfdata?
The perfdata information will be provided when the "description" field is added. Something like:

"\\Web Service(_Total)\\Current Connections","Current Connections","connections"


"Current Connections" is the description, and "connections" is the unit of measure.

Re: How to get "performance graphs" for "check_nt" counters

Posted: Tue Jul 30, 2013 12:12 pm
by yancy
rodpayne,

can you verify the check results have perf data at all?

for example

Code: Select all

OK - load average: 0.21, 0.38, 0.37|load1=0.210;5.000;10.000;0; load5=0.380;4.000;6.000;0; load15=0.370;3.000;4.000;0; 
everything after the pipe | is perfdata in this example

-Yancy

Re: How to get "performance graphs" for "check_nt" counters

Posted: Tue Jul 30, 2013 1:40 pm
by rodpayne
rodpayne,

can you verify the check results have perf data at all?
Yes, mine is working fine. It was Jami who has the problem. I was just saying how to fix it.

I have:

Code: Select all

-l "\\Terminal Services()\\Active Sessions","Terminal Services Active","Sessions" -w 70 -c 100
and it returns:

Code: Select all

Terminal Services Active = 0.00 Sessions | 'Terminal Services Active'=0.000000Sessions;70.000000;100.000000;

Re: How to get "performance graphs" for "check_nt" counters

Posted: Tue Jul 30, 2013 3:17 pm
by yancy
rodpayne,

Sorry about that, the post was meant for Jami.

-Yancy