I have a similar requirement and use the below service definition:

define service {
        use                     generic-service
        host_name               LMFJASCTS
        service_description     Explorer Running - Terminal Services
        check_command           check_nt!PROCSTATE! -d SHOWALL -l 
"Explorer.exe"=stopped
        check_period            lmfj-store-hours
}





[cid:minibox.png]       Mark A. Lappin, CCNA, MCITP: Enterprise Administrator
Director of Information Technology
Lee Michaels Fine Jewelry - Corporate Office
11314 Cloverland Ave | Baton Rouge, LA 70809
[O] 225.368.3645 [F] 225.368.3675 [C] 225-362-2770 [E] 
MarkL@lmfj.comma...@lmfj.com
www.lmfj.com<http://www.lmfj.com> | 
Facebook<https://www.facebook.com/leemichaelsjewelry> | 
Instagram<http://instagram.com/leemichaelsjewelry> | The Lee Michaels 
Story<http://www.lmfj.com/embed_holder.php>
________________________________
This communication is privileged and confidential. If you are not the intended 
recipient, please notify the sender by reply e-mail and destroy all copies of 
this communication.
From: Help [mailto:help-bounces+markl=lmfj....@monitoring-plugins.org] On 
Behalf Of Brent Wegmann
Sent: Monday, May 11, 2015 3:05 PM
To: help@monitoring-plugins.org
Subject: critical if status running

Hi,
I'm using check_nt!PROCSTATE!-d SHOWALL -l process.exe to alert me if a process 
is down.

I want to do the opposite.  Get at status of Critical or warning when a 
specific process is running and status of ok when process is missing or service 
is not running... Can check_nt!SERVICESTATE  do this too?

Thanks in advance,

Brent Wegmann
Director of Information Technology
Maquoketa Valley REC

Reply via email to