Forum Discussion

SaraCavelind's avatar
SaraCavelind
Contributor
14 years ago

Monitor services and send email when failing

Hi!
I'm trying to monitor our plattform by sending a webservice request every minute to a service. When it fails I'd like to send an email in order to take actions. I've been trying to find a sample etc on how to do this but failed. Does anyone have a simple suggestion on how to do this, like in a tear down groovy script?

1 Reply

  • Hi

    what's about sending a mail with an external program?

    script:

    def command = "cmd /c \"mail -s subject ... \""
    // log.info command

    def process = command.execute()
    process.waitFor()