Your alert definition looks correct. In the Trigger condition tab of the alert editor, change the drop down from 'Custom Node Poller' to 'Custom SQL Alert'. This will show you the SQL query that would be used for to evaluate this alert. Copy the query from the top (gray non-editable portion) and the bottom (starting with the WHERE..), combine the 2 pieces to get the full SQL query. Now open the Database Manager utility on the NPM server, and execute the query against your NPM database. This should help validate if the query returns any results or not.
↧