What are Device Models?
NMIS device models define how network devices are monitored through SNMP. Each model specifies:- SNMP OID mappings - Which OIDs to collect and how to interpret them
- Data collection sections - Interface stats, system health, environmental sensors
- Alert thresholds - When to generate notifications
- Graph definitions - How to visualize collected data
- Device identification - How to match devices using systemObjectID
Model Structure
Device models are Perl hash structures stored in.nmis files:
Model Types
Base Models (Model-*.nmis)
Define complete device configurations including:- System identification (sysObjectID patterns)
- System health sections to collect
- Interface collection settings
- Device-specific features
models-default/
Common Models (Common-*.nmis)
Reusable monitoring components that can be included in base models:- Common-Cisco-cbqos.nmis - Class-based QoS monitoring
- Common-Cisco-power.nmis - Power supply monitoring
- Common-Cisco-temp.nmis - Temperature sensor monitoring
- Common-Huawei-NQA.nmis - Network Quality Analysis
- Common-Juniper-jnxCoS.nmis - Class of Service statistics
models-default/
Device Identification
NMIS matches devices to models using the SNMP sysObjectID:Model.nmis file contains autodiscovery rules:
SNMP OID Mapping
Models map SNMP OIDs to meaningful metrics:Using MIB Names
Using Numeric OIDs
Value Replacement
Model Sections
systemHealth
Monitors device-specific components:- sys - Displays values in the GUI
- rrd - Stores time-series data for graphing
interface
Collects interface statistics (traffic, errors, discards)alerts
Defines alert conditions and thresholdsdatabase
Specifies RRD file locations and namingheading
Defines graph titles and descriptionsSupported Vendor Categories
NMIS includes pre-built models for:- Cisco - IOS, IOS-XE, IOS-XR, NX-OS devices
- Huawei - VRP platform devices
- Juniper - JUNOS devices
- F5 - BIG-IP load balancers
- Windows - WMI-based monitoring
- SynologyNAS - NAS devices
- NutanixAHV - Hypervisor monitoring
- Host Resources - Generic SNMP devices
- Generic - Universal monitoring via standard MIBs
Models in
models-default/ are managed by Opmantek. Custom models should be created in models-custom/ to prevent overwriting during upgrades.Model Inheritance
Models support inheritance through common sections:Common-Cisco-cbqos.nmis and Common-Cisco-power.nmis.
Data Collection Process
- Device Discovery - NMIS queries sysObjectID and matches to model
- Model Loading - Base model + common models are loaded
- SNMP Collection - OIDs defined in ‘sys’ and ‘rrd’ sections are polled
- Data Storage - RRD files store time-series metrics
- Alert Evaluation - Thresholds are checked against current values
- Graph Generation - RRD data is rendered as graphs
Next Steps
- Cisco Device Models - CBQoS, IP SLA, power, temperature
- Huawei Device Models - NQA, HQoS, CBQoS monitoring
- Juniper Device Models - jnxCoS, operations monitoring
- Creating Custom Models - Build your own device models