[Moabusers] trouble setting node based triggers

Douglas Wightman wightman at clusterresources.com
Mon Aug 20 10:49:45 MDT 2007


If you don't capitalize GMETRIC then this  will work:

Change:

NODECFG[DEFAULT] TRIGGER=atype=mail,action='Node $OID exceeded 0.5
diskusage',etype=threshold,threshold=GMETRIC[diskuse]>0.5

to

NODECFG[DEFAULT] TRIGGER=atype=mail,action='Node $OID exceeded 0.5
diskusage',etype=threshold,threshold=gmetric[diskuse]>0.5

And the triggers will show up in mdiag -T.

- Douglas



On Fri, 2007-08-17 at 18:51 -0400, Martins, Flavio wrote:
> I have been trying to set a node based trigger to e-mail me if disk
> space runs low. I set up a native RM to query disk usage on my master
> node and my compute nodes and report the usage number as a GMETRIC. I
> then set a mail trigger to fire if disk usage surpassed a certain
> percentage. The problem is that so far I have not been able to get
> this to work. 
> 
>  
> 
> Some general observations:
> 
> The gmetric values shows up if I do a nodecheck, but not on mdiag –n. 
> 
> I have no listings from the mdiag –T command, so the triggers don’t
> seem to be picked up.
> 
> I don’t see any errors or alerts in the moab.log file about the
> triggers.
> 
>  
> 
> Here is how I tried to set it up:
> 
>  
> 
> Here is the native RM to get disk usage data – moab.cfg
> 
> RMCFG[disk] TYPE=NATIVE RESOURCETYPE=FS
> 
> RMCFG[disk] CLUSTERQUERYURL=exec:///opt/moab/tools/disk_check.pl 
> 
>  
> 
> Disk_check.pl produces the following output:
> 
> GLOBAL  GMETRIC[diskuse]=0.553221342092917
> 
> 0       GMETRIC[diskuse]=0.000442725244643413
> 
> 1       GMETRIC[diskuse]=0.000442725244643413
> 
> 2       GMETRIC[diskuse]=0.000499726374230815
> 
> 3       GMETRIC[diskuse]=0.000442725244643413
> 
> 4       GMETRIC[diskuse]=0.000442725244643413
> 
> 5       GMETRIC[diskuse]=0.334928463873042
> 
> 6       GMETRIC[diskuse]=0.228136833057353
> 
> (My master node is not available for running jobs, so I assigned its
> disk usage to the global node for trigger setting purposes)
> 
>  
> 
> Then I set up my triggers based on the moab documentation found here:
> http://www.clusterresources.com/products/mwm/docs/9.2accounting.shtml#gmetric
> 
> The example on this page is nearly identical to what I am trying to
> do.
> 
>  
> 
> NODECFG[DEFAULT] TRIGGER=atype=mail,action='Node $OID exceeded 0.5
> diskusage',etype=threshold,threshold=GMETRIC[diskuse]>0.5
> 
> NODECFG[GLOBAL]  TRIGGER=atype=mail,action='Master node exceeded 0.5
> diskusage',etype=threshold,threshold=GMETRIC[diskuse]>0.5
> 
>  
> 
> The disk usage on the GLOBAL node is greater then 0.5 so the trigger
> should fire.
> 
>  
> 
> Can anyone see anything wrong with this setup?
> 
>  
> 
> Flavio Martins
> 
> Senior Engineer - Aerodynamics / CFD
> 
> Florida Turbine Technologies Inc.
> 
> 100 Marquette Road, Suite 110
> 
> Jupiter, FL 33458-7101
> 
> -----------------------------------------------------
> 
> Phone: (561) 427-6261
> 
> Fax: (561) 427-6191
> 
>  
> 
> 
> _______________________________________________
> moabusers mailing list
> moabusers at supercluster.org
> http://www.supercluster.org/mailman/listinfo/moabusers



More information about the moabusers mailing list