Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Monitoring /proc/user beancounters with nagios

79 bytes removed, 09:54, 7 April 2008
m
no edit summary
import getopt
import re
import smtplib
import socket
veid=''
current_data=dict()
opts=None
beancounter_data=open('/proc/user_beancounters','r')None
picklefilepath='/tmp/beancounters_pickledump'
if count_change and count == True:
print 'sending mail'
send_mail(count_change)
print 'mail sent'
return current_data
elif count == True:
count=False
beancounter_data=open('/proc/user_beancounters','r')
data_read=pickle_data(current_data,'read',count,picklefilepath)
current_data = compare_data(beancounter_data,data_read,count)
14
edits