Forum Discussion

Christopher_Boo's avatar
Icon for Cirrostratus rankCirrostratus
Jun 02, 2011

External Health Monitor for Windows Paged Pool Memory

I've got wmi queries working using wmic.


[admin@bigipltm:Standby] ~ wmic -U domain/user%password //nodeip "select PoolPagedBytes from win32_PerfRawData_PerfOS_Memory"


CLASS: Win32_PerfRawData_PerfOS_Memory







How can I script an external monitor to mark the node down if the received value is less than a specified value?




















4 Replies

  • Try the attached script ...



    If it doesn't work, you can visit these links for troubleshooting health monitors:





  • I just realize that the wmic output was not only number.

    Add this egrep command to the end of wmic command in the script:

     | egrep '^[0-9]+$' 

    The line would be like this:

    PoolPagedBytes=`wmic -U domain/user%password //nodeip "select PoolPagedBytes from win32_PerfRawData_PerfOS_Memory" |  egrep '^[0-9]+$'`

  • Just a little correction on my part. The PoolPagedBytes counter actually shows the number of bytes allocated from the paged pool. So in the case of trying to monitor for paged pool memory being exhausted, I'll want to monitor for the counter exceeding a defined value. I had it in my head that PoolPagedBytes was showing the amount of memory available. Regardless, what you guys have provided is great. Just a matter of swapping the values in the if statement to get what I want.



    Thanks again,