cancel
Showing results for 
Search instead for 
Did you mean: 

How to use System Variables in Threshold/Analyst alert message to make it more informative?

Highlighted

How to use System Variables in Threshold/Analyst alert message to make it more informative?

Prognosis provides a few built in System Variables that can be used in Threshold or Analyst alert messages to make it more informative about the detected event.

Threshold

^srcnode@  - Includes the node name where the data is being collected.
^currtime@  - Current timestamp. 
^ret_code@  - Return code indicating the success or failure of any EXEC or START command.
^ret_text@  - Any text that is returned after EXEC or START command.
^cur_prob@ - The automatically assigned problem number for this instance of the alert.

Note: the @ symbol suppresses trailing spaces.

Example of alert text containing variables:

"^srcnode@ CPU @NTCPU.CPUNO@ is @NTCPU.BUSY@% busy"

This would output:
 
"\MyNodeName CPU 0 is 80% busy"
 
Analyst

^srcnode  - Node where the data for this rule instance is being collected.
^currtime - Current timestamp.  
^diskint  - Current disk collector interval.
^ret_code  - Return code indicating success or failure of an EXEC or START command.  

^ret_text  - Text that is returned after EXEC or START command.
^cur_prob  - The auto assigned problem number for this instance of the rule.
 
Note: the @ symbol suppresses trailing spaces.
1 REPLY 1
Highlighted

Re: How to use System Variables in Threshold/Analyst alert message to make it more informative?

In Analysts there are also ^Var0-30 that can be utilized with a MATCHES REGEX statement to parse output command output and place it inside of analyst variables. 

 

As of Prognosis 11.5p2 the SET command automatically performs a CAST function from Numeric or Text based on the analyst variable definition the ^var value is copied into for actual use (you technically can use it as a ^Var as well but it assumes text unless cast into a numeric)


If my answer helped you today, please be sure to mark the resolved button to assist others.

Christopher R Souser - Sr. Services Solution Engineer, Payments & Infrastructure – MSci. PA, CISSP, ITIL.
Webinar: Keep the modern workforce connected

Unified Communications has always been an important part of companies' digital transformation efforts due to its ability to enable rich virtual collaboration and communication. But with COVID-19, we've reached a break-through point.

Join Bill Haskins, Sr. Analyst & Partner, Unified Communications at Wainhouse Research, and John Ruthven, CEO at IR discuss UC challenges companies are experiencing due to the COVOID-19 crisis.

Join webinar
Top Liked Members