Powershell Component with Multiple Statistics

I've written several of these in the past but I'm at a loss for why this one isn't working. Does anyone see what's wrong with this script output? When I try to map the values with the Get Script Output button, I get the 'Not defined' error.

This is the output from the debug logs.

Output:      ====================================================
Statistic.pkt4received: 34204890
Message.pkt4received: Packets Received
Statistic.pkt4ackreceived: 0
Message.pkt4ackreceived: ACKs Received
Statistic.pkt4acksent: 25828997
Message.pkt4acksent: ACKs Sent
Statistic.pkt4discoverreceived: 7224257
Message.pkt4discoverreceived: Discover Packets Received
Statistic.pkt4offersent: 3343291
Message.pkt4offersent: Offers Sent
Statistic.pkt4nakreceived: 0
Message.pkt4nakreceived: NAKs Received
Statistic.pkt4requestreceived: 26094337
Message.pkt4requestreceived: Requests Received

Errors:      ====================================================

Result:      ====================================================

Component Evidence Type: DynamicEvidence
Component Type: WindowsPowerShell
Actual Outcome: Undefined

Registered Errors:


Dynamic Monitor Result Info:

Outcome based on statistic thresholds: Undefined
End PowerShell Execute Result ===================================

Thanks for looking!

Parents
  • When you're testing your script, are you editing an assigned template? Or are you editing it from a global template?

    Editing an assigned application template will have the name of the node next to the template name.




    Editing a Global Template will have the work Template next to the name.

    The 'Not Defined' could be coming from the multi-statistic output not being defined, specifically in the Global Template. If you edit the Global Template and expand out your PowerShell component monitor, near the bottom will show all of your multi-statistic outputs. Make sure that all of the ones showing are accurate and there isn't any extra ones that might have been created from testing. If you do find some that should not be there, click on the delete button next to them.

    Likewise, if you delete all of the statistic outputs then you can automatically recreate them by editing the script, populating the 'Will run against' and 'credential' drop downs, and clicking 'Get script output'.

Reply
  • When you're testing your script, are you editing an assigned template? Or are you editing it from a global template?

    Editing an assigned application template will have the name of the node next to the template name.




    Editing a Global Template will have the work Template next to the name.

    The 'Not Defined' could be coming from the multi-statistic output not being defined, specifically in the Global Template. If you edit the Global Template and expand out your PowerShell component monitor, near the bottom will show all of your multi-statistic outputs. Make sure that all of the ones showing are accurate and there isn't any extra ones that might have been created from testing. If you do find some that should not be there, click on the delete button next to them.

    Likewise, if you delete all of the statistic outputs then you can automatically recreate them by editing the script, populating the 'Will run against' and 'credential' drop downs, and clicking 'Get script output'.

Children
No Data