Already a NinjaOne customer? Log in to view more guides and the latest updates.

NinjaOne NMS: Policy Management

reviewed by Ian Crego

Topic

This article discusses policy management for NinjaOne Network Management System (NMS).

Environment

  • NinjaOne Network Management System (NMS)
  • NinjaOne Endpoint Management

Description

You can assign roles to NMS-discovered devices. The role determines the policy that NinjaOne  applies to each device. You must install the NMS Delegate on the device for policy management to take effect.

An NMS policy defines the monitors, conditions, and alert settings that NinjaOne applies to the devices assigned to it. You can create, copy, and assign default policies for an organization.

Select a topic to continue:

Prerequisites

You must set up monitoring for configuration backup, Simple Network Management Protocol (SNMP) traps, Syslog, or NetFlow locally on your devices. Configuration steps differ depending on your device's vendor and model, so we recommend referring to your manufacturer's documentation for assistance with setup.

Review the following requirements and supported platforms:

  • NinjaOne supports configuration backup monitoring on Hewlett-Packard (HP) and Cisco devices.
  • NinjaOne supports NetFlow, JFlow, sFlow, and Internet Protocol Flow Information Export (IPFIX) monitoring.
  • SonicWall requires App Visualization licensing to use flow reporting.
  • You can create NMS policies from custom device roles. When you create the new policy, the configuration dialog enables you to select the custom role. For more information about custom device roles, refer to NinjaOne Endpoint Management: Device Roles.

How NMS Determines Whether a Device Is Online or Offline

NinjaOne determines whether a device is online or offline by evaluating data from the following monitors, which you can activate on the NMS policy's configuration page:

  • Ping
  • Port
  • Hypertext Transfer Protocol (HTTP)
  • SNMP Monitoring (SNMP Traps)
  • Syslogs
  • NetFlow

Status Determination Logic

NinjaOne applies the following logic to determine whether a device is online or offline:

  1. Find the shortest monitoring interval. NinjaOne identifies the shortest monitoring interval among all active monitors in the policy and multiplies it by 2. This becomes the threshold period.
  2. Check for recent data. If NinjaOne does not receive any monitor data within the threshold period, it marks the device offline.
  3. Ping-only exception. For devices using only Ping monitors, NinjaOne does not mark the device offline until the second consecutive missed interval. This rule prevents false offline readings in unstable network environments.

Create a New NMS Policy

Follow these steps to create a new NMS policy:

  1. In NinjaOne, navigate to Administration → Policies → NMS Policies, then click Create New Policy.
NMSPolicy_AddNew.png
Figure 1: Administration → Policies → NMS Policies → Add New (click to enlarge)
  1. Assign the new policy a name and an optional description, then click the Role drop-down menu and select NMS. A new drop-down menu labeled NMS Role will appear. Select the device role and click Create.
admin_policies_nms_new_modal.png
Figure 2: The Create a policy window (click to enlarge)
  1. Click Save to complete the new policy creation and assign policy settings.

The Parent policy field is not configurable for NMS policies.

Copy Existing NMS Policies

To copy an existing NMS policy, perform the following steps:

  1. Move your cursor over the policy, click the ellipsis (three dots) icon, and select Copy.
  2. Name the policy and click Save.
  3. Make any necessary changes to the configured settings.

NMS Policy Settings and Configuration

This section discusses each tab in the NMS policy and the settings you can configure in each tab.

nms policy_sections.png
Figure 3: Policy configuration page sections (click to enlarge)

Network Performance

These settings enable you to monitor network performance using any of the following methods:

Tab nameDescription
DNSThe NMS Delegate monitors the Domain Name System (DNS) at a specified interval and timeout (in milliseconds), and it checks the DNS NetBIOS Name, LMHost, Host, or Forwarded DNS resolution. The NMS Delegate hard-codes these policy settings, so you cannot change them.
PingThe NMS Delegate monitors pings at a specified interval and timeout (in seconds). You can also configure the packet Time to Live (TTL), the pings per device, and the delay between pings (in milliseconds).
PortThe NMS Delegate monitors selected ports at a specified interval and timeout (in milliseconds).
HTTPThe NMS Delegate monitors HTTP or Hypertext Transfer Protocol Secure (HTTPS) for the selected port at a specified interval and timeout (in seconds).
The NMS Delegate runs all monitors on the same local area network (LAN).
nms policy_network performance_tabs.png
Figure 4: Network performance tabs (click to enlarge)

Configuration Backup

Use these settings to manage the configuration backup for HP or Cisco devices. You can configure the following options:

  • Interval and timeout for the configuration backup (in seconds)
  • File transfer timeout to monitor (in seconds)
  • Whether to monitor the running configuration or the startup configuration

For configuration backup to work, you must set up the Telnet or Secure Shell (SSH) credentials. To do so, navigate to any organization configuration page and add or edit the data in the Credentials section. The Edit and Delete options only appear when you move your cursor over the row.

org_credentials_add or edit.png
Figure 5: Add, edit, or delete credentials (click to enlarge)

Syslog

Use these settings to choose different monitoring facilities and severities within the syslog on the device. NinjaOne ignores any facilities and severities that you clear in the conditions.

NinjaOne also ignores the following syslog activities by default:

  • Facility: User
  • Severity: Debug, Info, Notice

To receive messages or alerts for these facilities and severities, you must manually configure the alert in the Conditions section of the NMS policy. Select the Syslog condition and then select which messages you want to receive from the Facilities or Severities fields.

NetFlow/sFlow/JFlow Collector

These settings apply to flow monitoring on your devices.

NinjaOne supports several traffic protocols:

  • NetFlow (NetFlow 5, NetFlow 9) on the following systems:
    • Cisco
    • SonicWall
  • JFlow
  • sFlow (sFlow 2, sFlow 5)
  • IPFIX (NetFlow 10)

SNMP Monitoring

These settings enable you to monitor basic SNMP data, including central processing unit (CPU), memory, disk, and network adapter activity. When you add a monitor, NinjaOne presents the options from the SNMP Library. For more information about custom SNMP monitors, refer to NinjaOne NMS: Custom SNMP.

AddMonitorFromLibrary.png
Figure 6: Add monitor from Library (click to enlarge)

Conditions

Choose from any of the following available conditions to monitor with this policy:

ConditionDescription
Close when no longer metNinjaOne sends a recovery notification through the policy's channels when the condition is no longer in violation.
Configuration FileMonitor for changes to the configuration file. Specify whether you want to monitor for content being added or removed, specific text to monitor for, or specific text to ignore. In the NMS policy's Configuration Backup tab, you can specify the type of configuration you want to monitor. You can choose between Startup-config and Running-config.
Device DownTrigger if the device goes down for the duration of time specified in the condition dialog.
Disk UsageThis condition is a firewall and virtual machine (VM) host policy only, and triggers if the disk utilization is greater than, less than, or equal to a threshold percent defined in the condition dialog.
HttpMonitor for selected status codes, as well as the presence of specified content text.
MemoryTrigger if the memory utilization is greater than, less than, or equal to a threshold percent defined in the condition dialog. You can choose between hit count or duration for the type.
Network Adapter StatusMonitor whether a network adapter is in a specified status.
Network Adapter Status ChangeMonitor when a network adapter changes to or from a specified status.
Network Adapter TrafficTrigger if the incoming or outgoing network adapter traffic is greater than, less than, or equal to a threshold, which you can specify in numerous units. You can choose between hit count or duration for the type.
Network Adapter Traffic PercentTrigger if the incoming or outgoing network adapter traffic is greater than, less than, or equal to a specified threshold percentage. You can choose between hit count or duration for the type.
Ping LatencyTrigger if the ping latency is greater than, less than, or equal to a threshold percent defined in the condition dialog. You can choose between hit count or duration for the type.
Ping Packet LossTrigger if the ping packet loss is greater than, less than, or equal to a threshold percent defined in the condition dialog for a specified duration of time.
Ping ResponseMonitor if a ping receives a response after a specified number of attempts.
PortsMonitor the status of specified ports.
ProcessorTrigger if the processor utilization is greater than, less than, or equal to a threshold percent defined in the condition dialog. You can choose between hit count or duration for the type.
SNMP TrapMonitor if NinjaOne receives any trap, a trap containing a specific object identifier (OID), or a trap value containing a specific target string.
SyslogMonitor the syslog for the specified logic type (and/or), message, facilities, and severities. The last three options in Severities could result in a large number of alerts.

NMS Condition Interval Dependency

The following conditions depend on the SNMP monitoring interval:

  • All network adapter conditions
  • Custom SNMP
  • Device Down
  • Disk Usage
  • Memory
  • Processor
  • System uptime

Additional NMS Policy Condition Settings

This section contains additional configuration options.

Reset Interval

You can specify a reset interval when you create conditions in your NMS policies. The reset interval is the time before the condition resets and NinjaOne clears the alert from the device.

NMSCOndition_AutoReset.png
Figure 7: NMS Condition → Reset Interval (click to enlarge)

Notify Technicians

You can send notifications to all technicians when a condition is triggered.

NMSCOndition_NotifyTechs.png
Figure 8: NMS Condition → Notify Technicians (click to enlarge)

Closed Loop Alerting

Many monitoring conditions in an NMS alert policy include a When no longer met checkbox. When you select it, NinjaOne sends a recovery notification through the policy's channels when the condition is no longer in violation. This option is inactive by default for all new monitoring conditions. Existing conditions on existing policies are not affected.

Recovery notifications follow these rules:

  • NinjaOne sends a recovery notification only when the original alert fires.
  • NinjaOne does not send a recovery notification for conditions while the device is offline.
  • Recovery notifications use the notification channels configured on the policy (for example, email, webhook, or ticketing integrations).
NMSCondition Dialog.png
Figure 9: The NMS Condition window (click to enlarge)

The alert history in NinjaOne shows the original alert event and the recovery event for each condition as a paired lifecycle view. This view appears whether or not the Notify when condition is no longer in violation toggle is active.

To deactivate recovery notifications for a specific condition, open the condition dialog and deactivate the Notify when condition is no longer in violation toggle.

Assign Default NMS Policies for an Organization

Follow these steps to assign default policies that apply across the entire organization:

  1. Navigate to Administration → Organizations and select an organization from the list.
SelectOrg.png
Figure 10: Administration → Organizations (click to enlarge)
  1. On the organization's configuration page, select Policies, then open the NMS Policies tab.
2.png
Figure 11: Policies → NMS Policies (click to enlarge)
  1. Select the desired default policies from the drop-down menus, then click Save.

After you save, NinjaOne automatically assigns policies to NMS devices in the organization according to their assigned role.

Additional Resources

To learn more about custom device roles and custom SNMP monitors, refer to the following articles:

FAQ

Next Steps