monit-general
[Top][All Lists]
Advanced

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

Re: Passing parameters to exec


From: Martin Pala
Subject: Re: Passing parameters to exec
Date: Tue, 21 Sep 2004 20:24:41 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040820 Debian/1.7.2-4

Hi,

this should not be problem - you can use environment variables as described in monit manual (for example online version: http://www.tildeslash.com/monit/monit.html#environment)

Cheers,
Martin

Andy wrote:
Hi,

My local telco (KPN) are allowing free SMS messages until Jan 1 2005 from fixed 
lines. Since my asterisk pbx can now send sms messages I'd like to incorporate 
this into my monitoring, and not using the free sms messages would be rude 
wouldn;t it :D

So, what I'd like to do is pass:

$SERVICE $EVENT $DATE $ACTION $HOST

eg : exec "'myperlscript.pl "$SERVICE" "$EVENT" "$DATE" "$ACTION" "$HOST"'"

to my perl script for processing and sending of messages. I've checked the online docs and searched the mailing list but can't see a reference to doing this.
Is this possible? The other option would be to set up another box to do email 
to sms but this does have it's downsides too, and I'd rather avoid it if 
possible...

I'm running 4.4-beta6 btw...

Thanks again


Andy





reply via email to

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