Hi, On Mon, Oct 24, 2011 at 8:40 PM, Faarooq Lowe <[email protected]> wrote:
> Are there any pre-defined values for disk space that may be used for the > RANK expression in a template? > > We don't have any probe to report the free disk space, but adding new probes is really easy. You just need to add a new file to /var/lib/one/remotes/im/<virtualizer>.d, take a look for instance at /var/lib/one/remotes/im/kvm.d/name.sh #!/bin/sh echo HOSTNAME=`uname -n` Remember to execute 'onehost sync' as oneadmin to refresh the probes on the hosts. > Also is there away to evaluate expressions in a specific order such as; > FREEMEMORY, DISKSPACE, - RUNNING_VMS etc.? > > The RANK expression accepts arithmetic operators [2], so you can assign weights to each attribute. You might want to normalize the values first. Best regards. [1] http://opennebula.org/documentation:rel3.0:img#tunning_extending [2] http://opennebula.org/documentation:rel3.0:template#rank_expression_syntax -- Carlos Martín, MSc Project Engineer OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org <http://www.opennebula.org/> | [email protected] > ______________________________**_________________ > Users mailing list > [email protected] > http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**org<http://lists.opennebula.org/listinfo.cgi/users-opennebula.org> >
_______________________________________________ Users mailing list [email protected] http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
