[Top][All Lists]

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

Re: Can a MONIT script accept arguments?

From: Kevin Chadwick
Subject: Re: Can a MONIT script accept arguments?
Date: Sat, 30 Apr 2011 13:00:53 +0000

On Fri, 29 Apr 2011 16:12:10 -0400
Ortiz, Nelson wrote:

> I notice in the examples that the IP address is hardcoded. 
> For example, 
>       If failed host port 8080 protocol http
> Can the IP address be parametized, or must it remain hardcoded?
> We don't want to have to change the script when hardware is swapped out.
> Thanks!
> Very Respectfully, Nelson J. Ortiz

You can always create a wrapper script for monit which asks or looks up
the value and uses sed to mod the config file.

reply via email to

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