Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
/
NMIS9 opstatus data
Updated May 15, 2025

    NMIS9 opstatus data

    May 15, 2025
      • 1 Introduction
      • 2 Schema
      • 3 Example
      • 4 How NMIS9 handles opstatus data
      • 5 How OMK handles opstatus data

      Introduction

      The opstatus data saves information about the jobs performed on the scheduler queue and the results of each operation. These jobs are internal to NMIS9, related to the health and system maintenance, and are not always related to a node. opstatus data is different to status data, which saves status information related to a node. 

      opstatus data can be visualised using the NMIS9 Ops Status page: 

      NMIS → System → Host Diagnostics → NMIS Ops Status

      e.g. http://volla.opmantek.com/cgi-nmis9/opstatus.pl

       

      Schema

      This is the schema for the opstatus collection:

      • Activity: collect - escalations - metrics - selftest

      • Context:

        • node_uuid

        • queue_id

        • queue_tag

        • worker_progress

      • Details: Detail of the operation; completed successfully - failed: loading failed… - Can’t call method…

      • expire_at

      • Stats:

        • Time 

      • Status: ok - error

      • Time

      • Type: completed - exception

      Example

      {"_id":"5cbdb0fd2b1813502c414c52", "time":1555935485.269778, "stats": {"time":0.1784820556640625}, "context": {"queue_tag":null, "worker_process":20524, "queue_id":"5cbdb0fd2b1813500c414988"}, "type":"completed", "expire_at":"2019-06-21T12:18:05.269Z", "details":"completed successfully, backup saved as /usr/local/nmis9/backups/nmis-config-backup-2019-04-22-2218.tar.gz", "status":"ok", "activity":"configbackup"}

       

      How NMIS9 handles opstatus data

      • Nmisng saves or updates the status of an operation, called by the nmisd demon.

      • An opstatus data is created/updated:

        • with the result of a queue job

        • when the worker starts/performs/stops an operation

        • when a job finish with an error, or is completed successfully.

      • The expiration date is almost 2 months by default (purge_opstatus_after is 5184000): 

      $expire_at = $statusrec->{time} + ( $self->config->{purge_opstatus_after} || 60 * 86400 );

       

      • Used by selftest to check where was the most recent operation for update and collect. 

      • Used by nmisd to check when some operations were last tried/run/performed.

      • A node deletes the opstatus data related when it is deleted. 

      • A node dumps their opstatus data. 

      • supports.pl exports the last 500 opstatus records. supports.pl exports collect data.

      How OMK handles opstatus data

      • opCharts records/update the status of an operation on its own database.

      • opFlow records the status of an operation. 

      • opAddress saves an opstatus on the document (As oper_status)

      • opHA records/update the status of an operation on its own database.

       

      • The max age values by default (opCommon.nmis) are the following:

        • opaddress_opstatus_maxage => 604800, # seconds, 1 week

        • opflow_opstatus_maxage => 1209600, # seconds, 2 weeks

        • opconfig_opstatus_maxage => 604800, # seconds, 1 week

        • purge_opstatus_after => 86400*90, # 3 months (opHA). 

        Community Home

        NMIS
        • Downloads
          Downloads
        • Downloads
          Downloads
        • Downloads
          Downloads
        Results will update as you type.
        • Introduction & Setup
        • Configuration
          • Additional CBQoS SNMP Collection
          • Advanced Configuration Options for Optimising NMIS8
          • Cisco SNMP Configuration and Verfication Process
          • Configuration Files for NMIS
          • Configuring Email Server for NMIS Notifications including Gmail server
          • Configuring NMIS for full LDAP Support
          • Configuring NMIS for Multi-Tenancy
          • Configuring NMIS to use Active Directory Authentication (ms-ldap or ms-ldaps)
          • Configuring NMIS to use Internal Authentication
          • Controlling the Collection of Interfaces, Adjustments and Overrides
          • Import Nodes into NMIS8 - bulk import and integration
          • Linking Nodes to other systems including Web, SSH, Telnet and whatever you need.
          • Making Sounds for Critical Events on the NMIS Dashboard
          • Managing Servers and Services with NMIS8
          • Modelling MIBS that use Indexes using the systemHealth section
          • NMIS8 - Installing NMIS in a Non Standard Location
          • NMIS8 Configuration
          • NMIS8 Node Polling Configuration
          • NMIS9 Documentation
            • Import Nodes into NMIS9 - bulk import and integration
            • Importing NMIS8 configuration into NMIS9
            • NMIS9 Directory Structure conf-default and conf
            • NMIS9 Group Provisioning
            • NMIS9 opstatus data
            • NMIS 8 - Migrate plugins to NMIS 9
            • NMIS 9 Scheduler
          • NMIS 8 - Configuration Options for Server Performance Tuning
          • NMIS 9 - Configuration Options for Server Performance Tuning
          • NMIS - Polling Policy - Configuring Variable Polling Polices
          • NMIS Configuration
          • NMIS Customising the Dashboard Layout - Save Windows and Positions
          • NMIS File Permissions
          • NMIS Threshold Configuration
          • SNMP Traps with Cisco and Other devices
          • Sync or copy NMIS data between two NMIS servers
          • User Management in NMIS
          • Using SNMPv3 with NMIS for Secure Network Management
          • Using Unique Identifiers (UUID) for NMIS Nodes
        • Features
        • Virtual Machine
        • How-To Guides
        • FAQ
        • Release Notes
        • Troubleshooting & Help
        • Opmantek Virtual Machine: Implementing SNMPv3 AES256 in the NMIS9 VM for Secure Network Management
        • NMIS8 VM Installation Guide
        • Virtual Appliance Maintenance: Updating Software
        • NMIS Device Troubleshooting Process
        • Automatically accept EULAs
        • Using NMIS to monitor services
        • Linux Hardening Guides
        • Solutions
        • NMIS9 - WMI Basic Configuration
        • NMIS9 - SNMP Basic Configuration
        • How to Configure WMI on the Windows Server
        • How to test WMI using the wbemtest
        • SNMP Trap and Rsyslog Setup for Ubuntu 20+
        • NMIS_Deps - NMIS Dependency Installer
        • NMIS9 RPC
        • Adding new devices for monitoring using the Administration GUI
        • WMIC Docker Container: Setup and Usage Guide
        • NMIS9 Docker Deployment Guide
        • NMIS StatefulSet for Kubernetes
        • NMIS Server Backup Procedures
          Questions
          Calendars

        You‘re viewing this with anonymous access, so some content might be blocked.
        {"serverDuration": 49, "requestCorrelationId": "edf234c5b50c4c3cb22a297e7cef4013"}