Good Morning! I guess I'm trying to do something "weird" since I've not been able to find an example (yet). I have some Windows hosts where I need them to stay logged in and running various "things" - for software not written to run as a service. Easy enough, if explorer.exe is not running (along with the other processes I have service checks for, I get errors and notifications.
Other systems however, should not be logged in, and for various reasons, sometimes get left logged in if somebody just disconnects their RDP session without logging off or doesn't log off the local console. I need a check for the "OK" state to be if explorer.exe is not running and for the error state to be if explorer.exe IS running. Below are the two definitions, pretty much straight out of the default example configuration files which I modified just slightly. I'm not sure where I got the "=stopped" on my check_command from, its been a while since I've modified anything in Nagios until this week. Any ideas somebody would be willing to share would be greatly appreciated! define service{ use generic-service hostgroups windows-servers service_description Explorer check_command check_nt!PROCSTATE!-d SHOWALL -l "Explorer.exe"=stopped } define command{ command_name check_nt command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -s nagios12345 -v $ARG1$ $ARG2$ } --Mark Mark A. Lappin, CCNA, MCITP: Enterprise Administrator | Lee Michaels Fine Jewelry Director of Information Technology 11314 Cloverland Ave | Baton Rouge, LA 70809 Ph: 225.291.9094 ext 245 | Fax: 225.368.3675 | Mobile: 225-362-2770 www.lmfj.com 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 . ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ 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