TECHZEN Zenoss User Community ARCHIVE  

Output a datapoint in an alert message

Subject: Output a datapoint in an alert message
Author: [Not Specified]
Posted: 2014-05-27 04:05

Hi All,

So I have a template that checks for a job completion status.

[zenoss@zenoss001xxx libexec]$ ./check_job_completed.sh rwc001xxx.xxx.xxx
job_name=search_suggestions_freshness all | job_status=1 | pid=28695

I created three datapoints (job_name, job_status, pid). The only datapoint used in the threshold is job_status.

I would like to include job_name and pid in the alert email, so people will know which job failed.

Does anyone know if this is possible I tried to put the datapoint into the threshold with something like - $here.templatename.job_name but I couldn't get any data. Also, threshold syntax won't allow {} in the threshold name..

Any ideas

Thanks!
Joan



Subject: job_name and pid generally wont be available.
Author: [Not Specified]
Posted: 2014-07-07 19:02

the template must be a string and not a tales expression as your trying to use.

I would look to create an event instead of a threshold.
I would update check_job_completed.sh http://serverfault.com/questions/497708/how-to-add-an-event-alert-on-zen...

Eric



< Previous
URL inside an event
  Next
SNMP agent down but snmpwalk and zenperfsnmp work
>