Portal Home > Knowledgebase > Articles Database > munin script for /proc/user_beancounters
munin script for /proc/user_beancounters
Posted by JonFatino, 02-15-2011, 05:11 AM |
I googled a little bit.
didn't find a munin monitoring script for the vm side (not host node).
If anyone knows or would like to create one please link me.
Just want to graph all the beancounters for a history / log
Thx.
|
Posted by ActivistAdmin, 02-15-2011, 07:39 PM |
hmm probably throw some bash together real quick for that, not sure about throwing it in munin,
something like
for containers in `vzlist -Ho`; do vzctl exec $containers "cat /proc/user_beancounters > /root/beanlog/$containers/$containers-$(date +%y%m%d).log"; done
cron it and that will log everything if the structure is created probably would add some lines to ensure the directory structure was created; but then again I'm not doing the project.
|
Posted by ActivistAdmin, 02-15-2011, 07:41 PM |
Oh, and I don't have access to vz node for testing so the vzlist options may need some mod like an awk
|
Posted by JonFatino, 02-16-2011, 03:50 AM |
Note this is for inside the vm.
Not for the host node.
They already have scripts to monitor all the ve's.
say i rent a vps from a few providers.
I just want to log/monitor my /proc/user_beancounters in munin.
|
Posted by JonFatino, 02-17-2011, 04:42 PM |
Anyone? Ideas?
And i think this thread would be under the "vps section"
not security...
|
Posted by ActivistAdmin, 02-17-2011, 04:57 PM |
cronjob this: /bin/cat /proc/user_beancounters > /opt/beanlog/$(date +%y%m%d).log
|
Add to Favourites Print this Article
Also Read