critical if status running

Sixhammers sixhammers at gmail.com
Mon May 11 22:19:29 CEST 2015


Nice!

On Mon, May 11, 2015 at 1:15 PM, Mark A. Lappin <MarkL at lmfj.com> wrote:

>  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
>
> }
>
>
>
>
>
>
>
>
>
> *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 at lmfj.comMarkL
> @lmfj.com
> 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 at monitoring-plugins.org]
> *On Behalf Of *Brent Wegmann
> *Sent:* Monday, May 11, 2015 3:05 PM
> *To:* help at 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20150511/f39e8852/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: minibox.png
Type: image/png
Size: 11244 bytes
Desc: not available
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20150511/f39e8852/attachment.png>


More information about the Help mailing list