I've both Live server and application server for health monitoring. I want a facility that if there is some problem in server or in its data base a trap is sent to the management console and if possible an email is sent to the administrator. Management console is on different m/c and servers which are monitored are used in clusters.
Nice article!! But still it seems that I am at nowhere. I am redefining my problem that I want to build an SNMP agent which can send an email, invoke an executable, generate an SNMP trap etc. And this agent should serve for both Live server and application server. Can this be done by JMX?
D'oh! Read the JavaRanch Naming Policy again. User names cannot be obviously fake (which both "baby pink" and "pinks" are) and must constist of a first name and a last name ("pinks" doesn't fit this). We prefer that people use their real names, but you are free to use a made up name as long as it meets these criteria - something like "John Pinks", "Sally Pink", "Harold Pink", etc. - any of these would be fine.
Sorry that I don't know a lot about all the pieces you need - here are the things I do know - 1.) I know a little about SNMP - and I've used a Java SNMP implementation before on a project - but I don't know a whole lot about everything SNMP does/can do. 2.) I've heard a little about JMX, but really haven't used it before.
generate an SNMP trap - yep. Use whatever SNMP API you're using.
As far as monitoring -
Live server - I don't know what a "Live server" is... but I guess as long as there's some way to "monitor" it, you could...
application server - As far as I know a lot of application servers do provide some way to monitor them through SNMP... so it's probable that you'd just have to read or search for some material on how to do so for your specific app server.
[ July 26, 2005: Message edited by: Nathan Pruett ]
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Basically I want to develope a common way or some sort of API to monitor both the server. I dont want that my implementation to be dependant on the type of application server. In addition to this my servers are running in cluster environment and I want to monitor them from a single management console. I also want the information about SNMP Agent builder API. Are there any such API's freely available??