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

NinjaOne Agent Troubleshooting: Add an Override for Antivirus

Question

Can I add an override to the NinjaRMM agent that allows for manually specifying antivirus (AV) information?

Environment

  • NinjaOne RMM agent
  • Linux
  • Windows
  • macOS

Answer

Yes. To populate the AV information, use an optional av_override.json file or the "Ninja - Set Antivirus Override" template in the NinjaOne Automation Library (Administration → Library → Automation → Template Library).

automation_template library_set antivirus override.png

Figure 1: Select the set antivirus override template script in NinjaOne

The three fields or script variables you must update are: 

  • AV name or av_name (required)
  • AV state or av_state must be one of the following: up-to-date, out-of-date, or unknown
  • AV status or av_status must be one of the following: on, off, expired, snoozed, unknown

The file path is:

ProgramdataNinjaRMMAgentCustomizationav_override.json

If you import the script from NinjaOne's template library, you can mark the fields as "mandatory." To do so: 

  1. Click the template in NinjaOne to open it.
  2. On the "Create Script" page, move your cursor over the variable and click the edit icon. 
edit variable.png

Figure 2: Edit a template script variable in NinjaOne (click to enlarge)

  1. Activate the Mandatory checkbox.
set script variable as mandatory.png

Figure 3: Make the script variable a required field

  1. Click Save

Example

{
  "av_override": [
    {
      "av_name": "Exmaple Antivirus",
      "av_version": "1.2.6",
      "av_status": "Out-of-Date"
      "av_state": "OFF"
    }
  ]
}

Additional Resources

The following learning content will help you fully utilize the NinjaRMM agent.

FAQ

Next Steps