Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20396

powershell remote script issue with setting returning message and statistics

$
0
0

I am finding it difficult to understand why I get this line in the SAM debugging of a Powershell Monitor I use with 10 Statistics and Messages:

 

2014-08-05 16:12:17,339 [STP SmartThreadPool Thread #0] [C1364] DEBUG SolarWinds.APM.Probes.PowerShellProbe - Processing macros: 24 variables processed

2014-08-05 16:12:30,198 [STP SmartThreadPool Thread #0] [C1364] DEBUG SolarWinds.APM.Probes.PowerShellProbe - Data transform for script result started.

2014-08-05 16:12:30,198 [STP SmartThreadPool Thread #0] [C1364] INFO  SolarWinds.APM.Probes.PowerShellProbe - Parse message values log:

  Message column name not valid or not defined and will be ignored. - "0" (Message.0: SQLServer Database Backup Check

).

  Message value is empty. - "" (Message.5: 

).

  Message value is empty. - "" (Message.6: 

).

  Message value is empty. - "" (Message.7: 

).

  Message value is empty. - "" (Message.8: 

).

  Message value is empty. - "" (Message.9: 

).

 

YET the system does set the statistic I require as Statistic.0

 

2014-08-05 16:12:30,198 [STP SmartThreadPool Thread #0] [C1364] DEBUG SolarWinds.APM.Probes.Utility.DataTransformHelper - Transforming the value for column '0'. Original statistic value: '4'

2014-08-05 16:12:30,198 [STP SmartThreadPool Thread #0] [C1364] DEBUG SolarWinds.APM.Probes.Utility.DataTransformHelper - Expression is null or empty for column '0', returning the original value: '4'

2014-08-05 16:12:30,198 [STP SmartThreadPool Thread #0] [C1364] DEBUG SolarWinds.APM.Probes.Utility.DataTransformHelper - Transforming the value for column '1'. Original statistic value: '22'

2014-08-05 16:12:30,198 [STP SmartThreadPool Thread #0] [C1364] DEBUG SolarWinds.APM.Probes.Utility.DataTransformHelper - Expression is null or empty for column '1', returning the original value: '22'

2014-08-05 16:12:30,198 [STP SmartThreadPool Thread #0] [C1364] DEBUG SolarWinds.APM.Probes.Utility.DataTransformHelper - Transforming the value for column '2'. Original statistic value: '22'

2014-08-05 16:12:30,198 [STP SmartThreadPool Thread #0] [C1364] DEBUG SolarWinds.APM.Probes.Utility.DataTransformHelper - Expression is null or empty for column '2', returning the original value: '22'

2014-08-05 16:12:30,198 [STP SmartThreadPool Thread #0] [C1364] DEBUG SolarWinds.APM.Probes.Utility.DataTransformHelper - Transforming the value for column '3'. Original statistic value: '22'

2014-08-05 16:12:30,198 [STP SmartThreadPool Thread #0] [C1364] DEBUG SolarWinds.APM.Probes.Utility.DataTransformHelper - Expression is null or empty for column '3', returning the original value: '22'

2014-08-05 16:12:30,198 [STP SmartThreadPool Thread #0] [C1364] DEBUG SolarWinds.APM.Probes.Utility.DataTransformHelper - Transforming the value for column '4'. Original statistic value: '22'

2014-08-05 16:12:30,198 [STP SmartThreadPool Thread #0] [C1364] DEBUG SolarWinds.APM.Probes.Utility.DataTransformHelper - Expression is null or empty for column '4', returning the original value: '22'

2014-08-05 16:12:30,198 [STP SmartThreadPool Thread #0] [C1364] DEBUG SolarWinds.APM.Probes.Utility.DataTransformHelper - Transforming the value for column '5'. Original statistic value: '0'

2014-08-05 16:12:30,198 [STP SmartThreadPool Thread #0] [C1364] DEBUG SolarWinds.APM.Probes.Utility.DataTransformHelper - Expression is null or empty for column '5', returning the original value: '0'

2014-08-05 16:12:30,198 [STP SmartThreadPool Thread #0] [C1364] DEBUG SolarWinds.APM.Probes.Utility.DataTransformHelper - Transforming the value for column '6'. Original statistic value: '0'

2014-08-05 16:12:30,198 [STP SmartThreadPool Thread #0] [C1364] DEBUG SolarWinds.APM.Probes.Utility.DataTransformHelper - Expression is null or empty for column '6', returning the original value: '0'

2014-08-05 16:12:30,198 [STP SmartThreadPool Thread #0] [C1364] DEBUG SolarWinds.APM.Probes.Utility.DataTransformHelper - Transforming the value for column '7'. Original statistic value: '0'

2014-08-05 16:12:30,198 [STP SmartThreadPool Thread #0] [C1364] DEBUG SolarWinds.APM.Probes.Utility.DataTransformHelper - Expression is null or empty for column '7', returning the original value: '0'

2014-08-05 16:12:30,198 [STP SmartThreadPool Thread #0] [C1364] DEBUG SolarWinds.APM.Probes.Utility.DataTransformHelper - Transforming the value for column '8'. Original statistic value: '0'

2014-08-05 16:12:30,198 [STP SmartThreadPool Thread #0] [C1364] DEBUG SolarWinds.APM.Probes.Utility.DataTransformHelper - Expression is null or empty for column '8', returning the original value: '0'

2014-08-05 16:12:30,198 [STP SmartThreadPool Thread #0] [C1364] DEBUG SolarWinds.APM.Probes.Utility.DataTransformHelper - Transforming the value for column '9'. Original statistic value: '0'

2014-08-05 16:12:30,198 [STP SmartThreadPool Thread #0] [C1364] DEBUG SolarWinds.APM.Probes.Utility.DataTransformHelper - Expression is null or empty for column '9', returning the original value: '0'

2014-08-05 16:12:30,198 [STP SmartThreadPool Thread #0] [C1364] DEBUG SolarWinds.APM.Probes.PowerShellProbe - Data transform for script result finished without any error.

2014-08-05 16:12:30,198 [STP SmartThreadPool Thread #0] [C1364] DEBUG SolarWinds.APM.Probes.PowerShellProbe -

Begin PowerShell Execute Result: ================================

Target: 192.168.200.195

Script:      ====================================================

C:\NewScripts\UAT\Orion_Monitoring\CheckBackUp.ps1 17 DCASANC001

# Loop through the result array which contains the ten Message/Statistic pairs

# ----------------------------------------------------------------------------

for($i = 0;$i -lt $ResultArray.Count;$i++)

{

  write-host $ResultArray[$i].ItemArray[0]

  # Log the result

  $temp = $ResultArray[$i].ItemArray[0]

  $now=get-date

  Write-output "$now $temp" | out-file -filepath $Logfile -append -width 400

}

Output:      ====================================================

Message.0: SQLServer Database Backup Check

Statistic.0: 4

Message.1: master

Statistic.1: 22

Message.2: sx

Statistic.2: 22

Message.3: model

Statistic.3: 22

Message.4: msdb

Statistic.4: 22

Message.5: 

Statistic.5: 0

Message.6: 

Statistic.6: 0

Message.7: 

Statistic.7: 0

Message.8: 

Statistic.8: 0

Message.9: 

Statistic.9: 0

 

 

Is this just a formatting thing. Do I need Messages in quotes? . Only I get no objection to the other Messages returned


Viewing all articles
Browse latest Browse all 20396

Trending Articles