Skip to main content

Overview

Updates Machine CFs to manage monitoring exclusions.

Requirements

  • VSAAPI module

Process

Automation will be used to write the Org CF to the machines daily, using -SetManagedValues. The script can also be used on-demand to assign specific exclusions to monitoring on an Agent, Group, Org, or Environment-wide basis.

Payload Usage

./UpdateVsaMonitoringFields.ps1 <API Auth Params> -ExcludeAll

Writes 'Yes' to 'xPVAL Exclude From Monitoring' for every Agent in the environment. -IncludeAll can be used instead to write 'No'.

./UpdateVsaMonitoringFields.ps1 <API Auth Params> -Exclude -OrgName 'ProVal Technologies'

Writes 'Yes' to 'xPVAL Exclude From Monitoring' for every Agent in the organization 'ProVal Technologies'. GroupName and AgentName can also be provided. OrgName accepts both name and OrgRef (shortname).

./UpdateVsaMonitoringFields.ps1 <API Auth Params> -SetManagedValues

Writes contents of Org CF 'Managed' to 'xPVAL Monitoring Managed' on every endpoint.

Parameters

ParameterAliasRequiredDefaultTypeDescription
BaseURLTrueStringVSA URL
VsaUserNameTrueStringUser with API Access
RestApiTokenTrueStringREST API Token for User
IncludeAllFalseSwitchWrites 'No' to 'xPVAL Excluded From Monitoring' CF on ALL agents.
IncludeFalseSwitchWrites 'No' to 'xPVAL Excluded From Monitoring' CF for agents in the indicated container.
ExcludeAllFalseSwitchWrites 'Yes' to 'xPVAL Excluded From Monitoring' CF on ALL agents.
ExcludeFalseSwitchWrites 'Yes' to 'xPVAL Excluded From Monitoring' CF for agents in the indicated container.
OrgNameFalseStringSpecifies Organization Level container for Include / Exclude parameters. Accepts Full or Short OrgName.
GroupNameFalseStringSpecifies Group Level container for Include / Exclude parameters. This is the formal VSA Reverse Group Name.
AgentNameFalseStringSpecifies Specific Agent for Include / Exclude parameters.

Output

./UpdateVsaMonitoringFields-log.txt