Pandora FMS Community

How can I monitor if a specific Java program is running or not? (Windows.)

GunnarHovmark · 27 sept 2011, 14:53 · 4 mensajes · 64 visitas

  1. Inicio del debate

    I have a number of Java programs that must be active for my system to work, but I can't figure out an easy way to monitor if a specific Java program is running or not. Can somebody help me? Thanks in advance.

  2. Hi GunnarHovmark, If your OS is linux you can do with the next module:

    
    module_exec ps -Af | grep process_name | grep -v "grep" | wc -l
    

    in windows i guess that you can do it but i don't know. thanks

  3. I guess the most similar thing to that in Windows would be to check what processes I have running, but there I can only see if Java is running or not. I can't figure out a way (at least not an easy way) to see what's running inside the Java virtual machine.

Entra en tu cuenta para publicar.