What about using Negate plugin to revers the Critical to a OK?<br> <br>TOny (Author of NC_Net)<br><br>
<div class="gmail_quote">On Wed, May 7, 2008 at 12:52 AM, Stane <<a href="mailto:informacije@stane.org">informacije@stane.org</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello all!<br><br>I need a little help configuring Nagios (client?) to monitor (non)<br>existence of a process on a windows box (explorer.exe for example). I'm<br>
using client v0.3.1 and Nagios v3.0.1 with plug ins v1.4.11 on Centos<br>5.1 server.<br><br>My request (or wish :-)) is: OK condition: explorer.exe IS NOT running<br>CRITICAL condition: explore.exe IS running (Note that normal condition<br>
should be NON running process).<br><br>Check 1: - which I made locally on windows box:<br>I run "nsclient++ /test" on windows box and enter:<br>CheckProcState ShowAll explorer.exe=stopped<br><br>I get next (good) answer:<br>
CRITICAL:CRITICAL: explorer.exe: started (critical)<br><br>Check 1 gives next entries in NSC.log:<br>debug:.\NSClient++.cpp:516: Injecting: CheckProcState: ShowAll,<br>explorer.exe=stopped debug:.\NSClient++.cpp:536:<br>Injected Result: CRITICAL 'CRITICAL: explorer.exe: started (critical)'<br>
<br>Check 2: - which I made remotely from nagios server:<br>I run next command:<br>check_nt -H <a href="http://192.168.5.3/" target="_blank">192.168.5.3</a> -p 12489 -v PROCSTATE -l "explorer.exe=stopped"<br>-d SHOWALL<br>
<br>I get next (not ok) answer:<br>explorer.exe: Running<br><br>Check 1 gives next entries in NSC.log:<br>debug:.\NSClient++.cpp:516: Injecting: checkProcState: ShowAll,<br>explorer.exe=stopped, nsclient<br>debug:.\NSClient++.cpp:536: Injected Result: OK 'explorer.exe: Running'<br>
<br>(Where IP address <a href="http://192.168.5.3/" target="_blank">192.168.5.3</a> is my windows box).<br><br>Using nsc log on windows box, I've found the difference between Check 1<br>and Check 2. It's is in injecting command. Check 2 has an additional<br>
",nsclient" at the end of injecting line (without quotes).<br>Unfortunately, I can't figure why there is ",nsclient" appearing in<br>remote command and I don't know how to fix it. Please help.<br><br>Thanks, Stane<br>
<br><br><br><br>-------------------------------------------------------------------------<br>This SF.net email is sponsored by the 2008 JavaOne(SM) Conference<br>Don't miss this year's exciting event. There's still time to save $100.<br>
Use priority code J8TL2D2.<br><a href="http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone" target="_blank">http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone</a><br>
_______________________________________________<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null</blockquote></div><br>