I need to check if java service is running on my solaris server or not, i have installed nagios plugins and nrpe on solaris server. (nagios-plugins-1.4.11 and nrpe-2.12)
I just need a check_java script or somthing like that which will check the java process.
i am only concerned with the following process is running or not.
ps -ef| grep /opt/IBM/WebSphere/AppServer/java
root 1148 1141 0 09:04:09 pts/3 0:00 grep /opt/IBM/WebSphere/AppServer/java
root 22932 1 0 Oct 18 pts/5 7:07 /opt/IBM/WebSphere/AppServer/java/bin/java -XX:MaxPermSize=256m -Dwas.status.so
My main concern is that the daemon "/opt/IBM/WebSphere/AppServer/java/bin/java -XX:MaxPermSize=256m -Dwas.status.so" should be running, if that daemon is killed , some how i should get a alert in my nagios monitoring system......
Let me know if can help me on this.... Thanks................