Submit a ticketCall us

Get a crash course on Network Monitoring delivered right to your inbox
This free 7-day email course provides a primer to the philosophy, theory, and fundamental concepts involved in IT monitoring. Lessons will explain not only how to perform various monitoring tasks, but why and when you should use them. Sign up now.

Home > Success Center > Server & Application Monitor (SAM) > Unable to display GB/MB with the MemoryUsed variable used in the email action in alert

Unable to display GB/MB with the MemoryUsed variable used in the email action in alert

Overview

Unable to display GB/MB with the MemoryUsed variable used in the email action in alert.

Environment

All SAM versions

Resolution

Run the following (one line) SQL command to correct the conversion issue:

${SQL:SELECT top 1 (CASE WHEN ${MemoryUsed} > 1073741824 THEN CAST( round(${MemoryUsed}/1024/1024/1024,1) AS varchar(50))+' GB' WHEN ${MemoryUsed} > 1048576 THEN CAST( round(${MemoryUsed}/1024/1024,1) AS varchar(50))+' MB' WHEN ${MemoryUsed} > 1024 THEN CAST( round(${MemoryUsed}/1024,1) AS varchar(50))+' KB' ELSE CAST( ${MemoryUsed} AS varchar(50)) +' B' END) as mem FROM APM_ProcessEvidence_Detail }

 

Last modified
20:58, 30 Nov 2016

Tags

Classifications

Public