Please checkout the Device Modelling Checklist
Developing Device Models for NMIS
Checkout the handy training we developed for NMIS users, this is available here:
Checklist for Model Development
The training covers this in details, but here is a quick summary of what needs to be updated and changed when adding new device support with modelling
- Update nmis8/models/Model.nmis
- New model file created and updated
- update the nodeVendor, nodeModel, nodeType fields (among others)
- Any new resolvable OID's added to nmis_oids.nmis, e.g. the sysObjectID names.
- Update Common-heading.nmis
- Update Common-database.nmis
- Create any needed graphs
- Update Common-threshold.nmis
- Update Common-stats.nmis
Creating Thresholds with NMIS Modelling
Please refer to the training material above for an overview of creating the thresholds, the information below should assist in understanding the relationships between the different sections and moving parts.
Main collection is /systemHealth/rrd/hrProcessorLoad
Common-database entry called hrProcessorLoad
Common-heading entry for the /systemHealth/rrd/hrProcessorLoad/graphtype => hrprocload
To create a threshold, statistical data is needed, this is extracted using Common-stats and this is based on the rrd name, so for this hrProcessorLoad collection, the Common-stats entry would be hrProcessorLoad
To compare the data to the threshold, there needs to be a Common-threshold section, this is named after the /systemHealth/rrd/hrProcessorLoad/threshold => arCpuLoad
So that the threshold system can match data from the stats results, we use the item to match the data, so NMIS is going to look for the item in the resulting stats data, in this case the item name is hrProcessorLoad, which matches the print statement: 'PRINT:hrProcessorLoad:AVERAGE:hrProcessorLoad=%1.0f' in the Common-stats section.