How do I use check_ncpa.py to check for a linux process that looks like this?
/home/oracle/jdk1.8.0_162/bin/java -server -Xms512m -Xmx1024m -XX:CompileThreshold=8000 -cp /home/oracle/Oracle/Middleware1223/Oracle_Home/wlserver/server/lib/weblogic-launcher.jar -Dlaunch.use.env.classpath=true -Dweblogic.Name=AdminServer -Dlogica.arm.logfilepath=/apps/arm_logs -Djava.security.policy=/home/oracle/Oracle/Middleware1223/Oracle_Home/wlserver/server/lib/weblogic.policy -Djava.system.class.loader=com.oracle.classloader.weblogic.LaunchClassLoader -javaagent:/home/oracle/Oracle/Middleware1223/Oracle_Home/wlserver/server/lib/debugpatch-agent.jar -da -Dwls.home=/home/oracle/Oracle/Middleware1223/Oracle_Home/wlserver/server -Dweblogic.home=/home/oracle/Oracle/Middleware1223/Oracle_Home/wlserver/server weblogic.Server
I have several processes that are running java so looking for the java process or a process with -f like /home/oracle/jdk1.8.0_162/bin/java will not work. I am trying something like this
./check_ncpa.py -H x.x.x.x -t Str0ngStr1ng -M processes -q 'java' but this fails as more than one line returns.
checking to see if weblogic is running with check_ncpa.py
Re: checking to see if weblogic is running with check_ncpa.p
The arguments passed to the java process to run weblogic wouldn't be available to check_ncpa so it'd only be able to tell you if a java process was running and not specifically what.
That said, there are community created plugins available for weblogic that can be used to determine it status:
https://exchange.nagios.org/index.php?o ... d=weblogic
Running scripts/plugins through NCPA is covered in https://support.nagios.com/kb/article/n ... a-722.html
That said, there are community created plugins available for weblogic that can be used to determine it status:
https://exchange.nagios.org/index.php?o ... d=weblogic
Running scripts/plugins through NCPA is covered in https://support.nagios.com/kb/article/n ... a-722.html
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.