Monitoring /proc/user_beancounters with email

From OpenVZ Virtuozzo Containers Wiki
Revision as of 10:36, 13 August 2008 by Mgual (talk | contribs) (New page: {{DISPLAYTITLE:Monitoring /proc/user_beancounters with email}} To be added locally on the VZ HN to Works as nagios-plugin with option '-f' or reports an increase of a failcnt-value by ma...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

To be added locally on the VZ HN to

Works as nagios-plugin with option '-f' or reports an increase of a failcnt-value by mail if run e.g. as a cronjob with option '-t'. We use it with both cases to be sure that we see a peak in case it happened between the nagios-checks.

<source lang=python>

  1. !/usr/bin/python
  2. Copyright (C) 2008 Christian Benke
  3. Distributed under the terms of the GNU General Public License v2
  4. v0.2 2008-04-04
  5. Christian Benke <benkokakao gmail com>

import string import pickle import sys import getopt import re

veid= current_data=dict()