Forum Discussion
how to pass the value from the F5 GUI external monitor variable to the external monitor script?
yes, i was trying to pass a range of values. dsaID= 1, 2, 3 .... Since the F5 external monitor variable field not seem to take range of variable, i just implement that in a for loop within the external program.
Now i run into issue with F5's CPU% jump by 20%. prior to implementing this for loop, the cpu is steady at below 20%. after implementing the for loop, CPU jump steady to 40%. why would (16) simple for loops caused a spike in the CPU by 20%? reason for the 16 for loops is that we monitor 16 nodes. for each node, the for loop search 36 times starting with dsaID=1 to dsaID=36. i thought that would put a small load to the ldap database, but i don't know why the F5's CPU jump by 20%?
- LARRY_55303Sep 20, 2013
Nimbostratus
MaxDsa=36 for (( i=1; i <=$MaxDsa; i++ )) do ..... ********* !/bin/sh ; borne shell ********* i even try to put the sleep 0.1 or up to 1 second within the for loop, but i don't see the CPU utilization going down at all. "TOP" is only showing those monitors using like 1 to 4% of the CPU, not sure why that 20% jump in CPU activity and TOP show most of CPU utilization are by the "TMM". - Kevin_StewartSep 20, 2013
Employee
Are you certain it's the for loop and not the ldap calls? Have you commented out the ldap calls in the script to see if CPU usage goes down?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
