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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
infojami
Posts: 10
Joined: Tue Apr 03, 2012 6:46 pm

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

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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)
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
infojami
Posts: 10
Joined: Tue Apr 03, 2012 6:46 pm

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

Post 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
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

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

Post 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?
infojami
Posts: 10
Joined: Tue Apr 03, 2012 6:46 pm

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

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

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

Post 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.
rodpayne
Posts: 14
Joined: Mon Jul 15, 2013 8:10 pm

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

Post 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.
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

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

Post 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
rodpayne
Posts: 14
Joined: Mon Jul 15, 2013 8:10 pm

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

Post 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;
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

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

Post by yancy »

rodpayne,

Sorry about that, the post was meant for Jami.

-Yancy
Locked