RE: Revisiting NT service monitoring
Seth Mitchell <[email protected]> Sun, 4 May 2003 14:35:20 -0500
| Newsgroups | gmane.network.netsaint.user |
|---|---|
| Message-ID | <F50520282C60D511849600306E07D1CA015DCF55@MGEX1> |
Ok. To get the options on any of the plugins, just do a ./[plugin name]
--help (e.g., ./check_nt --help ;for what it's worth).
If you're still using NetSaint, I don't think I can be of much help on the
syntax and location...I forget. However, on Nagios, here is an entry in my
CheckCommands.cfg file:
# 'check-lanman' command definition
define command{
command_name check-lanman
command_line $USER1$/check_nt -H $HOSTADDRESS$ -v SERVICESTATE -l
lanmanserver
}
Replace lanmanserver with spooler, and change the labels accordingly, and
you should have it. Then you just setup an entry in the services.cfg to
check the server, and voila!
-Seth
[email protected]
-----Original Message-----
From: Scott Ehrlich [mailto:[email protected]]
Sent: Sunday, May 04, 2003 12:12 PM
To: Seth Mitchell
Cc: [email protected]
Subject: RE: [netsaint] Revisiting NT service monitoring
Almost there :-)
Your manual check is great, but our hosts.cfg file takes the form:
# host service[host]=service-to-check;various-numbers;check_service-to-check
In the above, for service[host], the word service is actually there. Host
is replaced with the hostname of the machine we check.
So, for me, I tried:
service[our-nt-server]=combinations-of-spooler-and-service;numbers;check_nt
[then combinations of spooler and service, but kept getting errors. At
times, Netsaint would not restart because check_nt needs an additional
service variable to know what to look for, and I don't know the check_nt
options.
Help here would be great.
Thanks.
Scott
On Sun, 4 May 2003, Seth Mitchell wrote:
>
> How about:
>
> ./check_nt -H [ip address] -v SERVICESTATE -l spooler
>
> -Seth Mitchell
>
> [email protected]
>
> -----Original Message-----
> From: Scott Ehrlich [mailto:[email protected]]
> Sent: Saturday, May 03, 2003 6:16 PM
> To: [email protected]
> Subject: [netsaint] Revisiting NT service monitoring
>
>
> Several months ago I posted a question to the list, with some
> background.
>
> I'll repeat the info here since I didn't get the full answer I sought.
>
> We have a Linux box running Netsaint, and an NT 4 Advanced Server
> Primary Domain Controller which primarly serves printers to the
> Windows and Macintosh community and acts as a software installation
> repository. It has nsclient installed and running as a service,
> though I don't know what version the client is.
>
> I'm looking for the exact Netsaint syntax for the Linux side to query
> the NT Spooler Service so we can be paged if the service on the NT
> server dies. I know port 445/tcp is for Windows File and Print
> Sharing, but that doesn't say anything about the status of the spooler
> service.
>
> We also have an Appletalk network with Services for Macintosh installed,
> and are running Service Pack 6a with the latest patches. This also means
> Print Service for Macintosh is running, if that makes any difference.
>
> Thanks for specific leads.
>
> Scott
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Netsaint-users mailing list [email protected]
> https://lists.sourceforge.net/lists/listinfo/netsaint-users
>
>
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf