Re: [Nagios-users] Fwd: How to monitor specific windows services using nsclient++

2011-06-09 Thread Matthew Jurgens

On 9/06/2011 4:59 AM, Manish Kumar wrote:

Thanks...@ all for your prompt help..i will try it out..

@Claudio :) exactly.. thanks..


What you might find more useful is not to have to install NSClient++ on 
any servers at all, nor to rely on a proxy NSClient++, nor to use NRPE.


All of the checks that have been listed so far can be done in a 
client-less manner using check_wmi_plus

www.edcint.co.nz/checkwmiplus

The site lists the Nagios command definitions you need.
You can check all the services in a single check

Here's a manually run example:
/opt/nagios/bin/plugins/check_wmi_plus.pl -H win2008r2a -m checkservice 
-u USER -p PASS -a auto
OK - Found 54 Services(s), 51 OK and 3 with problems. 'Shell Hardware 
Detection' (ShellHWDetection) is Stopped, 'Software Protection' (sppsvc) 
is Stopped, 'Windows Licensing Monitoring Service' (WLMS) is 
Stopped.|'Total Service Count'=54; 'Service Count OK State'=51; 'Service 
Count Problem State'=3;


--
Smartmon System Monitoring http://www.smartmon.com.au
www.smartmon.com.au http://www.smartmon.com.au
--
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___
Nagios-users mailing list
Nagios-users@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

[Nagios-users] Fwd: How to monitor specific windows services using nsclient++

2011-06-08 Thread Manish Kumar
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 manikuma...@gmail.com
Date: Wed, Jun 8, 2011 at 11:27 PM
Subject: How to monitor specific windows services using nsclient++
To: nagios-users@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/
--
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___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] Fwd: How to monitor specific windows services using nsclient++

2011-06-08 Thread Daniel Ceola
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_namecheck_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:manikuma...@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 manikuma...@gmail.commailto:manikuma...@gmail.com
Date: Wed, Jun 8, 2011 at 11:27 PM
Subject: How to monitor specific windows services using nsclient++
To: 
nagios-users@lists.sourceforge.netmailto:nagios-users@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/
--
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___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] Fwd: How to monitor specific windows services using nsclient++

2011-06-08 Thread Manish Kumar
Hi Claudio,
*
*
Thanks...This is what i am looking for exactly..

- Standard Services (lanmanserver, .. whatever you want)
- Specific Services (e.g. for DNS Server 'dns', DHCP Server)

can you give me the exact command syntax that to be written in
commands.cfg/windows.cfg

something like this...


define service{
use generic-service
host_name   winserver
service_description W3SVC
check_command   check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
}

Also i would like to get e-mail notification if this particular
service gets down or stopped someways..

How to write the command for this..


Thanks..

Manish




On Wed, Jun 8, 2011 at 11:39 PM, Claudio Kuenzler 
c...@claudiokuenzler.comwrote:

 Hi Manish,

 I personally monitor the following things on a Windows host:

 - CPU
 - Memory
 - Disk (all Partitions)
 - Standard Services (lanmanserver, .. whatever you want)
 - Specific Services (e.g. for DNS Server 'dns', DHCP Server)

 For the services you will find the names of the services in Manage Computer
 - Services. Depending on what your machine is doing, you should create a
 list for each server, which services to monitor.

 On Wed, Jun 8, 2011 at 8:05 PM, Manish Kumar manikuma...@gmail.comwrote:

 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 manikuma...@gmail.com
 Date: Wed, Jun 8, 2011 at 11:27 PM
 Subject: How to monitor specific windows services using nsclient++
 To: nagios-users@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/


 --
 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
 ___
 Nagios-users mailing list
 Nagios-users@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




 --
 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
 ___
 Nagios-users mailing list
 Nagios-users@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




-- 
Thanks
Manish Kumar
http://in.linkedin.com/in/manishkumar85
 http://cens.cdac.in/
--
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___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] Fwd: How to monitor specific windows services using nsclient++

2011-06-08 Thread Claudio Kuenzler
Well this is exactly what you need, you already wrote it. Just replace the
Servicename by the service you want to check, eg lanmanserver:

define service{
use generic-service
host_name   winserver
service_description Server Services
check_command   check_nt!SERVICESTATE!-d SHOWALL -l lanmanserver
}


or for several services at the same time:

define service{
use generic-service
host_name   winserver
service_description Server Services
check_command   check_nt!SERVICESTATE!-d SHOWALL -l
lanmanserver, dnsserver
}




On Wed, Jun 8, 2011 at 8:42 PM, Manish Kumar manikuma...@gmail.com wrote:

 Hi Claudio,
 *
 *
 Thanks...This is what i am looking for exactly..

 - Standard Services (lanmanserver, .. whatever you want)
 - Specific Services (e.g. for DNS Server 'dns', DHCP Server)

 can you give me the exact command syntax that to be written in
 commands.cfg/windows.cfg

 something like this...

 define service{
 use generic-service
 host_name   winserver
 service_description W3SVC
 check_command   check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
 }

 Also i would like to get e-mail notification if this particular service gets 
 down or stopped someways..

 How to write the command for this..


 Thanks..

 Manish




 On Wed, Jun 8, 2011 at 11:39 PM, Claudio Kuenzler 
 c...@claudiokuenzler.comwrote:

 Hi Manish,

 I personally monitor the following things on a Windows host:

 - CPU
 - Memory
 - Disk (all Partitions)
 - Standard Services (lanmanserver, .. whatever you want)
 - Specific Services (e.g. for DNS Server 'dns', DHCP Server)

 For the services you will find the names of the services in Manage
 Computer - Services. Depending on what your machine is doing, you should
 create a list for each server, which services to monitor.

 On Wed, Jun 8, 2011 at 8:05 PM, Manish Kumar manikuma...@gmail.comwrote:

 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 manikuma...@gmail.com
 Date: Wed, Jun 8, 2011 at 11:27 PM
 Subject: How to monitor specific windows services using nsclient++
 To: nagios-users@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/


 --
 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
 ___
 Nagios-users mailing list
 Nagios-users@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




 --
 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
 ___
 Nagios-users mailing list
 Nagios-users@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




 --
 Thanks
 Manish Kumar
 http://in.linkedin.com/in/manishkumar85
  http://cens.cdac.in/


 --
 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
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 

Re: [Nagios-users] Fwd: How to monitor specific windows services using nsclient++

2011-06-08 Thread Manish Kumar
Thanks...@ all for your prompt help..i will try it out..

@Claudio :) exactly.. thanks..


On Thu, Jun 9, 2011 at 12:19 AM, Claudio Kuenzler 
c...@claudiokuenzler.comwrote:

 Well this is exactly what you need, you already wrote it. Just replace the
 Servicename by the service you want to check, eg lanmanserver:

 define service{
 use generic-service
 host_name   winserver
 service_description Server Services
 check_command   check_nt!SERVICESTATE!-d SHOWALL -l 
 lanmanserver
 }


 or for several services at the same time:

 define service{
 use generic-service
 host_name   winserver
 service_description Server Services
 check_command   check_nt!SERVICESTATE!-d SHOWALL -l 
 lanmanserver, dnsserver
 }




 On Wed, Jun 8, 2011 at 8:42 PM, Manish Kumar manikuma...@gmail.comwrote:

 Hi Claudio,
 *
 *
 Thanks...This is what i am looking for exactly..

 - Standard Services (lanmanserver, .. whatever you want)
 - Specific Services (e.g. for DNS Server 'dns', DHCP Server)

 can you give me the exact command syntax that to be written in
 commands.cfg/windows.cfg

 something like this...

 define service{
 use generic-service
 host_name   winserver
 service_description W3SVC
 check_command   check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
 }

 Also i would like to get e-mail notification if this particular service gets 
 down or stopped someways..

 How to write the command for this..


 Thanks..

 Manish




 On Wed, Jun 8, 2011 at 11:39 PM, Claudio Kuenzler c...@claudiokuenzler.com
  wrote:

 Hi Manish,

 I personally monitor the following things on a Windows host:

 - CPU
 - Memory
 - Disk (all Partitions)
 - Standard Services (lanmanserver, .. whatever you want)
 - Specific Services (e.g. for DNS Server 'dns', DHCP Server)

 For the services you will find the names of the services in Manage
 Computer - Services. Depending on what your machine is doing, you should
 create a list for each server, which services to monitor.

 On Wed, Jun 8, 2011 at 8:05 PM, Manish Kumar manikuma...@gmail.comwrote:

 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 manikuma...@gmail.com
 Date: Wed, Jun 8, 2011 at 11:27 PM
 Subject: How to monitor specific windows services using nsclient++
 To: nagios-users@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/


 --
 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
 ___
 Nagios-users mailing list
 Nagios-users@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




 --
 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
 ___
 Nagios-users mailing list
 Nagios-users@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




 --
 Thanks
 Manish Kumar
 http://in.linkedin.com/in/manishkumar85
  http://cens.cdac.in/


 --
 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.