Skip to main content

CrystalDiskInfo Alert

Overview

This script serves as the evaluation logic for the ticketing component of the Proactive Disk Health Monitor solution. It is triggered by the CrystalDiskInfo - Ticket Required compound condition to determine if a ConnectWise Manage ticket should be created.

Because ConnectWise Manage tickets cannot render complex HTML and are limited to roughly 1100 characters, this script does not decode the full WYSIWYG alert payload. Instead, it reads the cPVAL Crystal Disk Alert Required flag and the cPVAL Crystal Disk Health Status field. If an alert is required, it returns a concise plain-text summary directing the technician to review the full HTML report stored in the cPVAL Crystal Disk Alert Content custom field within NinjaOne, and exits with code 1. If no alert is required, it exits silently with code 0.

Sample Run

Note: This script is specifically engineered to operate as the evaluation script within the CrystalDiskInfo - Ticket Required compound condition. Manual execution is not recommended, as the script's output and exit code are intended to trigger automated ticketing actions rather than provide direct feedback.

Dependencies

Parameters

This script does not accept any runtime parameters. It relies entirely on reading the device custom fields populated by the CrystalDiskInfo Audit automation.

Custom Fields

Custom FieldTypeExampleScopeAvailable OptionsEditableDescription
cPVAL Crystal Disk Alert RequiredCheckboxCheckedDeviceChecked, UncheckedNoEvaluated to determine if the ticketing automation should proceed.
cPVAL Crystal Disk Health StatusTextModelA: Good, ModelB: CautionDeviceN/ANoRead by the script to include a brief health summary in the ticket output.
cPVAL Crystal Disk Alert ContentWYSIWYGHTML PayloadDeviceN/ANoReferenced in the output text as the location for the full diagnostic report.

Automation Setup/Import

Automation Configuration

Output

  • Activity Details: A concise plain-text summary indicating a degraded disk health status, the current health summary, and instructions to review the detailed WYSIWYG custom field in NinjaOne.
  • Exit Code: Returns 1 when a ticket is required, and 0 when no ticket is needed or if a read error occurs.

Changelog

2026-08-06

  • Initial version of the document