Transactions¶
Transactions is a standard configuration interface for managing the custom transaction policies that are used by the Metric Transaction Poller. These transactions can be used to run custom checks, such as on TCP sockets and web pages, the results of which are then stored into the specific Metric Type.
Refer to the Standard Configuration Interface guide for details on interacting with the grid and form.
This user interface calls REST methods from api/metric/transactions.
The UI path for this interface is Configuration -> Metrics -> Transactions.
Form Fields¶
-
Name - The name of the transaction policy.
-
Description - The description of the transaction policy.
-
Metric Type - The metric type the transaction policy will use when storing the data.
-
Status - The state of the transaction policy.
-
Transaction Code - The Perl based processing logic of the transaction policy.
Transaction Code Toolbar¶
-
Line Numbers - Toggle on/off line numbers.
-
Check Syntax - Run Perl syntax checking on content
-
Search - Search code.
-
Previous - Previous result for current search.
-
Next - Next result for current search.
-
Replace - Search and replace code.
-
Replace All -Search and replace all in code.
Best Practices¶
-
Transaction code variables available:
-
MetricID - Metric ID from Metrics table.
-
MetricTypeID - Metric Type ID from Metrics table.
-
DeviceID - Device ID from Metrics table.
-
DNS - Device DNS Name from Devices table.
-
IPv4 - Device IP v4 Address from Devices table.
-
IPv6 - Device IP v6 Address from Devices table.
-
IP - Either IPv4 or IPv6 Address from Devices table.
-
Target - Device DNS Name or IP Address from Devices table.
-
SysName - Device SNMP Sys Name from DeviceSystemInfo table.
-
Community - Device SNMP Community String from DiscoverySNMPAccess table.
-
InstanceID - Instance ID from Metrics table.
-
InstanceName - Instance Name from MetricInstances table.
-
TransID - Transaction ID from PollerTransactions table.
-
TransName - Transaction Name from PollerTransactions table.
-
CurrentTime - Current Time from Poll.
-
Meta¶
Default Transaction Policies¶
-
Active Directory
-
Basic HTML Form
-
DNS
-
IMAP
-
MySQL
-
NTP
-
POP3
-
SMTP
-
TCP Socket
-
Web Transaction