Can't see changes on the resource graph page after adding/modifying a Resource Type manually or through the WebUI
Description
All changes performed on datacollection-config.xml will be reloaded automatically by OpenNMS. So, if we add new metric definitions (manually or using the new MIB Compiler UI), Collectd is going to start gathering data from them without issues.
But, when we try to see the graphs for the new metrics on the WebUI, it is not possible if the metrics in question are related with a new Resource Type (Generic Index Resources).
The reason for this is because the ResourceDao maintains a cache of the internal objects associated with Resource Types which is not updated after modifying the datacollection-config.xml file.
The idea is to add some intelligence to the ResourceDao implementation (i.e. DefaultResourceDao) to check if datacollection-config.xml has been changed and re-create the internal cache with the new resource types.
Acceptance / Success Criteria
None
Lucidchart Diagrams
Activity
Alejandro Galue October 18, 2013 at 11:39 AM
Fixed on revision c413abd9e3be765dd8aedda4cc1b2e9f74c4c0f4 for 1.12
All changes performed on datacollection-config.xml will be reloaded automatically by OpenNMS. So, if we add new metric definitions (manually or using the new MIB Compiler UI), Collectd is going to start gathering data from them without issues.
But, when we try to see the graphs for the new metrics on the WebUI, it is not possible if the metrics in question are related with a new Resource Type (Generic Index Resources).
The reason for this is because the ResourceDao maintains a cache of the internal objects associated with Resource Types which is not updated after modifying the datacollection-config.xml file.
The idea is to add some intelligence to the ResourceDao implementation (i.e. DefaultResourceDao) to check if datacollection-config.xml has been changed and re-create the internal cache with the new resource types.