jboss monitor

Does anyone know of a way that I could set up a monitor on the Jboss AS so that it emails someone when the server goes down? I searched for a potential solution and the closest was setting up JMX or JOPR

http://community.jboss.org/message/159431
http://www.coderanch.com/t/89734/JBoss/Checking-if-JBoss-running

Thanks in advance.

Demos

Update on my previous post: I was thinking that perhaps I could use a Natural Request Document to check to see if the server is up.

I tried the following

COMPRESS
HTTP://myserver:8080/CISNATURAL/SERVLET/STARTCISPAGE?PAGEURL=
“/CISNATURAL/NATLOGON.HTML” INTO #REQUEST LEAVING NO

REQUEST DOCUMENT FROM #REQUEST
RESPONSE #RC

I get the following error mesasge when I run the program.

NAT8304 HTTP request failed. Reason OPEN : connect() failed, errno=60 EDC5060I

Any thoughts?

Hi

Just tried getting a document with a similar REQUEST and I got the same error.
EDC5060I information is available from IBM, fsetpos() has a problem, but there is no solution that can be related to our REQUEST-statement.

Does anybody know what to change ?