# used to specify how many series there are (in our case series.0 and series.1 series.count=1 # select the sensor data parameters (I believe there are 3 or 4 series.0=$QSELECT distinct mi_key FROM monitor_ids WHERE mi_key LIKE 'PhEDEx/SensorStatus/%/SensorStatus'; # we check every 30 minutes (as things are published every 30 minutes) period=1800 # we wait 2 cycles (e.g. in our case this is 2*30 min. = 1 hour # before we report an error threshold.error=2 # if everything is working we want to send an email once # in a a while, but typically not more than once per day or so threshold.success=48 # it compares to see when the last value # was not null in a time interval between now # and 2100000 milliseconds in the past # = 35 minutes (again since we publish every 30 minutes. rule=$Ezero_if_null($Ct#0;)>now()-2100000 # we do not want to ignore data as that means # the sensor had a problem. ignore_missing_data=false actions.count=1 action.0.report_err= Sensor Application Down! action.0.report_ok= Sensor Application Up last 24 hours! action.0.type=email action.0.from=phedex_do_not_reply@cernmx.cern.ch action.0.to=fvlingen@caltech.edu,Douglas.Teodoro@cern.ch action.0.subject=#MSG action.0.body=#MSG : #0