Update NSClient Service Name Tips

Damien Manuel DManuel at continuumit.com.au
Thu Sep 12 01:50:36 CEST 2002


Greetings,

Greetings,

In dealing with monitoring PCs with Nagios here are some useful tools to
use to find out what counters there are on a Micro$oft system and to
find out what the name of services are.

To find out the counters so you can monitor mail queues etc download
Ctrlist from Microsoft. It's a free (scary...its free from M$)tool that
you run on the command line to generate a list of counters the system
has and what they are with full descriptions.

Example:

ctrlist -c \\127.0.0.1 > list.txt

This will then generate a file called list.txt with all the counters.

Some sample output is as follows (please note that this is only some
Exchange counters):

"O","21514","MSExchangeIMC","Novice","0","0","21515","The Microsoft
Exchange Internet Mail Service"
"C","21514","MSExchangeIMC","21516","Queued
MTS-IN","Novice","0x00010000","PERF_COUNTER_RAWCOUNT","4","1","21517","T
he number of messages awaiting final delivery in MS Exchange Server"
"C","21514","MSExchangeIMC","21518","Bytes Queued
MTS-IN","Novice","0x00010000","PERF_COUNTER_RAWCOUNT","4","1","21519","T
he size, in bytes, of the messages that have been converted from
Internet Mail and are awaiting final delivery within MS Exchange Server"
"C","21514","MSExchangeIMC","21520","Messages Entering
MTS-IN","Novice","0x00010000","PERF_COUNTER_RAWCOUNT","4","1","21521","T
he number of messages entering the MTS-IN folder after conversion from
Internet Mail format per hour"
"C","21514","MSExchangeIMC","21522","Queued
MTS-OUT","Novice","0x00010000","PERF_COUNTER_RAWCOUNT","4","1","21523","
The number of messages waiting to be converted to Internet Mail format"
"C","21514","MSExchangeIMC","21524","Bytes Queued
MTS-OUT","Novice","0x00010000","PERF_COUNTER_RAWCOUNT","4","1","21525","
The size, in bytes, of the messages waiting to be converted to Internet
Mail format"
"C","21514","MSExchangeIMC","21526","Messages Entering
MTS-OUT","Novice","0x00010000","PERF_COUNTER_RAWCOUNT","4","1","21527","
Messages that have entered the Internet Mail Service"
"C","21514","MSExchangeIMC","21528","Messages Leaving
MTS-OUT","Novice","0x00010000","PERF_COUNTER_RAWCOUNT","4","1","21529","
The number of messages entering the Outbound Queue per hour"
"C","21514","MSExchangeIMC","21530","Connections
Inbound","Novice","0x00010000","PERF_COUNTER_RAWCOUNT","4","1","21531","
The number of current SMTP connections to the Internet Mail Service
established by other SMTP hosts"
"C","21514","MSExchangeIMC","21532","Connections
Outbound","Novice","0x00010000","PERF_COUNTER_RAWCOUNT","4","1","21533",
"The number of current SMTP connections the Internet Mail Service has
established to other SMTP hosts"
"C","21514","MSExchangeIMC","21534","Connections Total
Outbound","Novice","0x00010000","PERF_COUNTER_RAWCOUNT","4","1","21535",
"The total number of successful SMTP connections that the Internet Mail
Service has established since it was started"
"C","21514","MSExchangeIMC","21536","Connections Total
Inbound","Novice","0x00010000","PERF_COUNTER_RAWCOUNT","4","1","21537","
The total number of SMTP connections the Internet Mail Service has
accepted from other hosts since it was started"
"C","21514","MSExchangeIMC","21538","Connections Total
Rejected","Novice","0x00010000","PERF_COUNTER_RAWCOUNT","4","1","21539",
"The total number of SMTP connections that the Internet Mail Service has
rejected from other hosts since it was started"
"C","21514","MSExchangeIMC","21540","Connections Total
Failed","Novice","0x00010000","PERF_COUNTER_RAWCOUNT","4","1","21541","T
he total number of SMTP connections the Internet Mail Service has
attempted to other hosts that failed since it was started"
"C","21514","MSExchangeIMC","21542","Queued
Outbound","Novice","0x00010000","PERF_COUNTER_RAWCOUNT","4","1","21543",
"The number of messages from MS Exchange Server, that are queued to be
delivered to the Internet"
"C","21514","MSExchangeIMC","21544","Queued
Inbound","Novice","0x00010000","PERF_COUNTER_RAWCOUNT","4","1","21545","
The number of messages received from the Internet destined for MS
Exchange Server"

Hence if you want to monitor the number of messages in the mail queue,
your check would look like:

/usr/local/nagios/libexec/check_nt -H $HOSTADDRESS$ -v COUNTER -l
"\\MSExchangeIMC\Queued Outbound","%.f Messages in Queue" -p 1248 -w
$ARG1$ -c $ARG2$

To download Ctrlist go to:
http://www.microsoft.com/windows2000/techinfo/reskit/tools/existing/ctrl
ist-o.asp

To get a list of services and their names download Typhon from
http://www.nextgenss.com/typhon/eval.html

Version 1 is free, but version II is not. However version 1 is
sufficient. Run Typhon and perform a NT check. This will generate a list
of services and some other stuff. The report will be in HTML and some
sample output looks like the following:

Service name	:AvSynMgr
Display Name	:AVSync Manager
Binary Path	:"C:\Program Files\Network
Associates\VirusScan\Avsynmgr.exe"
Service is running in the security context of LocalSystem

------------------------------------------------------------------------
--------Service name	:awhost32
Display Name	:pcAnywhere Host Service
Binary Path	:C:\Program Files\Symantec\pcAnywhere\awhost32.exe
Service is running in the security context of LocalSystem

Regards,
 
Damien Manuel
 

-----Original Message-----
From: Rusch, Daniel [mailto:Daniel.Rusch at GlobalCrossing.com] 
Sent: Thursday, 12 September 2002 12:55 AM
To: Nagios-User (E-mail)
Subject: [Nagios-users] Update NSClient Service Name Tips

Further info.  The idea of using the executable name doesn't always work
(it
will on 90%+ of the services), take the "World Wide Publishing Service"
for
example. It's executable is inetinfo, but the service name is W3svc.  

I just noticed that under My Computer/Manage/Services  Find the service
you
want, select it, and then view it's properties. Notice that the first
item
is "Service Name"  bingo that's what we want.

Of course if you can use the free tool then this is all mute, but those
of
us who can't this should get the info you need.

Sincerely,

Daniel G. Rusch
 


-------------------------------------------------------
In remembrance
www.osdn.com/911/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users


-------------------------------------------------------
In remembrance
www.osdn.com/911/




More information about the Users mailing list