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