Page 1 of 1
Notification if service is active
Posted: Fri Nov 06, 2015 4:01 pm
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.
Re: Notification if service is active
Posted: Fri Nov 06, 2015 4:40 pm
by BanditBBS
What agent(if any)do you use for your Windows checks?
Re: Notification if service is active
Posted: Mon Nov 09, 2015 8:28 am
by jkinning
NSClient++ is the agent I am using.
Re: Notification if service is active
Posted: Mon Nov 09, 2015 9:06 am
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.
Re: Notification if service is active
Posted: Mon Nov 09, 2015 10:39 am
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.