Reboot Boards due to low Memory with notification

From MikroTik Wiki
Revision as of 21:15, 30 December 2008 by Rclark (talk | contribs) (New page: set this in scheduler to get lost memory back and to get a reboot when it needs to do this :global datum [/system clock get date]; :global time [/system clock get time]; /system resourc...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

set this in scheduler to get lost memory back and to get a reboot when it needs to do this


global datum [/system clock get date];
global time [/system clock get time];

/system resource

if ([get free-memory]< 25000) do=[

/tool e-mail send server=*.*.*.* to="alert@yours.net" subject=[/system identity get name]

from="alert@yours.net" body=(" on $datum at $time the memory on this repeater got to ", [/system resource

get free-memory]) /system reboot; ]};