Forum Discussion
Yep, i use this all the time. Great suggestion Mike_Moniz
Also, if the DS is scripted, you can use the script to evaluate the text to determine if there is a problem (regex). If it's not scripted, you can use s groovy scripted datapoint, but that's making things a bit complicated. All this does for you is check the text for a problem and output a 0 or 1 based on the text content. Combined with Mike's method above, you should be able to see everything through a DataSource (provided your engineers have poll now permissions, mine don't).
Thanks Stuart, but for me it is not about evaluating the text as such. There is some code that is run and the output will be text - but it will not be a static text string or from a set of static text strings. I thought that initially the error code would be enough, but it seems not.
Hopefully I am making some sense!
Can you perhaps provide an example of a configsource that can output text and a datapoint value?
- Anonymous8 months ago
All configsources output the text. The "configcheck" is the "datapoint", which simply evaluates to true or not. The output of your script is the text that LM calls the "config file" and the config check looks at the blob of text and evaluates to see if it has what you want in it (or has what you don't want).
Related Content
- 8 months ago
- 6 months ago
- 2 years ago
- 2 months agoAnonymous