I'm trying to create a simple condition that will check for drive space. I'm actually using the same code from a condition that is already present in Sentry:
SELECT D.HostName + ': (' + PDLD.Name + ')',
CONVERT (DECIMAL (3, 2), ((CAST (FreeSpace AS FLOAT) / (CAST (Size AS FLOAT))))) * 100
FROM PerformanceAnalysisDeviceLogicalDisk AS PDLD
INNER JOIN
Device AS D
ON D.ID = PDLD.DeviceID
WHERE D.HeartbeatDateTime IS NOT NULL
AND D.ID = @ComputerID
I have results in SQL, with both disks 0% , so I expect to receive a email every 5 minutes.
If I run this manually, it works.
but if I try to run again, or if I wait 5 minutes, I never receive any email.
I Don't know what "default evaluation frequency" means, but in the documentation we have:
Defines how often the condition is evaluated. The evaluation frequency can be adjusted individually throughout the hierarchy.
so is it ever possible, to create a condition that will execute a query every X minutes, and it doesn't matter if the past result was " true" or "false", it will evaluate the results and send and email ?