Applications Systems

SWQL variable to get node name in API poller alerts

This article provides a custom variable to get node name in API poller alerts

First published date

12/20/2023 9:00 AM

Last published date

12/17/2025 4:50 PM

Overview

Currently, there are no out-of-the-box variables to get the node name in API poller alerts. Using a custom SWQL variable will help.

Product section

Server Application Monitor

Resolution

Use below variable in alert actions 

-- Scripts are not supported under any SolarWinds support program or service.
-- Scripts are provided AS IS without warranty of any kind. SolarWinds further
-- disclaims all warranties including, without limitation, any implied warranties
-- of merchantability or of fitness for a particular purpose. The risk arising
-- out of the use or performance of the scripts and documentation stays with you.
-- In no event shall SolarWinds or anyone else involved in the creation,
-- production, or delivery of the scripts be liable for any damages whatsoever
-- (including, without limitation, damages for loss of business profits, business
-- interruption, loss of business information, or other pecuniary loss) arising
-- out of the use of or inability to use the scripts or documentation.

${N=SWQL;M=SELECT a.Node.Caption from Orion.APIPoller.ApiPoller as a Where ID=(Select ID from Orion.APIPoller.ApiPoller where name='${N=SwisEntity;M=ApiPoller.DisplayName}')}