check_nt - COUNTER

Jon jonsml at gmail.com
Sat Aug 20 00:05:35 CEST 2005


Did you download the NSClient from http://nsclient.ready2run.nl/download.htm
?  The zip file comes with a readme.html that has examples how to use it.

As for me I define the following in my checkcommands.cfg:

# 'check_nt' command definition
define command{
        command_name    check_nt
        command_line    $USER1$/check_nt -H $HOSTADDRESS$ -v $ARG1$ -l
$ARG2$
        }

(I use the host's IP address instead of the hostname)
The $HOSTADDRESS$ nagios will pull from your hosts.cfg

And then if you're checking multiple hosts it's better to define a hostgroup
that will be using it.  Also you have to define the service containing the
'check_command' like so:

check_command	check_nt!UPTIME

If need to check other things such as processor time, you don't have to do
anything except define a new service like so:

check_command	check_nt!COUNTER!"\Processor(_Total)\% Processor Time"

I hope that works.  I omit port number because I run nagios on the internal
IP, but I hope I got that right and will help you out.


-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of EXT-Fuentes,
James P
Sent: Friday, August 19, 2005 12:47 PM
To: Anthony Montibello; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] check_nt - COUNTER

> What Windows client are you connecting check_nt to?  NC_Net or NS_Client
> becauses it may be a problem with the client and not check_nt
 
I'm using NSClient: NSClient++-0.2.4a.zip is the bundle I downloaded.

> NOTE: most applications will return a 0 for %processor time, because
> it is an value for the instant it is checked.  The majority of %
> processor time whould ussually be  on the agent that is doing the
> check and on System Idle.  so double check via WMI or  performance
> counter that the %processor time should be something other than 0.  IT
> may be better to check something under System like threads or
> processes.

I've tried checking what you mentioned as well as some other things. I even
tried 
checking on different systems which actually gave me some output so now I'm
thinking 
there may be a problem with the particular system I really need to check.
I'll have to 
investigate some more.

> however the syntex of your command should be:
> Example: check_nt -H hostname -p 12489 -v COUNTER -l
> "\\Process(hmi)\\% Processor Time"," <file://\\Process(hmi)\\%
> Processor Time> "

Apparently, this %$%@& web mail client we're forced to use here put that
crap in
my message. I love how microsoft is always trying to help me out. I did NOT
put that 
"<file:blah blah" BS in there. I opted not to use a description after the
counter I want to 
check just to keep it simple for now. I HATE THIS FRIGGIN' MAIL CLIENT!
 
If anybody has some examples of there own command line sytax for NSClient
I'd be appreciative
to see them. Although, as I mentioned above, there may be a problem with the
system running
the client.
 
Thanks,
-Jim

On 8/17/05, EXT-Fuentes, James P <James.P.Fuentes at boeing.com> wrote:
> Greetings list,
>
> I am using:
>
> check_nt -V
> check_nt (nagios-plugins 1.4) 1.39
>
> I've looked through the archives and attempted to use various examples
found there but can't seem to get the info I am looking for.
>
> Specifically, I would like to look at different characteristics of a
process.
>
> Example: check_nt -H hostname -p 12489 -v COUNTER -l "\\Process(hmi)\\%
Processor Time <file://\\Process(hmi)\\% Processor Time
<file://\\Process(hmi)\\% Processor Time> > "
>
> I've brought up the windows system monitor which clearly shows
considerable resource consumption by this process but I still get nothing
but "0" when I run this check.
>
> Does anybody have syntax examples of "Process" COUNTER checks that
actually return something?
>
> TIA,
> -Jim
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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
>


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Nagios-users mailing list
Nagios-users at 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



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Nagios-users mailing list
Nagios-users at 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



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list