Fwd: How to monitor specific windows services using nsclient++
Daniel Ceola
DCeola at twgi.net
Wed Jun 8 20:41:43 CEST 2011
Hi,
I use NSClient++ to monitor a number of services on our servers here. For example, DNS Server, DHCP Server, IIS, Exchange store, and some services for line of business apps.
The command definition I use is:
# 'check_nt' command definition
define command{
command_name check_nt
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$
}
Service definition:
#dhcp server
define service{
use generic-service
host_name servername
service_description DHCP Server
check_command check_nt!SERVICESTATE!-d SHOWALL -l dhcpserver
}
# Exchange Store service
define service{
use generic-service
host_name exchangeserver
service_description Exchange Store Service
check_command check_nt!SERVICESTATE!-d SHOWALL -l MSExchangeIS
}
>From what I have read, you need to use the service name that you would use if starting/stopping the service from a command line, rather than the display name from the services.msc snapin. You can easily find the service name by running "sc query" at command prompt from the server (or by looking it up in the system registry)
Hope this helps!
Thanks,
Daniel Ceola
From: Manish Kumar [mailto:manikumar85 at gmail.com]
Sent: Wednesday, June 08, 2011 2:06 PM
To: nagios-users
Subject: [Nagios-users] Fwd: How to monitor specific windows services using nsclient++
In addition to my previous question...just wanted to elaborate..
How i can monitor which important windows services are running on a remote windows servers and their state using NSClient++ installed on the windows servers and check_nt plugin.
thanks..
---------- Forwarded message ----------
From: Manish Kumar <manikumar85 at gmail.com<mailto:manikumar85 at gmail.com>>
Date: Wed, Jun 8, 2011 at 11:27 PM
Subject: How to monitor specific windows services using nsclient++
To: nagios-users at lists.sourceforge.net<mailto:nagios-users at lists.sourceforge.net>
Hi there,
Actually i want to monitor specific windows services using nagios and nsclient++ agent installed on Windows servers...
Also i don't know which critical windows services to monitor exactly but my boss says it should be done... Can you people give me some help regarding this..
Thanks...in advance...
--
Thanks
Manish Kumar
http://in.linkedin.com/in/manishkumar85
<http://cens.cdac.in/>
--
Thanks
Manish Kumar
http://in.linkedin.com/in/manishkumar85
<http://cens.cdac.in/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110608/5cdb5ae8/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
-------------- next part --------------
_______________________________________________
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