Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

executing a router only if the load is above a certain value?

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


ojhowe at gmail

Feb 1, 2012, 8:05 AM

Post #1 of 2 (225 views)
Permalink
executing a router only if the load is above a certain value?

hi,

is it possible to have a manualroute router that gets executed only if
the load average is above a certain value?
i want to send some messages onto another server, but only if my mail
server is currently over a certain load.

thanks,

oliver

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


exim-users at spodhuis

Feb 1, 2012, 11:09 PM

Post #2 of 2 (217 views)
Permalink
Re: executing a router only if the load is above a certain value? [In reply to]

On 2012-02-01 at 16:05 +0000, Oliver Howe wrote:
> is it possible to have a manualroute router that gets executed only if
> the load average is above a certain value?
> i want to send some messages onto another server, but only if my mail
> server is currently over a certain load.

Use a condition on the Router.

----------------------------8< cut here >8------------------------------
$load_average

This variable contains the system load average, multiplied by 1000 so that
it is an integer. For example, if the load average is 0.21, the value of
the variable is 210. The value is recomputed every time the variable is
referenced.
----------------------------8< cut here >8------------------------------

condition = ${if >{$load_average}{2000}}

--
https://twitter.com/syscomet

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.