RE: critical if status running

"Mark A. Lappin" <[email protected]> Mon, 11 May 2015 20:15:45 +0000
Newsgroups gmane.network.nagios.plugins
Message-ID <eb7db610ea8d41d9a5d35bdb7fdc0b14__29909.7714633264$1431375515$gmane$org@LMFJEX13.lmfj.com>
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] [email protected]@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.com-BzZFE/[email protected]] On Behalf Of Brent Wegmann
Sent: Monday, May 11, 2015 3:05 PM
To: help-BzZFE/[email protected]
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
minibox.png (image/png, 11 KB) - not displayed