Stefan_W
3 years agoNeophyte
Docs on "lm.emit" module?
I just imported the new DataSource "SSL_Certificate_Chains" (lmLocator YCXL9M) and the Groovy has something I've never seen before....
def modLoader = new GroovyShell(getBinding()).parse(com.logicmonitor.mod.Snippets.getLoader()) def lmEmit = modLoader.load("lm.emit", "0") // Load LM emit module
The Active Discovery output is with
lmEmit.instance(wildvalue, wildalias, "Subject:${cert.getSubjectDN()}", ilps)
and the Collect script output is similarly new (to me) with
lmEmit.dp(wild, "SelfIssued", cert.isSelfIssued(cert) ? 1 : 0) lmEmit.dp(wild, "SelfSigned", cert.isSelfSigned(cert, null) ? 1 : 0) lmEmit.dp(wild, "DaysRemaining", ((cert.getNotAfter().getTime() - now.getTime()) / 1000 / 60 / 60 / 24))
This seems like an exciting new mechanism! Has anyone seen docs on this?
All the googling I've tried only comes up with references to "emit" which are related to logging and/or APM traces.