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

NinjaOne Policies: Condition Types Breakdown

Topic

This article describes the conditions available in the NinjaOne policy editor. To learn how to work with policy conditions, refer to Policies: Condition Configuration

Environment

NinjaOne Endpoint Management

Description

You can proactively monitor your systems with minimal configuration based on conditions set at the policy level. When a selected condition meets the configured criteria, such as missing software or a memory threshold, NinjaOne can assign severity and priority, send notifications to designated recipients, execute automation, and create a ticket.

NinjaOne offers multiple predefined conditions for operating systems, virtual machines, and network management systems. We also provide templates that enable you to quickly add various condition types to your policy.

This article categorizes conditions by type, detailing the applicable platforms for each. Select a topic to continue.

Agent Conditions

Antivirus Health (Windows)

This condition triggers when an antivirus program is missing, disabled, outdated, or when multiple antivirus programs are present on the endpoint. The accuracy of this condition relies on the Windows Security Center’s reporting. Some antivirus products may fail to report correctly or may not report at all.

CriteriaDescription
Detect Multiple Antivirus InstalledThis condition checks for more than one antivirus program reporting to the Windows Security Center and returns a list of the detected antivirus programs.
Ignore Microsoft Defender AntivirusMicrosoft Defender Antivirus is pre-installed on new Windows systems. When users check this option, the system disregards all information related to Microsoft Defender.
Duration DetectedThis condition denotes the time that elapses between detection and the triggering of any sub-condition.

Backup Alerts (Windows)

The Backup Job Duration Alert and the Backup Job Last Success Job Threshold Alert monitor the duration of backup completion and track the timestamp of the most recent successful backup.

Battery Monitoring (Windows, Mac OS, Linux)

This condition activates for any device equipped with a battery, including servers, once the specified threshold is met. The criteria for activation include:

  • The current charge level of the battery.
  • Overall battery health, calculated as a percentage comparing the maximum capacity when new to the current maximum capacity.
  • Battery cycle count.
These condition checks operate independently and do not combine with one another.

There are several important considerations to keep in mind when working with battery monitoring conditions:

  • The condition applies only to batteries detected by NinjaOne.
  • Some batteries do not provide data for specific attributes. NinjaOne cannot trigger this condition when it lacks the necessary information on those attributes.
  • You can view battery information in the Battery section on the device's detail page. If the Battery section is absent, the device will not support the battery condition functionality.

CPU (Windows, Mac OS, Linux)

This condition triggers when CPU utilization exceeds, falls below, or equals the threshold defined in the condition dialog box. You can also specify the time interval during which CPU utilization remains above, below, or equal to the defined percentage.

Memory (Windows, Mac OS, Linux)

This condition activates when memory utilization exceeds, falls below, or equals the threshold specified in the condition dialog box. You can also define the time interval during which memory utilization remains above or below the specified threshold, either in percentage or byte units.

Device Down (all OS types)

This condition activates if a device remains down for a predefined duration. You can set the condition type, duration, and the option to re-trigger the alert as long as the condition persists.

Device Down Considerations

  • In Advanced Settings, you can choose whether to trigger the condition again if it remains true after a reset. For instance, if you set the condition to alert for device down after three minutes with a reset interval of 90 seconds, the alert will trigger after three minutes, reset after 90 seconds, and trigger again following another three minutes if the device is still down. This option is available only for agent conditions.
  • You should configure only one Device Down condition per policy. Configuring multiple Device Down conditions will result in the subsequent conditions being ignored.

Disk Active Time (Windows)

Disk Active Time measures the percentage of elapsed time that the selected disk drives spend servicing read or write requests. Even with low MB/s usage, a high percentage of busy time can occur if the disk is heavily fragmented or engaged in many small operations.

This condition triggers when the Disk Active Time reaches a defined threshold in the condition dialog box.

You can use various mathematical operators to evaluate this condition and specify the time interval during which the disk's active time remains above, below, or equal to that percentage.

Disk Transfer Rate (Windows)

This condition triggers when the disk's read or write speed reaches a specified threshold, either above, below, or equal to the defined limit.

Disk Free Space (Windows, Mac OS, Linux)

This condition triggers when the disk free space meets a specified threshold defined in the condition dialog box, whether it is above, below, or equal to the threshold. You can set the duration for how long the disk free space must remain above, below, or equal to the specified threshold (in percentage or byte units) for the condition to trigger.

Windows has the following options:

  • Boot volume only
  • Volume labels mode (None, Include, and Exclude)
  • Exclude volume labels
  • Exclude removable disks
  • Exclude boot volume

The volume label is the unique name assigned to each protected volume on the endpoint. When using it for inclusion or exclusion, enter the name exactly as it appears on the target device.

If you choose to use the drive letter, format it as C:, replacing C with the corresponding letter of the drive you wish to exclude.

Mac and Linux only have one option: Exclude Mount Points.

Disk Usage (Windows, Mac OS, Linux)

This condition triggers when disk usage exceeds, drops below, or meets a specified threshold.

Windows has the following options:

  • Exclude Boot Volume
  • Exclude Removable Disk
  • Exclude Volume Labels

Mac and Linux have one option: Exclude Mount Points.

Network Utilization (Windows, Mac OS, Linux)

This condition triggers when the in-bytes or out-bytes on a device exceed, fall below, or equal a specified threshold for a defined duration. You can specify the threshold in Gbps, Kbps, Mbps, or Tbsp.

Process (Windows, Mac OS, Linux)

This alert activates when a designated process is up, down, exists, or does not exist at the endpoint.

  • The System Uptime Delay setting enables you to define how long the agent will wait before it starts alerting about the specified process being down after system startup. This feature addresses instances where a process takes time to start following machine boot-up.
  • The duration specifies how long the process must remain in the selected state before the alert triggers. The system uptime delay applies to processes that require more time to initialize during boot-up. If the process remains down after the specified duration, the alert triggers.
  • You can now utilize a wildcard in the process/service name fields. For example, using "team*" will activate the condition for "teamviewer" or "teams."
  • For Linux, you can also configure the duration and system uptime delay settings.

Reboot Pending (Windows, Mac OS, Linux)

This alert triggers based on the duration since NinjaOne flagged the system reboot and the idle duration of logged-in users. You can set conditions based on either or both factors and specify a duration of [#] minutes, hours, or days. When you activate the checkbox, an additional configuration editor appears, allowing you to limit the condition.

The Duration editor does not appear for idle users because the checkbox remains deactivated. You can still apply the condition without checking either of the boxes.

When multiple users are logged in, the system accounts for all idle times. The condition triggers only when every user exceeds the threshold. It closes when users no longer meet the idle criteria.

Windows Service (Windows)

This alert triggers when a specific service is either up, down, exists, or does not exist at the endpoint.

When you create a Windows Service condition, the system automatically populates a list of services by querying the devices under the relevant policy. To add a service that is not included in the list, type the service name and click "Add: (service name)" or press Enter on your keyboard.

The Start alerting after setting enables you to specify how long the agent should wait before it begins alerting about the specified process being down after startup. This feature addresses scenarios where there is a delay in a process starting after the machine boots up.

In Advanced Settings, you can choose to ignore the service if it is disabled or set to manual startup on the local machine. Additionally, you can decide whether the condition should trigger again if it remains true after a reset. For example, if you have a condition monitoring a service that goes down, and that condition triggers, the agent will use a reset interval of 90 seconds. If you select the Trigger again if condition still true after reset option, the condition will reset and re-trigger every 90 seconds as long as the service remains down. The condition will not trigger if the service is in a "Pending Start" state.

Process Resource (Windows, Mac OS, Linux)

This alert activates when a specific process uses a system resource (CPU or Memory) that exceeds, falls below, or equals a defined threshold for a specified time interval.

System Uptime (Windows, Mac OS, Linux)

This alert helps ensure that you regularly reboot target endpoints to maintain their optimal performance. It triggers when the number of days since the last reboot surpasses a specified threshold.

Windows Event (Windows)

This alert triggers when a specified combination of Source, Event ID, and Text occurs. You can set a condition to trigger only if the event occurs after a specified number of occurrences within a defined time frame.

The Text field enables you to monitor any text in the General view of an event, and it is case-sensitive. 

Refer to Policies: Windows Event Condition for instructions about adding a condition to monitor a Windows event.  

Critical Events (Windows)

This alert triggers when the number of critical event logs on a machine exceeds a specified threshold within a defined time interval. Events classified as Critical or Audit Failure are considered critical by the Critical Event condition.

Windows SMART Status Degraded (Windows)

This alert triggers for a device when the Win32_DiskDrive status returns any value other than 'OK'. When this alert activates, it indicates that Windows has detected a SMART Status error, necessitating immediate action. You should also implement a "Pred Fail" status for alerts regarding predictive failures. The "Pred Fail" feature assesses the raw data reported to Windows by the drive to evaluate potential issues.

NinjaOne's threshold for predictive failure is lower than that of Windows. As a result, it may report a predictive failure before Windows or other SMART status monitoring tools do.

For more information about Win32_DiskDrive, refer to Microsoft's documentation (external link).

Software (Windows)

This condition enables you to monitor the presence of software on a machine. It checks if specific software appears in NinjaOne's software inventory for a device. The software name must match exactly with the name listed in the software inventory. Using wildcards can be helpful (e.g., "*Chrome*" without quotation marks).

RAID Health Status (Windows)

Condition Templates enable monitoring of RAID failures through Event ID. NinjaOne offers a dedicated RAID Health Status monitor specifically designed for Dell and HP RAID controllers.

This condition operates with the following tools:

  • Dell: The system uses the PERCCLI.exe utility to upload and display data in the Device Details.
  • HP: The system employs the HPSSACLI utility to upload and display data in the Device Details.

When multiple RAID controllers exist, the system presents each controller in a separate tab. However, note that HP's Mega RAID controllers do not currently receive support.

Patch CVSS Score (Windows, Mac OS, Linux)

The trigger activates when at least one patch has a CVSS score greater than or equal to a specified threshold for a designated number of days. 

For example, if you set the threshold to 9.0 or higher and maintain it for three days, the system detects a patch on 2023-11-20 with a CVSS score of 9.8. In this case, the condition triggers if that patch remains unapplied by 2023-11-23. 

If the CVSS score updates to a value lower than 9.0 before the end of the three-day period, the condition does not trigger. However, if the system initially detects the patch with a score lower than 9.0 and then updates it to exceed the threshold on day four, the condition triggers immediately upon detection of the higher CVSS score since the duration from the initial detection has surpassed the limit.

Script Result Condition (Windows, Mac OS, Linux)

This condition enables you to run a script and monitor specific result codes and output text. The evaluation script can be any custom script stored in your Script Library. You choose the frequency of the script execution and establish a timeout interval. Additionally, you can receive a notification if the script encounters an error and fails to execute properly.

Consider the following important points when working with this type of condition:

  • The evaluation script must be a custom script; NinjaOne's native scripts are not applicable for this condition.
  • The evaluation script will run with system privileges.
  • The Script Error Notification option allows you to receive alerts when the script fails to execute successfully. This setting helps prevent false negatives.
  • Once you add the condition and save the policy, the script will run according to your selected schedule (either every [#] hours or [#] minutes).
  • You will not see entries in the Activity Feed indicating that the script is running based on the schedule you selected. Notifications will only occur if the condition triggers according to the script result code and output that you have configured for monitoring.

When monitoring for specific text patterns, whether they contain, do not contain, start with, or end with certain text, the condition is sensitive to the exact match and is case-sensitive. For instance, if you set the condition to look for output that contains "status enabled," it will not trigger if the output contains "status is enabled" or "Status Enabled."

The "With Output" setting works in conjunction with the "Result Code" condition through a logical "AND" operator. Both parameters must be satisfied to trigger the alert. If the evaluation script generates only exit codes without any text string output, ensure you leave the "With Output" text box empty and set the dropdown to "Does Not Contain."

BitLocker Status (Windows)

This condition enables you to monitor the status of BitLocker on a device, determining whether it is enabled, disabled, locked, or unlocked. You can set a specific duration after which the condition triggers when met, and you have the option to exclude the boot volume, recovery volume, removable disk, or specific volume labels from this condition.

Custom Fields (Windows, Mac OS, Linux)

Use this condition to monitor the values of configured custom fields across the following field types:

  • CheckBox
  • Numeric
  • Date
  • DateTime
  • Time
  • Decimal
  • Text
  • TextEncrypted
  • TextEmail
  • TextIpAddress
  • TextPhone
  • TextMultiLine
  • MultiSelect
  • Dropdown
  • URL

You can add multiple fields that must either meet all specified conditions to trigger the action or satisfy at least one of the listed conditions. The qualifier and value fields vary based on the selected field type.

To make a custom field available as an option for the condition, you must select at least Read Only access from the Automations dropdown. You can change access settings in NinjaOne by navigating to Administration → Devices → Role/Global Custom Fields, where you can add or edit a custom field.

Patch Last Installed (Windows, macOS, Linux)  

This condition triggers when available patches have remained pending installation for a specific number of days. Specifically, it tracks the number of days since a patch was successfully applied.  

Daemon (Mac OS, Linux)  

This condition triggers based on the status of a particular daemon on the device.  

For Linux devices, you can set an alert to begin monitoring after a specified time, ensuring that the condition supports closed looping. Under Advanced Settings, you can also configure an additional trigger that attempts to reset the daemon automatically.  

This condition provides auto-reset intervals once it no longer meets the initial requirements. In the Linux environment, you can specify the duration for which the process must remain in the selected state before triggering an alert. The system uptime delay defines the timeframe for processes that take longer to start after machine boot-up, issuing an alert if the process remains down beyond the specified period.  

FileVault Status (Mac OS)  

This condition monitors FileVault's status, determining whether it is enabled or disabled on the machine. You can specify a duration after which the condition will trigger if it meets the set criteria.

Virtual Machine Host Conditions

Aggregate CPU Usage

This condition triggers when the aggregate CPU usage exceeds, falls below, or equals the threshold percentage defined in the condition dialog box. You must also specify the duration during which the CPU usage should remain above, below, or equal to the defined percentage for the condition to activate.

Memory Usage

This condition triggers when memory usage surpasses, falls short of, or meets the threshold set in the condition dialog box. Define the duration for which the memory usage must be above, below, or equal to the specified threshold (in percentage or byte units) for the condition to activate.

Disk Usage

This condition triggers when disk usage crosses, fails to reach, or matches the threshold defined in the condition dialog box. Specify the duration for which disk usage needs to be above, below, or equal to the threshold (in percentage or byte units) for the condition to activate.

Datastore Free Space

This condition triggers when datastore free space surpasses, drops below, or matches the threshold established in the condition dialog box. You also need to define the duration for which the free space must be above, below, or equal to the specified threshold (in percentage or byte units) for the condition to activate.

VM Host Uptime

This alert is essential for ensuring that you reboot VMware hosts frequently enough to maintain optimal performance. The alert triggers if the number of days since the last reboot exceeds the specified interval.

Bad Sensor Count

This condition triggers when the number of faulty sensors on a host exceeds, falls below, or equals the threshold defined in the condition dialog box.

Sensor Health

This condition triggers when the specified sensors are in the designated states.

Virtual Machine Conditions

Processor Usage

This condition triggers when the processor usage exceeds, falls below, or equals the threshold percentage defined in the condition dialog box. You can specify the duration that the processor usage must remain above, below, or equal to the specified percentage for the condition to trigger.  

Memory

This condition triggers when memory usage exceeds, drops below, or equals the threshold defined in the condition dialog box. You can specify the duration that memory usage must remain above, below, or equal to the defined threshold, either in percentage or in byte units, before the condition activates.  

Guest Operation Mode

This condition enables you to monitor the virtual machine's operational state, whether it is on, off, or suspended.  

Snapshot/Checkpoint Size

This condition triggers when the snapshot size exceeds, drops below, or equals the threshold defined in the condition dialog box. You can specify the duration that the snapshot size must remain above, below, or equal to the set threshold, in GB or MB, before the condition activates.  

Snapshot/Checkpoint Lifespan

This condition triggers when the snapshot lifespan exceeds, drops below, or equals the threshold defined in the condition dialog box. You can specify the duration that the snapshot lifespan must remain above, below, or equal to the specified threshold, measured in days, weeks, or months, before the condition activates.  

Guest Tools Not Running

This condition monitors situations where Guest Tools do not run on a virtual machine.

NMS Conditions

For more information about NMS policies, refer to NMS: Policy Management.

Configuration File

This condition monitors changes to the configuration file. When monitoring for changes in the file contents, you can specify whether you want to detect added or removed content, specific text to monitor, or specific text to ignore. Under the Configuration Backup tab within the NMS policy, you can specify the type of configuration to monitor. You can choose between "Startup-config" or "Running-config."

HTTP

This condition monitors selected status codes and whether they contain or do not contain specified content text.

Memory

This condition triggers if memory utilization is greater than, less than, or equal to a certain threshold percentage defined in the condition dialog box. You can choose between hit count or duration for this condition type.

Network Adapter Traffic

This condition triggers if the ingoing or outgoing network adapter traffic is greater than, less than, or equal to a specified threshold, which you can define in various types of units. You can choose between hit count or duration for this condition type.

Network Adapter Traffic Percent

This condition triggers if the ingoing or outgoing network adapter traffic exceeds, falls below, or equals a certain threshold percentage. You can choose between hit count or duration for this condition type.

Network Adapter Status

This condition monitors whether a network adapter is or is not in a specified status.

Network Adapter Status Change

This condition monitors when a network adapter changes to or from a specified status.

Ping Latency

This condition triggers if the ping latency is greater than, less than, or equal to a certain threshold percentage. You can choose between hit count or duration.

Ping Packet Loss

This condition triggers if the ping packet loss is greater than, less than, or equal to a certain threshold percentage for a specified duration.

Ping Response

This condition monitors whether a ping receives or does not receive a response after a specified number of attempts.

Ports

This condition monitors the status of specified ports.

Processor

This condition triggers if processor utilization is greater than, less than, or equal to a certain threshold percentage defined in the condition dialog box. You can choose between hit count or duration.

SNMP Trap

This condition monitors for two scenarios: whether any trap is received and whether a trap containing a specific OID or a trap value with a designated target string is received.

Syslog

This condition monitors the syslog for the specified logic type, messages, facilities, and severities. Note that the Notice, Informational, and Debug severity levels may generate a significant number of alerts.

FAQ

Next Steps