If an OID is used in tests (templates) called A and B, and in test A no thresholds are defined for the OID, but in test B thresholds are defined for the OID, the thresholds are unknown to Devmon when performing test B. Thus no alerts will be triggered, and displaying the threshold value in the status message will show value 'undefined'.
This behaviour is caused by an optimisation of Devmon, module dm_tests.pm. The tests are performed in sorted order. During test A, the OID will get defined in a cache (hash %oids). During test B, the presence of the OID in the cache will inhibit retrieval of the thresholds defined in test B.