services

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
kimjaggi
Posts: 44
Joined: Thu Apr 17, 2014 3:56 am

services

Post 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?
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: services

Post by eloyd »

nsclient++ would most likely be what you're looking for.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: services

Post by slansing »

Yep, nsclient or NCPA would work for this, take a look at:

http://nagios.sourceforge.net/docs/3_0/ ... ndows.html
kimjaggi
Posts: 44
Joined: Thu Apr 17, 2014 3:56 am

Re: services

Post by kimjaggi »

I dont want to use NSClient++, agentless is better option
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: services

Post 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:
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
kimjaggi
Posts: 44
Joined: Thu Apr 17, 2014 3:56 am

Re: services

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: services

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
kimjaggi
Posts: 44
Joined: Thu Apr 17, 2014 3:56 am

Re: services

Post by kimjaggi »

Ok. I will give it a try and let you guys know.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: services

Post by tmcdonald »

We'll keep this thread open for you then
Former Nagios employee
kimjaggi
Posts: 44
Joined: Thu Apr 17, 2014 3:56 am

Re: services

Post 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)
Locked