Page 1 of 2

services

Posted: Tue Jun 03, 2014 9:17 am
by kimjaggi
1. I want to monitor few specific services on win2008 R2 server.
I check online and found check_winsvc plugin, but it checks all automatic services which is not something I want. I want to monitor only 2 specific services and get email if any of them has stopped working.
Any suggestions?

Re: services

Posted: Tue Jun 03, 2014 9:38 am
by eloyd
nsclient++ would most likely be what you're looking for.

Re: services

Posted: Tue Jun 03, 2014 9:44 am
by slansing
Yep, nsclient or NCPA would work for this, take a look at:

http://nagios.sourceforge.net/docs/3_0/ ... ndows.html

Re: services

Posted: Tue Jun 03, 2014 9:49 am
by kimjaggi
I dont want to use NSClient++, agentless is better option

Re: services

Posted: Tue Jun 03, 2014 9:53 am
by eloyd
You need something running on the Windows box that can check things on the Windows box. That's going to be an agent or a web server or an application of some sort that can chec things and respond to Nagios as to whether the things are "up" or "down."

It might help to know what you're monitoring. Perhaps you could probe a port to see if the service is listening? Perhaps you can hit a web page and look for an expected result? Perhaps you can install SSH or WinRM and query things by running scripts on the Windows box?

In the end though, all those things are basically agents.... :twisted:

Re: services

Posted: Tue Jun 03, 2014 9:59 am
by kimjaggi
I understand what you said but I wanted to avoid installation of agents on machines, last time I used check_wmi to monitor the win server. But I am not sure if I can use WMI plus to monitor single service as well.
or may be I can use snmp

Re: services

Posted: Tue Jun 03, 2014 3:20 pm
by scottwilkerson
kimjaggi wrote:I understand what you said but I wanted to avoid installation of agents on machines, last time I used check_wmi to monitor the win server. But I am not sure if I can use WMI plus to monitor single service as well.
or may be I can use snmp
Both WMI as well as SNMP can be used to monitor single services.

Re: services

Posted: Tue Jun 03, 2014 3:49 pm
by kimjaggi
Ok. I will give it a try and let you guys know.

Re: services

Posted: Wed Jun 04, 2014 12:51 pm
by tmcdonald
We'll keep this thread open for you then

Re: services

Posted: Thu Jun 05, 2014 5:44 am
by kimjaggi
Actually It is SAP server (on win 2008),. All I have to do is - monitor Drives (C:, D:, ...) and monitor two services SAP_00 and SAP DBTech

I couldn't find a way to monitor these two special services , I don't if I have to do something extraordinary because they are SAP services...
check_wmi does that? if yes it will be really kind, if you could tell me the check_command to use, I couldnt figure it out! or if you know some easy way to do this that is also okay. (except installing NSClient++ on server)