How to Ignore Stopped Services

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jameyw
Posts: 54
Joined: Fri Mar 17, 2017 10:06 am

How to Ignore Stopped Services

Post by jameyw »

In Nagios XI, I have a check that checks SQL Server on one of my servers. One this server, there are 4 SQL Server Services: SQL Full Text Filter Daemon Launcher, SQL Server, SQL Active Directory Helper Service, and SQL Server Agent. On this server, SQL Server, SQL Active Directory Helper Service is not running and therefore causes a critical alarm/notification. How can I configure the check to ignore this service?

Thanks

Jamey
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: How to Ignore Stopped Services

Post by dwhitfield »

Is this a custom check or is this through the SQL Wizard? If it's a custom check, you'll just need to modify your script. If you post the script here, perhaps someone from the community can help you rewrite it. It probably makes sense to break it into 4 different checks, as it is checking 4 services.

Depending on your comfort level with XI, https://assets.nagios.com/downloads/nag ... gement.pdf may be of interest in setting all of this up.
jameyw
Posts: 54
Joined: Fri Mar 17, 2017 10:06 am

Re: How to Ignore Stopped Services

Post by jameyw »

This is through the SQL Wizard. I'm pretty new at this but I'm not opposed to learning more.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How to Ignore Stopped Services

Post by lmiltchev »

Have you tried dwhitfield's suggestion?
It probably makes sense to break it into 4 different checks, as it is checking 4 services.
Be sure to check out our Knowledgebase for helpful articles and solutions!
taandrews
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: How to Ignore Stopped Services

Post by taandrews »

I am having the same issue with SQL services being monitored via WMI. XI finds 6 services, 5 OK and with with problems (0 excluded) This is the stock WMI wizard nothing custom.
taandrews
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: How to Ignore Stopped Services

Post by taandrews »

In my previous post "XI finds 6 services, 5 OK and with with problems (0 excluded) " . This is just for 1 process, the SQL Server. Apparently is has subprocesses associated with it. XI finds 6 services, 5 OK and with with problems (0 excluded) for the SQL Server process monitor
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: How to Ignore Stopped Services

Post by tgriep »

If you are using the checkprocess mode for the check_wmi_plus plugin, you can setup an exclude for the command by addid a -3 string to exclude to the command.
Take a look at this link for more details on how to setup an exclude.
http://edcint.co.nz/checkwmiplus/?q=faq ... mmandlines
Be sure to check out our Knowledgebase for helpful articles and solutions!
taandrews
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: How to Ignore Stopped Services

Post by taandrews »

I see now. Last time I checked I didnt see the reply. I thought because it was an old post, no one would see it. Thanks. I am using the check_xi_service_wmiplus command. Does your solution still apply.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: How to Ignore Stopped Services

Post by tgriep »

Yes, it should still apply.
Be sure to check out our Knowledgebase for helpful articles and solutions!
taandrews
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: How to Ignore Stopped Services

Post by taandrews »

That did the trick! Thank you!
Locked