OpenVZ Forum


Home » Mailing lists » Devel » Monitoring /proc/user_beancounters via Perl Script?
Monitoring /proc/user_beancounters via Perl Script? [message #11108] Tue, 13 March 2007 15:29 Go to next message
Steven Schubiger is currently offline  Steven Schubiger
Messages: 1
Registered: March 2007
Junior Member
Hi,

As part of my daily work, I've developed a Perl script that alerts whenever
the "failcnt" field within /proc/user_beancounters is subject to change. The
script is actually run via cron which is recommended practice.

We'd like to release it to the public in order to support other people out
there running OpenVZ servers. It was written in Perl and uses some funky
datastructures to represent the current state of the statistics. Furthermore,
these structures are dumped to a CSV file and compared against the
ones hold in memory. If they differ, an alert will be sent to one or more
recipients.

The script will be now located at a temporary location until someone
participates in providing webspace & an official URL for it.

Critique, suggestions & ideas are welcome and may be addressed to me
at <steven.schubiger@xwave.ch.remove>.

http://www.refcnt.org/code/perl/monbean

PS: Don't forget to rename monbean.pl.txt to monbean.pl

Steven

--
Xwave GmbH
Josefstrasse 92
CH-8005 Zürich
tel 0041 43 500 50 50/54
fax 0041 43 500 50 55
Re: Monitoring /proc/user_beancounters via Perl Script? [message #11249 is a reply to message #11108] Fri, 16 March 2007 08:02 Go to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Steven,

I've put monbean util at http://download.openvz.org/contrib/utils/monbean/
Feel free to send updates when needed.
Upload access can be granted in the future as well.

Thanks a lot!
Kirill

> Hi,
>
> As part of my daily work, I've developed a Perl script that alerts whenever
> the "failcnt" field within /proc/user_beancounters is subject to change. The
> script is actually run via cron which is recommended practice.
>
> We'd like to release it to the public in order to support other people out
> there running OpenVZ servers. It was written in Perl and uses some funky
> datastructures to represent the current state of the statistics. Furthermore,
> these structures are dumped to a CSV file and compared against the
> ones hold in memory. If they differ, an alert will be sent to one or more
> recipients.
>
> The script will be now located at a temporary location until someone
> participates in providing webspace & an official URL for it.
>
> Critique, suggestions & ideas are welcome and may be addressed to me
> at <steven.schubiger@xwave.ch.remove>.
>
> http://www.refcnt.org/code/perl/monbean
>
> PS: Don't forget to rename monbean.pl.txt to monbean.pl
>
> Steven
>
Previous Topic: [PATCH] Copy mac_len in skb_clone() as well
Next Topic: Re: [RFC] kernel/pid.c pid allocation wierdness
Goto Forum:
  


Current Time: Wed Feb 28 20:06:49 GMT 2024

Total time taken to generate the page: 0.02350 seconds