This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

A Simple App Fabric powershell monitor

Hi there. i am trying to create a simple powershell monitor, but it is slightly complicated, as it requires loading of modules, and storing credentials for a remoting session. Is this possible?

basically it is for an app fabric cache cluster, and the command on the server is just get-cacheclusterhealth this then returns some results:

PS C:\Windows\System32\WindowsPowerShell\v1.0\

tion> Get-Cacheclusterhealth

Cluster health statistics

=========================

HostName = **************

-------------------------

    NamedCache = *************

        Healthy              = 25.00

        UnderReconfiguration = 0.00

        NotPrimary           = 0.00

        NoWriteQuorum        = 0.00

        Throttled            = 0.00

    NamedCache = ****************

        Healthy              = 25.00

        UnderReconfiguration = 0.00

        NotPrimary           = 0.00

        NoWriteQuorum        = 0.00

        Throttled            = 0.00

    NamedCache = ***************

        Healthy              = 25.00

        UnderReconfiguration = 0.00

        NotPrimary           = 0.00

        NoWriteQuorum        = 0.00

        Throttled            = 0.00

    NamedCache = **********

        Healthy              = 25.00

        UnderReconfiguration = 0.00

        NotPrimary           = 0.00

        NoWriteQuorum        = 0.00

        Throttled            = 0.00

If there is a 25 next to any of the 'throttled' section, i want it to notify.

Any thoughts on the best route to take on this?

i've tried to import the modules onto the orion server, but the get-cacheclusterhealth command doesn't look like it can be run using a -host or anything.

I can run the script in the edit script box in the template, but the above is the output - i'm just not sure on the syntax of the unique identifers i need in the script - ideally, it would be that 'throttled' would have any other value rather than 0.00

stat.throttled = 0.00

Message.throttled = Throttled

Or something. not really following it here: The Basics of PowerShell (part 3) 

Parents Reply Children
No Data