Forum Discussion
Christopher_Boo
Jun 02, 2011Cirrostratus
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
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
- hwidjaja_37598AltostratusTry the attached script ...
- hwidjaja_37598AltostratusI just realize that the wmic output was not only number.
| egrep '^[0-9]+$'
PoolPagedBytes=`wmic -U domain/user%password //nodeip "select PoolPagedBytes from win32_PerfRawData_PerfOS_Memory" | egrep '^[0-9]+$'`
- Christopher_BooCirrostratusAwesome! Thanks Hum.
- Christopher_BooCirrostratusJust 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.
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