monit-general
[Top][All Lists]
Advanced

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

Re: [monit] alerts


From: Andrew Holt
Subject: Re: [monit] alerts
Date: Fri, 17 Apr 2009 19:43:26 +0100

Hi Martin,

Thanks again.

One more question, if I have a daemon that performs a task but does not have any network connectivity, how do I set up monitoring and restart on failure ?

I guess its somewhere in the manual :)

Thanks,
Andrew

On 17 Apr 2009, at 17:50, Martin Pala wrote:

Monit sets environment variables which can be used by the script ... see manual:

http://mmonit.com/monit/documentation/monit.html#environment

Martin


Andrew Holt wrote:
Hi,
Thanks Martin, can I pass data from the config. For example if I have a service called blah
check process blah with pidfile /var/run/blah.pid
Is there any way I can pass the name as a parameter to my script, so I can have a generic alert script ?
On 17 Apr 2009, at 17:21, Martin Pala wrote:
Yes ... see exec action in monit manual. For example:

if failed port 80 then exec "/usr/local/bin/myscript"


Martin


Andrew Holt wrote:
Hi,
I have just discovered monit, and have a question.
Instead of using mail to send alerts is it possible to run a script ? e.g. I might want to issue snmp traps, or use IM (jabber, jpread etc) or some other tool.
Thanks,
Andrew
=============================
Andrew Holt
Email: address@hidden
If you understand, things are just as they are...
If you do not understand, things are just as they are....
=============================
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general


--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general

=============================
Andrew Holt
Managing Director
4A Solutions Ltd
M: +44(0) 7841 340608
P: +44(0)1257 268351
Email: address@hidden
If you're going through hell, keep going.
Winston Churchill
=============================
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general


--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general


=============================
Andrew Holt
Managing Director
4A Solutions Ltd

M: +44(0) 7841 340608
P: +44(0)1257 268351

Email: address@hidden

If you're going through hell, keep going.
Winston Churchill
=============================







reply via email to

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