Difference between revisions of "Talk:Monitoring /proc/user beancounters with nagios"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
(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...)
 
Line 1: Line 1:
 
{{DISPLAYTITLE:Monitoring /proc/user_beancounters with email}}
 
{{DISPLAYTITLE:Monitoring /proc/user_beancounters with email}}
To be added locally on the VZ HN to  
+
To be added locally on the VZ HN to <code> /etc/crontab </code> to script <code> resource.sh <code>
  
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>
+
 
#!/usr/bin/python
+
 
# Copyright (C) 2008 Christian Benke
+
<source lang=shell>
# Distributed under the terms of the GNU General Public License v2
+
#!/bin/bash
 +
# Copyright (C) 2008 Mgual
 +
# Distributed under GNU General Public License v3
 
# v0.2 2008-04-04
 
# v0.2 2008-04-04
 
# Christian Benke <benkokakao  gmail  com>
 
# Christian Benke <benkokakao  gmail  com>

Revision as of 10:39, 13 August 2008

To be added locally on the VZ HN to /etc/crontab to script resource.sh



<source lang=shell>

  1. !/bin/bash
  2. Copyright (C) 2008 Mgual
  3. Distributed under GNU General Public License v3
  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()