<div dir="ltr">Nice!</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 11, 2015 at 1:15 PM, Mark A. Lappin <span dir="ltr"><<a href="mailto:MarkL@lmfj.com" target="_blank">MarkL@lmfj.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="color:#1f497d">I have a similar requirement and use the below service definition:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1f497d">define service {<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1f497d">        use                     generic-service<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1f497d">        host_name               LMFJASCTS<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1f497d">        service_description     Explorer Running - Terminal Services<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1f497d">        check_command           check_nt!PROCSTATE! -d SHOWALL -l "Explorer.exe"=stopped<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1f497d">        check_period            lmfj-store-hours<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1f497d">}<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></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>
<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">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"><a href="tel:225.368.3645" value="+12253683645" target="_blank">225.368.3645</a></font> [F] <font color="#5b5959"><a href="tel:225.368.3675" value="+12253683675" target="_blank">225.368.3675</a></font> [C]
<font color="#5b5959"><a href="tel:225-362-2770" value="+12253622770" target="_blank">225-362-2770</a></font> [E] MarkL@lmfj.comMarkL@<a href="http://lmfj.com" target="_blank">lmfj.com</a><br>
</font><font style="FONT-SIZE:8pt" color="black"><a style="TEXT-DECORATION:none" href="http://www.lmfj.com" target="_blank"><font color="black">www.lmfj.com</font></a><strong> |
</strong><a style="TEXT-DECORATION:none" href="https://www.facebook.com/leemichaelsjewelry" target="_blank"><font color="black">Facebook</font></a><strong> |
</strong><a style="TEXT-DECORATION:none" href="http://instagram.com/leemichaelsjewelry" target="_blank"><font color="black">Instagram</font></a><strong> |
</strong><a style="TEXT-DECORATION:none" href="http://www.lmfj.com/embed_holder.php" target="_blank"><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:<a href="mailto:help-bounces%2Bmarkl" target="_blank">help-bounces+markl</a>=<a href="mailto:lmfj.com@monitoring-plugins.org" target="_blank">lmfj.com@monitoring-plugins.org</a>]
<b>On Behalf Of </b>Brent Wegmann<br>
<b>Sent:</b> Monday, May 11, 2015 3:05 PM<br>
<b>To:</b> <a href="mailto:help@monitoring-plugins.org" target="_blank">help@monitoring-plugins.org</a><br>
<b>Subject:</b> critical if status running<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal">I’m using check_nt!PROCSTATE!-d SHOWALL -l process.exe to alert me if a process is down.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></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?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks in advance,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></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"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Californian FB",serif;color:#595959">Director of Information Technology<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Californian FB",serif;color:#595959">Maquoketa Valley REC
<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

</blockquote></div><br></div>