# used to specify how many series there are (in our case series.0 and series.1 series.count=2 # series define values we want to receive information from # unless we want to receive from all farms series.0=frank.ultralight.org_service # the second series defines the node level values # we want to receive from series.1=ApplicationX,\ ApplicationY # This is a period in seconds. Period=60 means that the rule # is evaluated each minute. If you put in threshold.error=2 # then the error situation must persist for 2 consecutive # evaluations. If the error situation persists you # won't get a second email. period=60 #An action will be taken only after a transition between two stable states. # thresholds relate to the duration of a state. thus in this example # if the values in defined in this action are in a success state for # for more than 2 evaluations, or in an error state for more than 3 evaluations # only then the action will be triggered. threshold.success=2 threshold.error=3 #value has a similar semantics as the specifications for #subscribing to monitoring values. # what this means is that we want the values of param1 of # ApplicationX or ApplicationY from cluster SimpleCluster from # farms: frank.ultralight.org_service value=$Cv#0/SimpleCluster/#1/param1; # Here we define the rule for the value we subscribe too. # it states that the value is true if it is bigger than 100 # and smaller than 100000 (the || is an OR operator) rule=$E#VALUE<120 #set this value for true for not triggering an action when where is no #monitoring data available to take a decision, false to trigger an error #situation when the rule evaluates to "false" or when there is no data #available. ignore_missing_data=true # used to specify how many actions there are in this specification. actions.count=3 # there are currently 5 different actions: email, log, command line invocation # instant messaging and annotation. # defines an error message assigned to the #MSG variable # if not set there will be no error message. action.0.report_err=error message through email # defines an success message assigned to the #MSG variable # if not set there will be no error message. action.0.report_ok=success message through email # type of action action.0.type=email action.0.from=do_not_reply@caltech.edu action.0.to=fvlingen@caltech.edu # here we use #1 and #0 to refer to the series # and #MSG to refer to the report_err or report_ok action.0.subject=Application #1 at #0 gives message: #MSG action.0.body="This is the body" action.1.report_err=error message through log action.1.report_ok=success message through log action.1.type=log # pick a place where the log can be written action.1.file=/home/monalisa/logs/param1.log action.1.message=$Edatetime("yyyy-MM-dd HH:mm:ss", now());: #1 at #0 is #MSG # this executes a command action.2.report_err=none action.2.type=command action.2.execute=/home/monalisa/commands/addDate.sh