[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [monit] Monit custom check

From: Scott Silva
Subject: Re: [monit] Monit custom check
Date: Wed, 05 Mar 2008 14:15:49 -0800
User-agent: Thunderbird (Windows/20071031)

on 3-5-2008 12:46 PM Martin Pala spake the following:
Tom Leasure wrote:
Hi -

Is there any way to to have monit do a check based on the exit code of a bash script?

For example, if the exit code of /root/ > 0, then do something.

Sorry if I'm just missing a way to do this from the documentation. Any help would be appreciated!

> Hi,
> this is planned for some future release:
> We have not started yet, patches are welcomed :)
> Thanks,
> Martin

You might be able to simulate this by wrapping it in another script that touches a file based on the exit code.

MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't!!!!

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]