Notification if service is active

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Notification if service is active

Post by jkinning »

I may be over thinking this and it is Friday. I am tasked with creating a check to make sure a service isn't present and running. The service is the VMware Converter service. On Windows you can simply run the VMware Converter and the converter will install, startup, run and then remove everything after it has converted the machine. I need to make sure no one takes a production server and converts it locally and walks off premise. Is there a way Nagios could check servers for this service and if the service is present and running send out a notification otherwise that status would be alright? I know it is possible I guess I am trying to figure out how that would work.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Notification if service is active

Post by BanditBBS »

What agent(if any)do you use for your Windows checks?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Notification if service is active

Post by jkinning »

NSClient++ is the agent I am using.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Notification if service is active

Post by BanditBBS »

Well, you could use the negate plugin. That way, run the check for the service, if it is stopped or doesn't exist, use negate to change that to OK and if it is there and running, use negate to change to CRITICAL.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Notification if service is active

Post by hsmith »

I'll go ahead and give my '+1' to the recommendation of using Negate. We have a good article on using it here. In your situation, I would probably crank the frequency of that check up as well, just to make sure it catches it in time.
Former Nagios Employee.
me.
Locked