[Nagios-users] nsclient++ and network counters

2009-03-11 Thread Assaf Flatto

Hello List 

i must admit - my understanding of Windows is limited , now i need to find a 
way to monitor network 
usage on a windows machine , i tried the snmp route and got to the 
understanding ( from googling 
the subject ) that the way MS is implementing SNMP is the reason why i can not 
get what i want ,so 
now i am trying to do the same with the COUNTER option on the check_nt  .

i have the following check ;
check_nt -H x.x.x.x -p 1248 -v COUNTER -l \\Local Area Connection\\% 
,Network Useage is %.2f
the output is :
Network Useage is 0.00 | 'Network Useage is %.2f'=0.00%;0.00;0.00;

but i know that the answer is wrong as i am watching the network meter on the 
windows machine itself 
and see it at 25% .

I suspect that my query is wrong  - i assume the label , does anyone know what 
i should be using to 
get the correct query ?

Thanks


-- 
Assaf Flatto
SSP Ops Team
Linux System Administrator
169 Euston Road, London, NW1 2AE





IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.

We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.

Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK 
Limited by
email, you consent to us monitoring and reading any such correspondence.

Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.

Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, 
Brooklands, Weybridge. Surrey. KT13 0NY
 
 

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
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] nsclient++ and network counters

2009-03-11 Thread Jim Avery
2009/3/11 Assaf Flatto assaf.fla...@ssp-intl.com:

 Hello List

 i must admit - my understanding of Windows is limited , now i need to find a 
 way to monitor network
 usage on a windows machine , i tried the snmp route and got to the 
 understanding ( from googling
 the subject ) that the way MS is implementing SNMP is the reason why i can 
 not get what i want ,so
 now i am trying to do the same with the COUNTER option on the check_nt  .

 i have the following check ;
 check_nt -H x.x.x.x -p 1248 -v COUNTER -l \\Local Area Connection\\% 
 ,Network Useage is %.2f
 the output is :
 Network Useage is 0.00 | 'Network Useage is %.2f'=0.00%;0.00;0.00;

 but i know that the answer is wrong as i am watching the network meter on the 
 windows machine itself
 and see it at 25% .

 I suspect that my query is wrong  - i assume the label , does anyone know 
 what i should be using to
 get the correct query ?

 Thanks


You need to find the name of the performance counter on your Windows
server.  I'm pretty sure there isn't one called \Local Area
Connection\%.  On your Windows system go in to Administrative Tools /
Performance and add the counter you want to look at.  Once you can see
it in the performance tool, right-click on it and click Properties
to see the full name of the counter which you want to monitor.

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
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