RE: Revisiting NT service monitoring
"Wayne Harmsworth" <[email protected]> Tue, 20 May 2003 08:29:39 +1000
| Newsgroups | gmane.network.netsaint.user |
|---|---|
| Message-ID | <000001c31e56$230ea950$fa5f16ac@SYDWHARM> |
To get this in your output
Tomcat Service OK 20-05-2003 08:04:07 4d 21h 3m 2s 1/3 Apache Tomcat 4.1:
Started
You need this in your checkcommands.cfg
# 'check_nt_service' command definition
define command{
command_name check_nt_service
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v SERVICESTATE -d
SHOWALL -l $ARG1$
}
and u need this in your services.cfg
define service{
use generic-service ; Name of service template to use
host_name JV-ITVBLD1
service_description Tomcat Service
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 60
retry_check_interval 5
contact_groups itv-ops
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_nt_service!"Apache Tomcat 4.1"
}
Live Life to the Max!
-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of Scott
Ehrlich
Sent: Tuesday, 20 May 2003 1:02 AM
To: Seth Mitchell
Cc: [email protected]
Subject: Re: [netsaint] Revisiting NT service monitoring
Almost there.
We just had the service die on us again with no warning.
Here is the response from your line in our production environment:
./check_nt -H our_nt_server -v SERVICESTATE -l spooler
All services are running
Well, some services are not running, and I want to specifically target
the status of the spooler service. Continued searches through
groups.google and www.google turn up nothing. The Netsaint
documentation doesn't help, either, unless I'm looking in the wrong
place (not the first time!).
Any additional help (from anyone) would be appreciated.
Thanks in advance.
Scott
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: If flattening out C++ or Java
code to make your application fit in a relational database is painful,
don't do it! Check out ObjectStore. Now part of Progress Software.
http://www.objectstore.net/sourceforge
_______________________________________________
Netsaint-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/netsaint-users
Wayne Harmsworth (E-mail).vcf
(text/x-vcard, 462 B)
BEGIN:VCARD VERSION:2.1 N:Harmsworth;Wayne FN:Wayne Harmsworth (E-mail) ORG:Austar Communications TITLE:ITV Platform Support TEL;WORK;VOICE:(2) 9394-9815 TEL;CELL;VOICE:+61 0402 807 328 ADR;WORK;ENCODING=QUOTED-PRINTABLE:;;Level 29=0D=0A259 George Street;Sydney;NSW;2000;Australia LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Level 29=0D=0A259 George Street=0D=0ASydney, NSW 2000=0D=0AAustralia EMAIL;PREF;INTERNET:[email protected] REV:20020919T011205Z END:VCARD