Forum Discussion
Christopher_Boo
Cirrostratus
Jun 02, 2011External 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
PoolPagedBytes
190488576
How can I script an external monitor to mark the node down if the received value is less than a specified value?
Thanks,
Chris
4 Replies
- hwidjaja_37598
Altostratus
Try the attached script ...
If it doesn't work, you can visit these links for troubleshooting health monitors:
http://devcentral.f5.com/wiki/default.aspx/AdvDesignConfig/TroubleshootingLtmMonitors.html
http://support.f5.com/kb/en-us/solutions/public/12000/500/sol12531.html - hwidjaja_37598
Altostratus
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]+$'` - Christopher_Boo
Cirrostratus
Awesome! Thanks Hum.
Chris - Christopher_Boo
Cirrostratus
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,
Chris
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects