<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"MV Boli";
        panose-1:2 0 5 0 3 2 0 9 0 0;}
@font-face
        {font-family:"Californian FB";
        panose-1:2 7 4 3 6 8 11 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">I have a similar requirement and use the below service definition:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F497D">define service {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F497D">        use                     generic-service<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F497D">        host_name               LMFJASCTS<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F497D">        service_description     Explorer Running - Terminal Services<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F497D">        check_command           check_nt!PROCSTATE! -d SHOWALL -l "Explorer.exe"=stopped<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F497D">        check_period            lmfj-store-hours<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F497D">}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div style="FONT-SIZE: 10pt; FONT-FAMILY: ARIAL" alink="gray" link="black" vlink="black">
<p style="MARGIN-BOTTOM: 6pt; MARGIN-TOP: 6pt"><br>
</p>
<table style="HEIGHT: 1px; WIDTH: 802px" cellspacing="2" border="0">
<tbody>
<tr style="TEXT-DECORATION: ; BORDER-TOP-COLOR: ; BORDER-LEFT-COLOR: ; COLOR: ; BORDER-BOTTOM-COLOR: ; BORDER-RIGHT-COLOR: ">
<td style="WIDTH: 39px" valign="middle"><img src="cid:minibox.png"> </td>
<td valign="top"><strong><font face="Helvetica"><font style="FONT-SIZE: 10pt; TEXT-DECORATION: underline" color="black"><u>Mark A. Lappin, CCNA, MCITP: Enterprise Administrator</u></font><br>
</font></strong><font style="FONT-SIZE: 8pt" color="#5b5959" font="">Director of Information Technology<br>
Lee Michaels Fine Jewelry - Corporate Office<br>
<font color="#5b5959">11314 Cloverland Ave | </font><font color="#5b5959">Baton Rouge,
</font><font color="#5b5959">LA </font><font color="#5b5959">70809</font><br>
[O] <font color="#5b5959">225.368.3645</font> [F] <font color="#5b5959">225.368.3675</font> [C]
<font color="#5b5959">225-362-2770</font> [E] MarkL@lmfj.comMarkL@lmfj.com<br>
</font><font style="FONT-SIZE: 8pt" color="black"><a style="TEXT-DECORATION: none" href="http://www.lmfj.com"><font color="black">www.lmfj.com</font></a><strong> |
</strong><a style="TEXT-DECORATION: none" href="https://www.facebook.com/leemichaelsjewelry"><font color="black">Facebook</font></a><strong> |
</strong><a style="TEXT-DECORATION: none" href="http://instagram.com/leemichaelsjewelry"><font color="black">Instagram</font></a><strong> |
</strong><a style="TEXT-DECORATION: none" href="http://www.lmfj.com/embed_holder.php"><font color="black">The Lee Michaels Story</font></a>
</font></td>
</tr>
</tbody>
</table>
<font style="FONT-SIZE: 8pt">
<hr>
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.</font>
<p></p>
</div>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Help [mailto:help-bounces+markl=lmfj.com@monitoring-plugins.org]
<b>On Behalf Of </b>Brent Wegmann<br>
<b>Sent:</b> Monday, May 11, 2015 3:05 PM<br>
<b>To:</b> help@monitoring-plugins.org<br>
<b>Subject:</b> critical if status running<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal">I’m using check_nt!PROCSTATE!-d SHOWALL -l process.exe to alert me if a process is down.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I want to do the opposite.  Get at status of Critical or warning when a specific process
<b>is running </b>and status of ok when process is missing or service is not running… Can check_nt!SERVICESTATE  do this too?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks in advance,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-family:"MV Boli";color:#365F91">Brent Wegmann</span><span style="font-size:9.0pt;font-family:"Californian FB",serif;color:#595959"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Californian FB",serif;color:#595959">Director of Information Technology<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Californian FB",serif;color:#595959">Maquoketa Valley REC
<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>