Manii Manii - 1 year ago 129
Python Question

monitoring jboss process with icinga/nagios

I want to monitor jboss if its running or not through Icinga.

I don't want to check

/etc/inid.d/jboss status
as sometimes service is up but some of the jboss is killed or hang & jboss doesn't work properly.

I would like to create a script to monitor all of its process from
output. But few servers are running in standalone mode, domain(master,slave) and processes are different for each case.

I'm not sure from where do I start. Anyone here who did same earlier? Just looking for the idea to do this.

Answer Source

I did this by monitored jboss process using ps aux | grep "\-D\[Standalone\]" for standalone mode and ps aux | grep "\-D\[Server" for domain mode.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download