checking services with check_nt

Javier Garcia jgarcia at suse.com.ve
Sat May 29 22:56:59 CEST 2004



Hi,
if you read the readme.htm included in the ns_client.tgz file, you can
found this information:


---------------------------------------------------------------------------
Services States

Syntax: check_nt -H <hostname> -p <port> -v SERVICESTATE [-d SHOWALL] -l
<service 1>[,<service 2>,<service 3>,...]

    * <service> should be the real name of the service, not the displayed
name. You can find this information when going to the registry for the
corresponding service :
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

or use the free utility: 'Service Manager NT' :
http://www-rnks.informatik.tu-cottbus.de/~fsch/english/nttols.htm

    * -d SHOWALL can be specified if you want to see all tested services
including started ones.

You can specify serveral services in one request. No blank should appear
in the list !

If not all services are running, you get the faulty one(s) and a critical
state.

Example:
./check_nt -H 192.168.1.1 -p 1248 -v SERVICESTATE -d SHOWALL -l
LanmanServer,Schedule

------------------------------------------------------------------------------------

Then, as you can see, first you have to check if the service is in ithe
list, and the must be without blank spaces...

chers,

j.

----
Javier Garcia
SuSE Linux C.A.
jgarcia at suse.com.ve
0416-8678334


On Thu, 20 May 2004, Chris Purcell wrote:

> Nagios 1.1
> Red Hat Linux 9.0
>
> I'm having a problem with the check_nt plugin.   It only works for one or
> two services and the rest return "ServiceName: Unknown".
>
> This example doesn't work, I wonder if its because of the spaces in the
> name...
>
> root at reaction etc# /usr/local/nagios/libexec/check_nt -H 192.0.1.60 -v
> SERVICESTATE -l 'NetSaint NT Agent'
>  NetSaint NT Agent: Unknown
>
> This one works...
>
> root at reaction etc# /usr/local/nagios/libexec/check_nt -H 192.0.1.60 -v
> SERVICESTATE -l 'Alerter'
>  Alerter: Stopped
>
> This two don't work for some reason...
> root at reaction etc# /usr/local/nagios/libexec/check_nt -H 192.0.1.60 -v
> SERVICESTATE -l 'ClipBook'
>  ClipBook: Unknown
> root at reaction etc# /usr/local/nagios/libexec/check_nt -H 192.0.1.60 -v
> SERVICESTATE -l 'Telnet'
>  Telnet: Unknown
>
> Am I doing something wrong here?   Do I have to specify a password with
> '-s password'?   I tried that but it doesn't work.  Is it possible to
> specify a username to log in with as well?
>
> Thanks,
> Chris
>
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: Oracle 10g
> Get certified on the hottest thing ever to hit the market... Oracle 10g.
> Take an Oracle 10g class now, and we'll give you the exam FREE.
> http://ads.osdn.com/?ad_id149&alloc_id66&opÌk
> _______________________________________________
> 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
>


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id66&op=click
_______________________________________________
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