[Nagios-users] Need help to monitor ASP.NET performance counters for windows 2008

2009-03-04 Thread Sujit D. Kadam

Hi,

I am using Nagios Version 3.0.3 on server side.
Need to monitor ASP.NET counters of Window 2008 (64 bit)
On windows 2008 , I have installed pNsclient.exe
also tried with nsclient++

On server side in commands.cfg

# 'check_nt_Counters' command definition
define command {
   command_namecheck_nt_counters
   command_line$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -s 
password -v COUNTER -l $ARG1$ -w $ARG2$ -c $ARG3$

   }


in services.cfg

## Below is Service Definition for ASP.NET Apps v2.050727 - Sessions Active
define service{
   use windows-service
   host_name   host1
   service_description ASP.NET_Apps-Sessions_Active
   check_command   check_nt_counters!\\ASP.NET 
Apps v2.050727\\Sessions Active!2000!2500

   }


I am getting the output value as 0 but exactly in perfmon I can see the 
exact value i.e approx 1000



Also tried nrpe_nt to install on windows 2008. But throwing error while 
starting the service.


Windows could not start th Nagios Remote Plugin Executor for NT/w...@k 
service on Local Computer.
Error 1053: The service did not respond to the start or control request 
in timely manner.



Regrds,

Sujit






--
 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are
not to copy, disclose, or distribute this e-mail or its contents to any other
person and any such actions are unlawful. This e-mail may contain viruses.
NetMagic Solutions Pvt. Ltd. has taken every reasonable precaution to minimize
this risk, but is not liable for any damage you may sustain as a result of any
virus in this e-mail. You should carry out your own virus checks before
opening the e-mail or attachment. NetMagic Solutions Pvt. Ltd. reserves the
right to monitor and review the content of all messages sent to or from this
e-mail address.

Messages sent to or from this e-mail address may be stored on the NetMagic
Solutions Pvt. Ltd.'s e-mail system.
* End of Disclaimer ***

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Need help to monitor ASP.NET performance counters for windows 2008

2009-03-04 Thread Jon Angliss
On Wed, 04 Mar 2009 19:20:09 +0530, Sujit D. Kadam
sujit.ka...@netmagicsolutions.com wrote:

Hi,

I am using Nagios Version 3.0.3 on server side.
Need to monitor ASP.NET counters of Window 2008 (64 bit)
On windows 2008 , I have installed pNsclient.exe
also tried with nsclient++

On server side in commands.cfg

# 'check_nt_Counters' command definition
define command {
command_namecheck_nt_counters
command_line$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -s 
password -v COUNTER -l $ARG1$ -w $ARG2$ -c $ARG3$
}


in services.cfg

## Below is Service Definition for ASP.NET Apps v2.050727 - Sessions Active
define service{
use windows-service
host_name   host1
service_description ASP.NET_Apps-Sessions_Active
check_command   check_nt_counters!\\ASP.NET 
Apps v2.050727\\Sessions Active!2000!2500
}

Have you tried executing from the command line to see if the command
is executing properly? Whilst it shouldn't be a huge issue, have you
tried dropping the version specific counter?

  \\ASP.NET Applications\\Sessions Active

I am getting the output value as 0 but exactly in perfmon I can see the 
exact value i.e approx 1000


Also tried nrpe_nt to install on windows 2008. But throwing error while 
starting the service.

Windows could not start th Nagios Remote Plugin Executor for NT/w...@k 
service on Local Computer.
Error 1053: The service did not respond to the start or control request 
in timely manner.

So the service isn't starting that you're trying to use to get
counters from? nsclient++ seems to work okay, not tested on 2008 yet,
pretty soon though.

I don't have that counter monitored, but I do have RAS monitored with
nsclient++.
-- 
Jon Angliss


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null